switch clock example to C++11
authorKonrad Rosenbaum <konrad@silmor.de>
Thu, 31 Jan 2013 21:24:50 +0000 (22:24 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Thu, 31 Jan 2013 21:24:50 +0000 (22:24 +0100)
examples/clock/qtc/clock.cpp
examples/clock/qtc/clock.pro
examples/clock/qts/clockserv.pro

index 23e1f85..cfa2b30 100644 (file)
@@ -98,6 +98,7 @@ int main(int argc,char**argv)
        //initialize the interface, set URL and debug mode
        ifc.setUrl(url);
        ifc.setLogLevel(WInterface::LogDetailed);
+       qDebug()<<"Using URL"<<ifc.url().toString();
        //init display
        ClockDisplay cd;
        cd.show();
index 3d750fb..17c20b5 100644 (file)
@@ -13,4 +13,6 @@ RCC_DIR = .ctmp
 SOURCES += clock.cpp
 HEADERS += clock.h
 
-include(wob/wob.pri)
\ No newline at end of file
+include(wob/wob.pri)
+
+*g++* { QMAKE_CXXFLAGS += -std=c++11 }
index d001c11..faa3c0a 100644 (file)
@@ -13,4 +13,6 @@ RCC_DIR = .ctmp
 HEADERS += clock.h
 SOURCES += clock.cpp
 
-include(wob/wob.pri)
\ No newline at end of file
+include(wob/wob.pri)
+
+*g++* { QMAKE_CXXFLAGS += -std=c++11 }