fixed compiling

This commit is contained in:
fourtf
2018-01-15 04:08:48 +01:00
parent d045f6963a
commit 6701c3d0b2
5 changed files with 70 additions and 80 deletions
+3 -2
View File
@@ -18,11 +18,12 @@
#include <QHBoxLayout>
#include <QVBoxLayout>
#include "widgets/helper/rippleeffectlabel.hpp"
#define WM_DPICHANGED 0x02E0
#endif
#include "widgets/helper/rippleeffectlabel.hpp"
namespace chatterino {
namespace widgets {
@@ -114,7 +115,7 @@ void BaseWindow::init()
QWidget *BaseWindow::getLayoutContainer()
{
if (this->enableCustomFrame) {
if (this->hasCustomWindowFrame()) {
return this->layoutBase;
} else {
return this;
-4
View File
@@ -50,11 +50,7 @@ Window::Window(const QString &windowName, singletons::ThemeManager &_themeManage
this->getLayoutContainer()->setLayout(layout);
// set margin
// if (SettingsManager::getInstance().useCustomWindowFrame.get()) {
// layout->setMargin(1);
// } else {
layout->setMargin(0);
// }
this->refreshTheme();