diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-22 11:42:30 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-11-22 11:42:30 +0100 |
commit | 830c1b67a4391bed3c959faef9bff33aca5f5423 (patch) | |
tree | 961378f6f724bb34490afc37dd6a70834d33af06 /src/mainwindow | |
parent | Add AboutPlugin dialog (diff) | |
download | smolbote-830c1b67a4391bed3c959faef9bff33aca5f5423.tar.xz |
Fix transparent background being enabled if Plasma is found
Diffstat (limited to 'src/mainwindow')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index cb7fee6..e465a4f 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -37,7 +37,8 @@ #include "configuration.h" #include "profilemanager.h" #include "webprofile.h" -#ifdef PLASMA +#include "config.h" +#ifdef CONFIG_PLASMA_BLUR #include <KWindowEffects> #endif @@ -76,7 +77,7 @@ MainWindow::MainWindow(const std::unique_ptr<Configuration> &config, QWidget *pa ui->setupUi(this); -#ifdef PLASMA +#ifdef CONFIG_PLASMA_BLUR setAttribute(Qt::WA_TranslucentBackground, true); KWindowEffects::enableBlurBehind(this->winId(), true); #endif |