mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-17 19:24:05 +01:00
RMG: make ui_Stylesheet_Setup windows exclusive
This commit is contained in:
1 parent
e474a09642
commit
3ad2a5760e
2 files changed
+6
No files matched your search
@@ -164,7 +164,9 @@ void MainWindow::ui_Init(void)
|
||||
|
||||
void MainWindow::ui_Setup(QApplication* app)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
this->ui_Stylesheet_Setup(app);
|
||||
#endif // _WIN32
|
||||
|
||||
this->setWindowIcon(this->ui_Icon);
|
||||
this->setWindowTitle(WINDOW_TITLE);
|
||||
@@ -196,6 +198,7 @@ void MainWindow::ui_Setup(QApplication* app)
|
||||
this->ui_Widget_OpenGL->installEventFilter(this->ui_EventFilter);
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
void MainWindow::ui_Stylesheet_Setup(QApplication* app)
|
||||
{
|
||||
QString styleFilePath = QString::fromStdString(CoreSettingsGetStringValue(SettingsID::GUI_Style));
|
||||
@@ -213,6 +216,7 @@ void MainWindow::ui_Stylesheet_Setup(QApplication* app)
|
||||
|
||||
app->setStyleSheet(styleFile.readAll());
|
||||
}
|
||||
#endif // _WIN32
|
||||
|
||||
void MainWindow::ui_MessageBox(QString title, QString text, QString details = "")
|
||||
{
|
||||
|
||||
@@ -120,7 +120,9 @@ class MainWindow : public QMainWindow
|
||||
|
||||
void ui_Init();
|
||||
void ui_Setup(QApplication*);
|
||||
#ifdef _WIN32
|
||||
void ui_Stylesheet_Setup(QApplication*);
|
||||
#endif // _WIN32
|
||||
void ui_MessageBox(QString, QString, QString);
|
||||
void ui_InEmulation(bool, bool);
|
||||
void ui_SaveGeometry(void);
|
||||
|
||||
Reference in new issue
Block a user