Fix for packaging and for users can edit style.css

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3177 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2014-06-24 12:30:21 +00:00
parent 5d60438224
commit 0c0699567e
2 changed files with 1 additions and 2 deletions

View File

@@ -31,7 +31,6 @@ win32 {
QET_COMMON_TBT_PATH = 'titleblocks/' QET_COMMON_TBT_PATH = 'titleblocks/'
QET_LANG_PATH = 'lang/' QET_LANG_PATH = 'lang/'
QET_LICENSE_PATH = './' QET_LICENSE_PATH = './'
QET_STYLE_PATH = './'
} }
macx { macx {
# Chemins MacOS X # Chemins MacOS X

View File

@@ -954,7 +954,7 @@ void QETApp::useSystemPalette(bool use) {
"}" "}"
); );
} else { } else {
QFile file(":/style.css"); QFile file("./style.css");
file.open(QFile::ReadOnly); file.open(QFile::ReadOnly);
QString styleSheet = QLatin1String(file.readAll()); QString styleSheet = QLatin1String(file.readAll());
setStyleSheet(styleSheet); setStyleSheet(styleSheet);