author | ar <ar> | 2004-06-03 18:50:11 (UTC) |
---|---|---|
committer | ar <ar> | 2004-06-03 18:50:11 (UTC) |
commit | f9d940da940c8d42dc072f60ad72e69025650cf8 (patch) (unidiff) | |
tree | d27646ceea53d25f68bc53f770424a3b3c434994 /libopie2/examples/opiecore | |
parent | 75922e8dd0f7390932471b5a611d94076a8472f3 (diff) | |
download | opie-f9d940da940c8d42dc072f60ad72e69025650cf8.zip opie-f9d940da940c8d42dc072f60ad72e69025650cf8.tar.gz opie-f9d940da940c8d42dc072f60ad72e69025650cf8.tar.bz2 |
- convert to odebug framework
-rw-r--r-- | libopie2/examples/opiecore/odebugdemo/odebugdemo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/examples/opiecore/odebugdemo/odebugdemo.cpp b/libopie2/examples/opiecore/odebugdemo/odebugdemo.cpp index 0b8e1fe..c0369ef 100644 --- a/libopie2/examples/opiecore/odebugdemo/odebugdemo.cpp +++ b/libopie2/examples/opiecore/odebugdemo/odebugdemo.cpp | |||
@@ -26,7 +26,7 @@ public: | |||
26 | DemoApp( int argc, char** argv ) : OApplication( argc, argv, "libopie2 debug demo" ) | 26 | DemoApp( int argc, char** argv ) : OApplication( argc, argv, "libopie2 debug demo" ) |
27 | { | 27 | { |
28 | // you have access to your OApplication object via oApp | 28 | // you have access to your OApplication object via oApp |
29 | qDebug( "Process-wide OApplication object @ %0x", oApp ); | 29 | odebug << "Process-wide OApplication object @ " << oApp << "" << oendl; |
30 | 30 | ||
31 | // you have access to global settings via OGlobalSettings | 31 | // you have access to global settings via OGlobalSettings |
32 | int mode = OGlobalSettings::debugMode(); | 32 | int mode = OGlobalSettings::debugMode(); |
@@ -89,7 +89,7 @@ public slots: | |||
89 | void chooseMethod(int method) | 89 | void chooseMethod(int method) |
90 | { | 90 | { |
91 | m = method; | 91 | m = method; |
92 | qDebug( "choosing method: %d", method ); | 92 | odebug << "choosing method: " << method << "" << oendl; |
93 | OConfig* g = OGlobal::config(); | 93 | OConfig* g = OGlobal::config(); |
94 | g->setGroup( "General" ); | 94 | g->setGroup( "General" ); |
95 | g->writeEntry( "debugMode", m ); | 95 | g->writeEntry( "debugMode", m ); |