3 files changed, 13 insertions, 9 deletions
diff --git a/libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp b/libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp index 5c7bac2..6d2c773 100644 --- a/libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp +++ b/libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp @@ -114,4 +114,4 @@ Opie::Core::OKeyConfigManager* TestMainWindow::manager() { void TestMainWindow::keyPressEvent( QKeyEvent* ev ) { - qWarning( "String is "+ m_manager->handleKeyEvent( ev ).text() ); - qWarning( "Id was %d %d %d %d", m_manager->handleKeyEventId( ev ),ev->key(),ev->state(), ev->ascii() ); + owarn << "String is "+ m_manager->handleKeyEvent( ev ).text() << oendl; + owarn << "Id was " << m_manager->handleKeyEventId( ev ) << " " << ev->key() << " " << ev->state() << " " << ev->ascii() << "" << oendl; ev->ignore(); @@ -120,3 +120,3 @@ void TestMainWindow::keyPressEvent( QKeyEvent* ev ) { void TestMainWindow::slotDelete( QWidget* wid, QKeyEvent* ev ) { - qWarning( "Slot Delete %d %d %d", wid, ev->key(), ev->state() ); + owarn << "Slot Delete " << wid << " " << ev->key() << " " << ev->state() << "" << oendl; } @@ -124,3 +124,3 @@ void TestMainWindow::slotDelete( QWidget* wid, QKeyEvent* ev ) { void TestMainWindow::slotAction( QWidget* wid, QKeyEvent* ev, const Opie::Core::OKeyConfigItem& item) { - qWarning( "Slot Action %d %d %d %s %d", wid, ev->key(), ev->state(), item.text().latin1(), item.id() ); + owarn << "Slot Action " << wid << " " << ev->key() << " " << ev->state() << " " << item.text() << " " << item.id() << "" << oendl; } diff --git a/libopie2/examples/opieui/olistviewdemo/olistviewdemo.cpp b/libopie2/examples/opieui/olistviewdemo/olistviewdemo.cpp index 7834b3b..4c05620 100644 --- a/libopie2/examples/opieui/olistviewdemo/olistviewdemo.cpp +++ b/libopie2/examples/opieui/olistviewdemo/olistviewdemo.cpp @@ -33,4 +33,8 @@ #include "olistviewdemo.h" + +/* OPIE */ #include <opie2/olistview.h> +#include <opie2/odebug.h> +/* QT */ #include <qstring.h> @@ -67,10 +71,10 @@ OListViewDemo::OListViewDemo( QWidget* parent, const char* name, WFlags f ) if ( lv->find( 3, "Mickey", 3 ) ) - qDebug( "found Mickey :-)" ); + odebug << "found Mickey :-)" << oendl; else - qDebug( "did not found Mickey :-(" ); + odebug << "did not found Mickey :-(" << oendl; if ( lv->find( 3, "Minni", 0 ) ) - qDebug( "found Minni :-)" ); + odebug << "found Minni :-)" << oendl; else - qDebug( "did not found Minni :-(" ); + odebug << "did not found Minni :-(" << oendl; diff --git a/libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp b/libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp index 6443dc0..d747bd9 100644 --- a/libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp +++ b/libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp @@ -76,3 +76,3 @@ bool ListViews::eventFilter( QObject* obj, QEvent* ev ) { if ( ev->type() == QEvent::MouseButtonRelease ) { - qWarning(" name %s, class %s", obj->name(), obj->className() ); + owarn << " name " << obj->name() << ", class " << obj->className() << "" << oendl; } |