summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opieui/okeyconfigwidget/testwidget.cpp8
-rw-r--r--libopie2/examples/opieui/olistviewdemo/olistviewdemo.cpp12
-rw-r--r--libopie2/examples/opieui/osplitter_example/osplitter_mail.cpp2
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
@@ -112,17 +112,17 @@ Opie::Core::OKeyConfigManager* TestMainWindow::manager() {
* So this is only for demo purposes
*/
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();
}
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;
}
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;
}
#include "testwidget.moc"
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
@@ -31,8 +31,12 @@
*/
#include "olistviewdemo.h"
+
+/* OPIE */
#include <opie2/olistview.h>
+#include <opie2/odebug.h>
+/* QT */
#include <qstring.h>
#include <qpixmap.h>
#include <qlistview.h>
@@ -65,14 +69,14 @@ OListViewDemo::OListViewDemo( QWidget* parent, const char* name, WFlags f )
item = new ONamedListViewItem( item, QStringList::split( ' ', "Text1 Text2 Text3 Mickey" ) );
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
@@ -74,7 +74,7 @@ bool ListViews::eventFilter( QObject* obj, QEvent* ev ) {
if (!obj->isWidgetType() )
return false;
if ( ev->type() == QEvent::MouseButtonRelease ) {
- qWarning(" name %s, class %s", obj->name(), obj->className() );
+ owarn << " name " << obj->name() << ", class " << obj->className() << "" << oendl;
}
return false;