Skip to content
Snippets Groups Projects
Commit d59dc802 authored by am0ebe's avatar am0ebe
Browse files

find style.qss if app is called from different dir

parent e91551c8
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL
#define __FLT_MANT_DIG__ 24 #define __FLT_MANT_DIG__ 24
#define __LDBL_DECIMAL_DIG__ 21 #define __LDBL_DECIMAL_DIG__ 21
#define __VERSION__ "11.3.0" #define __VERSION__ "11.4.0"
#define __UINT64_C(c) c ## UL #define __UINT64_C(c) c ## UL
#define __cpp_unicode_characters 201411L #define __cpp_unicode_characters 201411L
#define _STDC_PREDEF_H 1 #define _STDC_PREDEF_H 1
...@@ -408,7 +408,7 @@ ...@@ -408,7 +408,7 @@
#define __DEC128_MAX_EXP__ 6145 #define __DEC128_MAX_EXP__ 6145
#define __FLT32X_HAS_QUIET_NAN__ 1 #define __FLT32X_HAS_QUIET_NAN__ 1
#define __ATOMIC_CONSUME 1 #define __ATOMIC_CONSUME 1
#define __GNUC_MINOR__ 3 #define __GNUC_MINOR__ 4
#define __GLIBCXX_TYPE_INT_N_0 __int128 #define __GLIBCXX_TYPE_INT_N_0 __int128
#define __INT_FAST16_WIDTH__ 64 #define __INT_FAST16_WIDTH__ 64
#define __UINTMAX_MAX__ 0xffffffffffffffffUL #define __UINTMAX_MAX__ 0xffffffffffffffffUL
......
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
"path": "../dox", "path": "../dox",
"name": "dox" "name": "dox"
}, },
{
"path": "~/dox/idiv/camtron",
"name": "dox 2"
},
], ],
"build_systems": "build_systems":
[ [
......
...@@ -10,7 +10,7 @@ void loadStyleSheets(const QString& name, MainWindow& mw) ...@@ -10,7 +10,7 @@ void loadStyleSheets(const QString& name, MainWindow& mw)
QFile file(name); QFile file(name);
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{ {
mw.log( "didn't find '" + name + "' in " + QDir::currentPath() ); mw.log( "didn't find '" + name + "'" );
} }
else else
{ {
...@@ -23,7 +23,7 @@ int main(int argc, char *argv[]) ...@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
MainWindow w; MainWindow w;
loadStyleSheets("style.qss", w); loadStyleSheets(QCoreApplication::applicationDirPath()+"/style.qss", w);
w.show(); w.show();
return a.exec(); return a.exec();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment