]> git.sur5r.net Git - minitube/commitdiff
Added APP_LINUX define
authorFlavio Tordini <flavio.tordini@gmail.com>
Mon, 3 Aug 2015 12:23:16 +0000 (14:23 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Mon, 3 Aug 2015 12:23:16 +0000 (14:23 +0200)
minitube.pro
src/painterutils.cpp
src/temporary.cpp

index bc027d09b5dc34f81062e05c6cc269ecd12a676d..3f2d29fa3c97a0919c16794f497572fa8fb3f9f3 100644 (file)
@@ -1,6 +1,6 @@
 CONFIG += release
 TEMPLATE = app
-VERSION = 2.4
+VERSION = 2.5
 DEFINES += APP_VERSION="$$VERSION"
 
 APP_NAME = Minitube
@@ -14,7 +14,10 @@ DEFINES += APP_PHONON_SEEK
 DEFINES += APP_SNAPSHOT
 DEFINES += APP_YT3
 
-DEFINES *= QT_NO_DEBUG_OUTPUT
+message(Building $${APP_NAME} $${VERSION})
+message(Qt $$[QT_VERSION] in $$[QT_INSTALL_PREFIX])
+
+#DEFINES *= QT_NO_DEBUG_OUTPUT
 DEFINES *= QT_USE_QSTRINGBUILDER
 DEFINES *= QT_STRICT_ITERATORS
 
@@ -188,6 +191,7 @@ include(locale/locale.pri)
 # deploy
 DISTFILES += CHANGES COPYING
 unix:!mac {
+    DEFINES += APP_LINUX
     qt:greaterThan(QT_MAJOR_VERSION, 4) {
         LIBS += -lphonon4qt5
         INCLUDEPATH += /usr/include/phonon4qt5
index 097eac2058634ea81ba0c8f2fb94e350c614c9c1..7e3be425684fd9c6c3a0173ff600c996cdc03a23 100644 (file)
@@ -86,11 +86,9 @@ void PainterUtils::paintBadge(QPainter *painter, const QString &text, bool cente
     f.setHintingPreference(QFont::PreferNoHinting);
 #ifdef APP_MAC
     f.setFamily("Helvetica");
-#endif
-#ifdef APP_WIN
+#elif APP_WIN
     rect.adjust(0, -2, 0, 0);
-#endif
-#ifdef Q_OS_LINUX
+#else
     rect.adjust(0, -1, 0, 0);
 #endif
     painter->save();
index 9c00215020449f60a6b3ce7f5e49a48ad6e31b00..913d2446aa954c6c5dee6b535ff2bee7bb19d42d 100644 (file)
@@ -23,7 +23,7 @@ $END_LICENSE */
 #include "compatibility/pathsservice.h"
 
 static QList<QString> paths;
-#ifdef Q_OS_LINUX
+#ifdef APP_LINUX
 static QString userName;
 #endif
 
@@ -34,7 +34,7 @@ QString Temporary::filename() {
 
     QString tempFile = tempDir + "/" + Constants::UNIX_NAME + "-" + QString::number(qrand());
 
-#ifdef Q_OS_LINUX
+#ifdef APP_LINUX
     if (userName.isNull()) {
         userName = QString(getenv("USERNAME"));
         if (userName.isEmpty())