mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: fix entryWidget button behaviour
This commit is contained in:
@@ -25,6 +25,7 @@ void CommonButtonGroupWidget::updateProgressBar(float value)
|
||||
|
||||
void CommonButtonGroupWidget::loadCompleteState()
|
||||
{
|
||||
show();
|
||||
ui->updateButton->setEnabled(false);
|
||||
ui->startButton->setEnabled(true);
|
||||
ui->loadingProgressBar->setValue(100);
|
||||
|
||||
@@ -15,7 +15,7 @@ void EntryWidget::initialize()
|
||||
ui->settingsWidget->hide();
|
||||
}
|
||||
|
||||
void EntryWidget::connectionEmptyState()
|
||||
void EntryWidget::disconnectState()
|
||||
{
|
||||
show();
|
||||
ui->offlineWidget->show();
|
||||
@@ -44,7 +44,7 @@ ClientAutorization* EntryWidget::getAuthData()
|
||||
return data;
|
||||
}
|
||||
|
||||
void EntryWidget::loginIsActive(bool flag)
|
||||
void EntryWidget::showLoginWidget(bool flag)
|
||||
{
|
||||
if(flag)
|
||||
{
|
||||
@@ -91,6 +91,11 @@ void EntryWidget::isActive(bool flag)
|
||||
else ui->settingsWidget->hide();
|
||||
}
|
||||
|
||||
bool EntryWidget::getLoginWidgetIsHidden()
|
||||
{
|
||||
return ui->loginWidget->isHidden();
|
||||
}
|
||||
|
||||
|
||||
EntryWidget::~EntryWidget()
|
||||
{
|
||||
|
||||
@@ -19,13 +19,14 @@ public:
|
||||
void settingsState();
|
||||
bool isLoginFieldsFill();
|
||||
ClientAutorization* getAuthData();
|
||||
void loginIsActive(bool flag);
|
||||
void showLoginWidget(bool flag);
|
||||
~EntryWidget();
|
||||
|
||||
void connectionEmptyState();
|
||||
void disconnectState();
|
||||
void fillSettings(ServerSettings *settings);
|
||||
ServerSettings *getServerSettings();
|
||||
void isActive(bool flag);
|
||||
bool getLoginWidgetIsHidden();
|
||||
|
||||
signals:
|
||||
void sigTryLogin();
|
||||
|
||||
@@ -274,6 +274,9 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="echoMode">
|
||||
<enum>QLineEdit::Password</enum>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string>Пароль</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user