[qet] [3177] Fix for packaging and for users can edit style.css

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3177
Author:   scorpio810
Date:     2014-06-24 14:30:21 +0200 (Tue, 24 Jun 2014)
Log Message:
-----------
Fix for packaging and for users can edit style.css

Modified Paths:
--------------
    trunk/qelectrotech.pro
    trunk/sources/qetapp.cpp

Modified: trunk/qelectrotech.pro
===================================================================
--- trunk/qelectrotech.pro	2014-06-24 10:46:29 UTC (rev 3176)
+++ trunk/qelectrotech.pro	2014-06-24 12:30:21 UTC (rev 3177)
@@ -31,7 +31,6 @@
 	QET_COMMON_TBT_PATH        = 'titleblocks/'
 	QET_LANG_PATH              = 'lang/'
 	QET_LICENSE_PATH           = './'
-	QET_STYLE_PATH             = './'
 }
 macx {
 	# Chemins MacOS X

Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp	2014-06-24 10:46:29 UTC (rev 3176)
+++ trunk/sources/qetapp.cpp	2014-06-24 12:30:21 UTC (rev 3177)
@@ -954,7 +954,7 @@
 			"}"
 		);
 	} else {
-		QFile file(":/style.css");
+		QFile file("./style.css");
 		file.open(QFile::ReadOnly);
 		QString styleSheet = QLatin1String(file.readAll());
 		setStyleSheet(styleSheet);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/