clang-format

This commit is contained in:
wheremyfoodat 2023-09-30 18:39:05 +03:00
parent 36506e18bb
commit 4329976dbc
2 changed files with 5 additions and 3 deletions

View file

@ -13,7 +13,9 @@ class MainWindow : public QMainWindow {
private:
enum class Theme : int {
System = 0, Light = 1, Dark = 2,
System = 0,
Light = 1,
Dark = 2,
};
QComboBox* themeSelect = nullptr;

View file

@ -10,7 +10,7 @@ MainWindow::MainWindow(QApplication* app, QWidget* parent) : QMainWindow(parent)
// Set our menu bar up
menuBar = new QMenuBar(this);
setMenuBar(menuBar);
auto pandaMenu = menuBar->addMenu(tr("PANDA"));
auto pandaAction = pandaMenu->addAction(tr("panda..."));
@ -78,7 +78,7 @@ void MainWindow::setTheme(Theme theme) {
}
case Theme::System: {
qApp->setPalette(this->style()->standardPalette());
qApp->setPalette(this->style()->standardPalette());
qApp->setStyle(QStyleFactory::create("WindowsVista"));
qApp->setStyleSheet("");
break;