mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fixes regression sent by apprb
This commit is contained in:
parent
a3beb991e1
commit
6bda375a7e
|
@ -26,11 +26,11 @@
|
||||||
GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
GeneralForm::GeneralForm(SettingsWidget *myParent) :
|
||||||
GenericForm(tr("General Settings"), QPixmap(":/img/settings/general.png"))
|
GenericForm(tr("General Settings"), QPixmap(":/img/settings/general.png"))
|
||||||
{
|
{
|
||||||
|
parent = myParent;
|
||||||
|
|
||||||
bodyUI = new Ui::GeneralSettings;
|
bodyUI = new Ui::GeneralSettings;
|
||||||
bodyUI->setupUi(this);
|
bodyUI->setupUi(this);
|
||||||
|
|
||||||
parent = myParent;
|
|
||||||
|
|
||||||
bodyUI->cbEnableIPv6->setChecked(Settings::getInstance().getEnableIPv6());
|
bodyUI->cbEnableIPv6->setChecked(Settings::getInstance().getEnableIPv6());
|
||||||
bodyUI->cbUseTranslations->setChecked(Settings::getInstance().getUseTranslations());
|
bodyUI->cbUseTranslations->setChecked(Settings::getInstance().getUseTranslations());
|
||||||
bodyUI->cbMakeToxPortable->setChecked(Settings::getInstance().getMakeToxPortable());
|
bodyUI->cbMakeToxPortable->setChecked(Settings::getInstance().getMakeToxPortable());
|
||||||
|
@ -104,7 +104,7 @@ void GeneralForm::onStyleSelected(QString style)
|
||||||
{
|
{
|
||||||
Settings::getInstance().setStyle(style);
|
Settings::getInstance().setStyle(style);
|
||||||
this->setStyle(QStyleFactory::create(style));
|
this->setStyle(QStyleFactory::create(style));
|
||||||
parent->setStyle(style);
|
parent->setBodyHeadStyle(style);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GeneralForm::onSetStatusChange()
|
void GeneralForm::onSetStatusChange()
|
||||||
|
|
|
@ -73,10 +73,10 @@ SettingsWidget::~SettingsWidget()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWidget::setStyle(QString style)
|
void SettingsWidget::setBodyHeadStyle(QString style)
|
||||||
{
|
{
|
||||||
|
head->setStyle(QStyleFactory::create(style));
|
||||||
body->setStyle(QStyleFactory::create(style));
|
body->setStyle(QStyleFactory::create(style));
|
||||||
head->setStyle(QStyleFactory::create(style));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsWidget::show(Ui::MainWindow& ui)
|
void SettingsWidget::show(Ui::MainWindow& ui)
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
|
|
||||||
void show(Ui::MainWindow &ui);
|
void show(Ui::MainWindow &ui);
|
||||||
IdentityForm *getIdentityForm() {return ifrm;}
|
IdentityForm *getIdentityForm() {return ifrm;}
|
||||||
void setStyle(QString style);
|
void setBodyHeadStyle(QString style);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onTabChanged(int);
|
void onTabChanged(int);
|
||||||
|
|
|
@ -113,7 +113,7 @@ Widget::Widget(QWidget *parent)
|
||||||
ui->statusButton->setProperty("status", "offline");
|
ui->statusButton->setProperty("status", "offline");
|
||||||
Style::repolish(ui->statusButton);
|
Style::repolish(ui->statusButton);
|
||||||
|
|
||||||
settingsWidget = new SettingsWidget(this);
|
settingsWidget = new SettingsWidget();
|
||||||
|
|
||||||
// Disable some widgets until we're connected to the DHT
|
// Disable some widgets until we're connected to the DHT
|
||||||
ui->statusButton->setEnabled(false);
|
ui->statusButton->setEnabled(false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user