From d59dc8023447b6309fe8e3af8ae09fea6975e390 Mon Sep 17 00:00:00 2001 From: am0ebe <am0ebe@gmx.de> Date: Thu, 31 Aug 2023 13:38:20 +0200 Subject: [PATCH] find style.qss if app is called from different dir --- obj/moc_predefs.h | 4 ++-- recorder.sublime-project | 4 ++++ src/main.cpp | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/obj/moc_predefs.h b/obj/moc_predefs.h index 0c7d9f0..0145b5f 100644 --- a/obj/moc_predefs.h +++ b/obj/moc_predefs.h @@ -207,7 +207,7 @@ #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL #define __FLT_MANT_DIG__ 24 #define __LDBL_DECIMAL_DIG__ 21 -#define __VERSION__ "11.3.0" +#define __VERSION__ "11.4.0" #define __UINT64_C(c) c ## UL #define __cpp_unicode_characters 201411L #define _STDC_PREDEF_H 1 @@ -408,7 +408,7 @@ #define __DEC128_MAX_EXP__ 6145 #define __FLT32X_HAS_QUIET_NAN__ 1 #define __ATOMIC_CONSUME 1 -#define __GNUC_MINOR__ 3 +#define __GNUC_MINOR__ 4 #define __GLIBCXX_TYPE_INT_N_0 __int128 #define __INT_FAST16_WIDTH__ 64 #define __UINTMAX_MAX__ 0xffffffffffffffffUL diff --git a/recorder.sublime-project b/recorder.sublime-project index 70aeca3..bb71bec 100644 --- a/recorder.sublime-project +++ b/recorder.sublime-project @@ -12,6 +12,10 @@ "path": "../dox", "name": "dox" }, + { + "path": "~/dox/idiv/camtron", + "name": "dox 2" + }, ], "build_systems": [ diff --git a/src/main.cpp b/src/main.cpp index d28994e..69283e4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,7 +10,7 @@ void loadStyleSheets(const QString& name, MainWindow& mw) QFile file(name); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - mw.log( "didn't find '" + name + "' in " + QDir::currentPath() ); + mw.log( "didn't find '" + name + "'" ); } else { @@ -23,7 +23,7 @@ int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; - loadStyleSheets("style.qss", w); + loadStyleSheets(QCoreApplication::applicationDirPath()+"/style.qss", w); w.show(); return a.exec(); -- GitLab