added buttons to the custom window frame

This commit is contained in:
fourtf
2018-01-24 20:27:56 +01:00
parent 8c51df31e6
commit f4863cbccb
6 changed files with 210 additions and 41 deletions
+4 -3
View File
@@ -37,9 +37,10 @@ Window::Window(const QString &windowName, singletons::ThemeManager &_themeManage
});
if (this->hasCustomWindowFrame()) {
this->addTitleBarButton(
"preferences", [] { singletons::WindowManager::getInstance().showSettingsDialog(); });
this->addTitleBarButton("user", [this] {
this->addTitleBarButton(TitleBarButton::Settings, [] {
singletons::WindowManager::getInstance().showSettingsDialog();
});
this->addTitleBarButton(TitleBarButton::User, [this] {
singletons::WindowManager::getInstance().showAccountSelectPopup(QCursor::pos());
});
}