moved window logic from BaseWidget to BaseWindow

This commit is contained in:
fourtf
2018-01-14 21:55:36 +01:00
parent 8deb096a27
commit e19a83679f
17 changed files with 138 additions and 104 deletions
+1 -3
View File
@@ -18,15 +18,13 @@ namespace widgets {
Window::Window(const QString &windowName, singletons::ThemeManager &_themeManager,
bool _isMainWindow)
: BaseWidget(_themeManager, nullptr)
: BaseWindow(_themeManager, nullptr)
, settingRoot(fS("/windows/{}", windowName))
, windowGeometry(this->settingRoot)
, dpi(this->getDpiMultiplier())
, themeManager(_themeManager)
, notebook(this, _isMainWindow, this->settingRoot)
{
this->initAsWindow();
singletons::AccountManager::getInstance().Twitch.currentUsername.connect(
[this](const std::string &newUsername, auto) {
if (newUsername.empty()) {