1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #4432

ezavod (1):
      refactor(ui): set icon in dialog constructor
This commit is contained in:
sudden6 2017-06-01 21:13:52 +02:00
commit dd60edb3d7
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -841,7 +841,6 @@ void Widget::onShowSettings()
}
setActiveToolMenuButton(ActiveToolMenuButton::None);
settingsWidget->setWindowIcon(QIcon(":/img/icons/qtox.svg"));
} else {
hideMainForms(nullptr);
settingsWidget->show(contentLayout);
@ -858,7 +857,6 @@ void Widget::showProfile() // onAvatarClicked, onUsernameClicked
}
setActiveToolMenuButton(ActiveToolMenuButton::None);
settingsWidget->setWindowIcon(QIcon(":/img/icons/qtox.svg"));
} else {
hideMainForms(nullptr);
profileForm->show(contentLayout);
@ -1521,6 +1519,7 @@ ContentLayout* Widget::createContentDialog(DialogType type) const
restoreGeometry(Settings::getInstance().getDialogSettingsGeometry());
Translator::registerHandler(std::bind(&Dialog::retranslateUi, this), this);
retranslateUi();
setWindowIcon(QIcon(":/img/icons/qtox.svg"));
connect(Core::getInstance(), &Core::usernameSet, this, &Dialog::retranslateUi);
}
@ -1536,7 +1535,6 @@ ContentLayout* Widget::createContentDialog(DialogType type) const
{
setWindowTitle(Core::getInstance()->getUsername() + QStringLiteral(" - ")
+ Widget::fromDialogType(type));
setWindowIcon(QIcon(":/img/icons/qtox.svg"));
}
protected: