aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
-rw-r--r--src/ui/help/AboutDialog.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1e54d6e7..1ec264e7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -43,8 +43,8 @@ int main(int argc, char *argv[]) {
// unicode in source
QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
-#ifdef WINDOWS
- // css
+#if OS_PLATFORM == WINDOWS
+ // load css file
QFile file(RESOURCE_DIR(qApp->applicationDirPath()) + "/css/default.qss");
file.open(QFile::ReadOnly);
QString styleSheet = QLatin1String(file.readAll());
diff --git a/src/ui/help/AboutDialog.cpp b/src/ui/help/AboutDialog.cpp
index e5798541..8fb504db 100644
--- a/src/ui/help/AboutDialog.cpp
+++ b/src/ui/help/AboutDialog.cpp
@@ -59,6 +59,8 @@ AboutDialog::AboutDialog(int defaultIndex, QWidget *parent)
mainLayout->addWidget(buttonBox);
setLayout(mainLayout);
+ this->resize(320, 580);
+
this->show();
}