summaryrefslogtreecommitdiff
authorar <ar>2004-06-03 19:02:20 (UTC)
committer ar <ar>2004-06-03 19:02:20 (UTC)
commit74109985fd9ebdffd6cf0416207a69b17b563fd6 (patch) (unidiff)
treea06b7bc9bd5e90dc48174fd77775842cce003110
parent25c5d7d615d1f476f206a40892877e259eeb365c (diff)
downloadopie-74109985fd9ebdffd6cf0416207a69b17b563fd6.zip
opie-74109985fd9ebdffd6cf0416207a69b17b563fd6.tar.gz
opie-74109985fd9ebdffd6cf0416207a69b17b563fd6.tar.bz2
- convert to odebug framework
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
@@ -107,22 +107,22 @@ Opie::Core::OKeyConfigManager* TestMainWindow::manager() {
107 return m_manager; 107 return m_manager;
108} 108}
109 109
110/* 110/*
111 * This only works if we do not handle the even with m_manager->handleWidget( this ) 111 * This only works if we do not handle the even with m_manager->handleWidget( this )
112 * So this is only for demo purposes 112 * So this is only for demo purposes
113 */ 113 */
114void TestMainWindow::keyPressEvent( QKeyEvent* ev ) { 114void TestMainWindow::keyPressEvent( QKeyEvent* ev ) {
115 qWarning( "String is "+ m_manager->handleKeyEvent( ev ).text() ); 115 owarn << "String is "+ m_manager->handleKeyEvent( ev ).text() << oendl;
116 qWarning( "Id was %d %d %d %d", m_manager->handleKeyEventId( ev ),ev->key(),ev->state(), ev->ascii() ); 116 owarn << "Id was " << m_manager->handleKeyEventId( ev ) << " " << ev->key() << " " << ev->state() << " " << ev->ascii() << "" << oendl;
117 ev->ignore(); 117 ev->ignore();
118} 118}
119 119
120void TestMainWindow::slotDelete( QWidget* wid, QKeyEvent* ev ) { 120void TestMainWindow::slotDelete( QWidget* wid, QKeyEvent* ev ) {
121 qWarning( "Slot Delete %d %d %d", wid, ev->key(), ev->state() ); 121 owarn << "Slot Delete " << wid << " " << ev->key() << " " << ev->state() << "" << oendl;
122} 122}
123 123
124void TestMainWindow::slotAction( QWidget* wid, QKeyEvent* ev, const Opie::Core::OKeyConfigItem& item) { 124void TestMainWindow::slotAction( QWidget* wid, QKeyEvent* ev, const Opie::Core::OKeyConfigItem& item) {
125 qWarning( "Slot Action %d %d %d %s %d", wid, ev->key(), ev->state(), item.text().latin1(), item.id() ); 125 owarn << "Slot Action " << wid << " " << ev->key() << " " << ev->state() << " " << item.text() << " " << item.id() << "" << oendl;
126} 126}
127 127
128#include "testwidget.moc" 128#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
@@ -26,18 +26,22 @@
26    --        :-=` this library; see the file COPYING.LIB. 26    --        :-=` this library; see the file COPYING.LIB.
27 If not, write to the Free Software Foundation, 27 If not, write to the Free Software Foundation,
28 Inc., 59 Temple Place - Suite 330, 28 Inc., 59 Temple Place - Suite 330,
29 Boston, MA 02111-1307, USA. 29 Boston, MA 02111-1307, USA.
30 30
31*/ 31*/
32 32
33#include "olistviewdemo.h" 33#include "olistviewdemo.h"
34
35/* OPIE */
34#include <opie2/olistview.h> 36#include <opie2/olistview.h>
37#include <opie2/odebug.h>
35 38
39/* QT */
36#include <qstring.h> 40#include <qstring.h>
37#include <qpixmap.h> 41#include <qpixmap.h>
38#include <qlistview.h> 42#include <qlistview.h>
39 43
40using namespace Opie::Ui; 44using namespace Opie::Ui;
41 45
42OListViewDemo::OListViewDemo( QWidget* parent, const char* name, WFlags f ) 46OListViewDemo::OListViewDemo( QWidget* parent, const char* name, WFlags f )
43 :QVBox( parent, name, f ) 47 :QVBox( parent, name, f )
@@ -60,23 +64,23 @@ OListViewDemo::OListViewDemo( QWidget* parent, const char* name, WFlags f )
60 new ONamedListViewItem( item, QStringList::split( ' ', "SubText1 Text2 Text3 Text4" ) ); 64 new ONamedListViewItem( item, QStringList::split( ' ', "SubText1 Text2 Text3 Text4" ) );
61 new ONamedListViewItem( item, QStringList::split( ' ', "SubText1 Text2 Text3 Text4" ) ); 65 new ONamedListViewItem( item, QStringList::split( ' ', "SubText1 Text2 Text3 Text4" ) );
62 new ONamedListViewItem( item, QStringList::split( ' ', "SubText1 Text2 Text3 Text4" ) ); 66 new ONamedListViewItem( item, QStringList::split( ' ', "SubText1 Text2 Text3 Text4" ) );
63 item = new ONamedListViewItem( item, QStringList::split( ' ', "Text1 Text2 Text3 HereItComes" ) ); 67 item = new ONamedListViewItem( item, QStringList::split( ' ', "Text1 Text2 Text3 HereItComes" ) );
64 item = new ONamedListViewItem( item, QStringList::split( ' ', "Text1 Text2 Text3 HereItComesSoon" ) ); 68 item = new ONamedListViewItem( item, QStringList::split( ' ', "Text1 Text2 Text3 HereItComesSoon" ) );
65 item = new ONamedListViewItem( item, QStringList::split( ' ', "Text1 Text2 Text3 Mickey" ) ); 69 item = new ONamedListViewItem( item, QStringList::split( ' ', "Text1 Text2 Text3 Mickey" ) );
66 70
67 if ( lv->find( 3, "Mickey", 3 ) ) 71 if ( lv->find( 3, "Mickey", 3 ) )
68 qDebug( "found Mickey :-)" ); 72 odebug << "found Mickey :-)" << oendl;
69 else 73 else
70 qDebug( "did not found Mickey :-(" ); 74 odebug << "did not found Mickey :-(" << oendl;
71 75
72 if ( lv->find( 3, "Minni", 0 ) ) 76 if ( lv->find( 3, "Minni", 0 ) )
73 qDebug( "found Minni :-)" ); 77 odebug << "found Minni :-)" << oendl;
74 else 78 else
75 qDebug( "did not found Minni :-(" ); 79 odebug << "did not found Minni :-(" << oendl;
76 80
77} 81}
78 82
79OListViewDemo::~OListViewDemo() 83OListViewDemo::~OListViewDemo()
80{ 84{
81} 85}
82 86
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
@@ -69,13 +69,13 @@ ListViews::~ListViews() {
69 69
70} 70}
71 71
72 72
73bool ListViews::eventFilter( QObject* obj, QEvent* ev ) { 73bool ListViews::eventFilter( QObject* obj, QEvent* ev ) {
74 if (!obj->isWidgetType() ) 74 if (!obj->isWidgetType() )
75 return false; 75 return false;
76 if ( ev->type() == QEvent::MouseButtonRelease ) { 76 if ( ev->type() == QEvent::MouseButtonRelease ) {
77 qWarning(" name %s, class %s", obj->name(), obj->className() ); 77 owarn << " name " << obj->name() << ", class " << obj->className() << "" << oendl;
78 } 78 }
79 79
80 return false; 80 return false;
81} 81}