1
0
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:
agilob 2014-10-16 18:24:16 +01:00
parent a3beb991e1
commit 6bda375a7e
No known key found for this signature in database
GPG Key ID: 2CACF3EEF598C663
4 changed files with 7 additions and 7 deletions

View File

@ -26,11 +26,11 @@
GeneralForm::GeneralForm(SettingsWidget *myParent) :
GenericForm(tr("General Settings"), QPixmap(":/img/settings/general.png"))
{
parent = myParent;
bodyUI = new Ui::GeneralSettings;
bodyUI->setupUi(this);
parent = myParent;
bodyUI->cbEnableIPv6->setChecked(Settings::getInstance().getEnableIPv6());
bodyUI->cbUseTranslations->setChecked(Settings::getInstance().getUseTranslations());
bodyUI->cbMakeToxPortable->setChecked(Settings::getInstance().getMakeToxPortable());
@ -104,7 +104,7 @@ void GeneralForm::onStyleSelected(QString style)
{
Settings::getInstance().setStyle(style);
this->setStyle(QStyleFactory::create(style));
parent->setStyle(style);
parent->setBodyHeadStyle(style);
}
void GeneralForm::onSetStatusChange()

View File

@ -73,10 +73,10 @@ SettingsWidget::~SettingsWidget()
{
}
void SettingsWidget::setStyle(QString style)
void SettingsWidget::setBodyHeadStyle(QString style)
{
body->setStyle(QStyleFactory::create(style));
head->setStyle(QStyleFactory::create(style));
body->setStyle(QStyleFactory::create(style));
}
void SettingsWidget::show(Ui::MainWindow& ui)

View File

@ -42,7 +42,7 @@ public:
void show(Ui::MainWindow &ui);
IdentityForm *getIdentityForm() {return ifrm;}
void setStyle(QString style);
void setBodyHeadStyle(QString style);
private slots:
void onTabChanged(int);

View File

@ -113,7 +113,7 @@ Widget::Widget(QWidget *parent)
ui->statusButton->setProperty("status", "offline");
Style::repolish(ui->statusButton);
settingsWidget = new SettingsWidget(this);
settingsWidget = new SettingsWidget();
// Disable some widgets until we're connected to the DHT
ui->statusButton->setEnabled(false);