attepting to add promoted qstatusbar, auto-trigger validation on nickname input

This commit is contained in:
Xevion
2021-01-26 14:15:20 -06:00
parent b9df9a9ae6
commit 6bb302d2fc
3 changed files with 125 additions and 99 deletions

View File

@@ -10,11 +10,11 @@
<x>0</x>
<y>0</y>
<width>665</width>
<height>450</height>
<height>425</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Ignored" vsizetype="Preferred">
<sizepolicy hsizetype="Ignored" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>3</verstretch>
</sizepolicy>
@@ -22,13 +22,29 @@
<property name="minimumSize">
<size>
<width>660</width>
<height>450</height>
<height>425</height>
</size>
</property>
<property name="windowTitle">
<string>Connect to Server</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>3</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QTabWidget" name="server_connections_tab">
<property name="sizePolicy">
@@ -50,7 +66,7 @@
<enum>QTabWidget::Rounded</enum>
</property>
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="favorites_tab">
<property name="statusTip">
@@ -163,6 +179,60 @@
<string>Connection Settings</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<property name="sizeConstraint">
<enum>QLayout::SetMaximumSize</enum>
</property>
<item row="1" column="0">
<layout class="QHBoxLayout" name="nickname_layout">
<item>
<widget class="QLabel" name="nickname_label">
<property name="text">
<string>Nickname</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="nickname_input">
<property name="statusTip">
<string>Your human identifier. Without a password, uniqueness is not ensured.</string>
</property>
<property name="placeholderText">
<string>Type your nickname here...</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="password_label">
<property name="text">
<string>Password</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="password_input">
<property name="statusTip">
<string>A optional password for preserving your nickname with.</string>
</property>
<property name="echoMode">
<enum>QLineEdit::PasswordEchoOnEdit</enum>
</property>
<property name="placeholderText">
<string>Optional</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="remember_checkbox">
<property name="statusTip">
<string>Remember this password in plaintext. Kept in Recent and/or Favorites.</string>
</property>
<property name="text">
<string>Remember</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="4" column="0">
<layout class="QHBoxLayout" name="connect_layout">
<item>
@@ -249,79 +319,28 @@
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="nickname_layout">
<item>
<widget class="QLabel" name="nickname_label">
<property name="text">
<string>Nickname</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="nickname_input">
<property name="statusTip">
<string>Your human identifier. Without a password, uniqueness is not ensured.</string>
</property>
<property name="placeholderText">
<string>Type your nickname here...</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="password_label">
<property name="text">
<string>Password</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="password_input">
<property name="statusTip">
<string>A optional password for preserving your nickname with.</string>
</property>
<property name="echoMode">
<enum>QLineEdit::PasswordEchoOnEdit</enum>
</property>
<property name="placeholderText">
<string>Optional</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="remember_checkbox">
<property name="statusTip">
<string>Remember this password in plaintext. Kept in Recent and/or Favorites.</string>
</property>
<property name="text">
<string>Remember</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<spacer name="verticalSpacer">
<item row="6" column="0">
<layout class="QHBoxLayout" name="status_layout"/>
</item>
<item row="5" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>5</height>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="0">
<layout class="QHBoxLayout" name="status_layout"/>
</item>
</layout>
</widget>
<resources/>