bug/loadimage-dump
This commit is contained in:
@@ -37,6 +37,10 @@ void FrmSetting::initForm()
|
||||
ui->schEnableSsl->enableText(false);
|
||||
ui->schEnableSsl->setAnimation(true);
|
||||
|
||||
ui->schAutoLogin->setBgColorOn(QColor("#409EFF"));
|
||||
ui->schAutoLogin->enableText(false);
|
||||
ui->schAutoLogin->setAnimation(true);
|
||||
|
||||
ui->btnServer->setCursor(Qt::PointingHandCursor);
|
||||
ui->schRename->setCursor(Qt::PointingHandCursor);
|
||||
|
||||
@@ -81,23 +85,36 @@ void FrmSetting::initWidget()
|
||||
ui->labTimeRenameClose->setStyleSheet(OPENQSS);
|
||||
}
|
||||
if (FileConfigDecode::getInstance()->getAutoCopy()) {
|
||||
ui->labEnableSsl->setStyleSheet(OPENQSS);
|
||||
ui->labEnableSsl->setStyleSheet(CLOSEQSS);
|
||||
ui->labEnableSslOpen->setStyleSheet(OPENQSS);
|
||||
ui->labEnableSslClose->setStyleSheet(CLOSEQSS);
|
||||
}
|
||||
else {
|
||||
ui->labEnableSsl->setStyleSheet(CLOSEQSS);
|
||||
ui->labEnableSsl->setStyleSheet(OPENQSS);
|
||||
ui->labEnableSslOpen->setStyleSheet(CLOSEQSS);
|
||||
ui->labEnableSslClose->setStyleSheet(OPENQSS);
|
||||
}
|
||||
if (FileConfigDecode::getInstance()->getAutoLogin()) {
|
||||
ui->labAUtoLoginOpen->setStyleSheet(OPENQSS);
|
||||
ui->labAUtoLoginOpen->setStyleSheet(CLOSEQSS);
|
||||
TCHttpService::getInstance()->setConfiguration(FileConfigDecode::getInstance()->getUserName(),
|
||||
FileConfigDecode::getInstance()->getPassword(),
|
||||
FileConfigDecode::getInstance()->getAddress());
|
||||
}
|
||||
else {
|
||||
ui->labAUtoLoginOpen->setStyleSheet(CLOSEQSS);
|
||||
ui->labAUtoLoginOpen->setStyleSheet(OPENQSS);
|
||||
}
|
||||
|
||||
ui->schRename->setChecked(FileConfigDecode::getInstance()->getRename());
|
||||
ui->schAutoSetup->setChecked(FileConfigDecode::getInstance()->getAutoSetup());
|
||||
ui->schTimeRename->setChecked(FileConfigDecode::getInstance()->getTimeRename());
|
||||
ui->schEnableSsl->setChecked(FileConfigDecode::getInstance()->getAutoCopy());
|
||||
ui->schAutoLogin->setChecked(FileConfigDecode::getInstance()->getAutoLogin());
|
||||
|
||||
connect(ui->schRename, &SwitchButton::checkedChanged, this, &FrmSetting::schRenameSlot);
|
||||
connect(ui->schAutoSetup, &SwitchButton::checkedChanged, this, &FrmSetting::schAutoSetup);
|
||||
connect(ui->schTimeRename, &SwitchButton::checkedChanged, this, &FrmSetting::schTimeRename);
|
||||
connect(ui->schEnableSsl, &SwitchButton::checkedChanged, this, &FrmSetting::schEnableSsl);
|
||||
connect(ui->schAutoLogin, &SwitchButton::checkedChanged, this, &FrmSetting::schAutoLogin);
|
||||
connect(ui->btnServer, &QPushButton::clicked, serversetting, &ServerSetting::show);
|
||||
|
||||
}
|
||||
@@ -136,6 +153,13 @@ void FrmSetting::schEnableSsl(bool checked)
|
||||
|
||||
}
|
||||
|
||||
void FrmSetting::schAutoLogin(bool checked)
|
||||
{
|
||||
FileConfigDecode::getInstance()->setAutoLogin(checked);
|
||||
ui->labAUtoLoginOpen->setStyleSheet(checked?OPENQSS:CLOSEQSS);
|
||||
ui->labAutoLoginClose->setStyleSheet(checked?CLOSEQSS:OPENQSS);
|
||||
}
|
||||
|
||||
void FrmSetting::slot_updateServerConfig(QString address, QString username, QString password)
|
||||
{
|
||||
FileConfigDecode::getInstance()->setAddress(address);
|
||||
|
||||
@@ -37,6 +37,7 @@ private slots:
|
||||
void schAutoSetup(bool checked);
|
||||
void schTimeRename(bool checked);
|
||||
void schEnableSsl(bool checked);
|
||||
void schAutoLogin(bool checked);
|
||||
|
||||
void slot_updateServerConfig(QString address, QString username, QString password);
|
||||
|
||||
|
||||
@@ -368,7 +368,7 @@
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<item>
|
||||
<widget class="QLabel" name="labEnableSsl_2">
|
||||
<widget class="QLabel" name="lanAUtoLogin">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: rgb(255, 255, 255);</string>
|
||||
</property>
|
||||
@@ -391,14 +391,14 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labEnableSslClose_2">
|
||||
<widget class="QLabel" name="labAutoLoginClose">
|
||||
<property name="text">
|
||||
<string>关</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="SwitchButton" name="schEnableSsl_2" native="true">
|
||||
<widget class="SwitchButton" name="schAutoLogin" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -420,7 +420,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="labEnableSslOpen_2">
|
||||
<widget class="QLabel" name="labAUtoLoginOpen">
|
||||
<property name="text">
|
||||
<string>开</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user