Fixed build process.
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
#include <QTimer>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include <bcthemeswitchbutton.h>
|
||||
#include <bcthemebutton.h>
|
||||
#include <bcdriverstatewidget.h>
|
||||
#include <bcmainwindow.h>
|
||||
#include <bcvaluedelegate.h>
|
||||
@@ -189,9 +189,9 @@ void BCMainWindow::initStatusBar()
|
||||
_statusBar->addPermanentWidget(conState);
|
||||
conState->installEventFilter(this);
|
||||
|
||||
BCThemeSwitchButton* themeBtn = new BCThemeSwitchButton(this);
|
||||
BCThemeButton* themeBtn = new BCThemeButton(this);
|
||||
_statusBar->addPermanentWidget(themeBtn);
|
||||
connect(themeBtn, &BCThemeSwitchButton::themeChanged, this, [this](bool isDark)
|
||||
connect(themeBtn, &BCThemeButton::themeChanged, this, [this](bool isDark)
|
||||
{
|
||||
QString message = isDark ? "using DarkMode." : "using LightMode.";
|
||||
onShowMessage( message );
|
||||
|
||||
Reference in New Issue
Block a user