summaryrefslogtreecommitdiff
path: root/sysinfowatchlet
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-27 04:51:30 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-27 04:51:30 +0200
commita644a7cc6749f8dd5ca20589ee6e59acc2892b3e (patch)
treeb995528dc14d1f58d9d7c958d1eaad855b2a2412 /sysinfowatchlet
parent0822b88738e00625efd27ccca9119885272924d2 (diff)
downloadsowatch-a644a7cc6749f8dd5ca20589ee6e59acc2892b3e.tar.gz
sowatch-a644a7cc6749f8dd5ca20589ee6e59acc2892b3e.zip
new qmafw watchlet
Diffstat (limited to 'sysinfowatchlet')
-rw-r--r--sysinfowatchlet/sysinfowatchlet.cpp2
-rw-r--r--sysinfowatchlet/sysinfowatchlet.pro15
2 files changed, 6 insertions, 11 deletions
diff --git a/sysinfowatchlet/sysinfowatchlet.cpp b/sysinfowatchlet/sysinfowatchlet.cpp
index c9f44c2..9e4bbf2 100644
--- a/sysinfowatchlet/sysinfowatchlet.cpp
+++ b/sysinfowatchlet/sysinfowatchlet.cpp
@@ -21,6 +21,6 @@ void SysInfoWatchlet::handleActivated()
if (cfgs.size() > 0) {
rootContext()->setContextProperty("networkName", cfgs[0].name());
} else {
- rootContext()->setContextProperty("networkName", "");
+ rootContext()->setContextProperty("networkName", "-");
}
}
diff --git a/sysinfowatchlet/sysinfowatchlet.pro b/sysinfowatchlet/sysinfowatchlet.pro
index 8c87ad8..ebbaf9c 100644
--- a/sysinfowatchlet/sysinfowatchlet.pro
+++ b/sysinfowatchlet/sysinfowatchlet.pro
@@ -6,7 +6,7 @@
TARGET = sysinfowatchlet
TEMPLATE = lib
-# CONFIG += plugin # Stupid Qt creator doesn't want to deploy plugins
+# CONFIG += plugin # Qt creator doesn't want to deploy plugins
QT += network
CONFIG += mobility
MOBILITY += systeminfo
@@ -15,7 +15,10 @@ SOURCES += sysinfoplugin.cpp sysinfowatchlet.cpp
HEADERS += sysinfoplugin.h sysinfowatchlet.h
-unix: LIBS += -L$$OUT_PWD/../libsowatch/ -lsowatch
+win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../libsowatch/release/ -lsowatch
+else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../libsowatch/debug/ -lsowatch
+else:symbian: LIBS += -lsowatch
+else:unix: LIBS += -L$$OUT_PWD/../libsowatch/ -lsowatch
INCLUDEPATH += $$PWD/../libsowatch
DEPENDPATH += $$PWD/../libsowatch
@@ -34,11 +37,3 @@ OTHER_FILES += \
RESOURCES += \
sysinfowatchlet.qrc
-
-
-
-
-
-
-
-