mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr446'
This commit is contained in:
commit
85f7a71533
|
@ -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()
|
||||
|
|
|
@ -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));
|
||||
head->setStyle(QStyleFactory::create(style));
|
||||
}
|
||||
|
||||
void SettingsWidget::show(Ui::MainWindow& ui)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user