From 9135254f2b593741cf7b0ffd80bb8bb63986333d Mon Sep 17 00:00:00 2001 From: ar Date: Wed, 02 Jun 2004 22:20:53 +0000 Subject: - convert to odebug framework --- (limited to 'libopie2/opieui/big-screen') diff --git a/libopie2/opieui/big-screen/osplitter.cpp b/libopie2/opieui/big-screen/osplitter.cpp index f0287ed..f50e7f0 100644 --- a/libopie2/opieui/big-screen/osplitter.cpp +++ b/libopie2/opieui/big-screen/osplitter.cpp @@ -30,6 +30,7 @@ /* OPIE */ #include +#include /* QT */ #include @@ -81,7 +82,7 @@ OSplitter::OSplitter( Orientation orient, QWidget* parent, const char* name, WFl */ OSplitter::~OSplitter() { - qWarning("Deleted Splitter"); + owarn << "Deleted Splitter" << oendl; m_splitter.setAutoDelete( true ); m_splitter.clear(); @@ -210,7 +211,7 @@ void OSplitter::addWidget( QWidget* wid, const QString& icon, const QString& lab #ifdef DEBUG if (!wid ) { - qWarning("Widget is not valid!"); + owarn << "Widget is not valid!" << oendl; return; } #endif @@ -366,9 +367,9 @@ void OSplitter::resizeEvent( QResizeEvent* res ) /* * */ - // qWarning("Old size was width = %d height = %d", res->oldSize().width(), res->oldSize().height() ); + // owarn << "Old size was width = " << res->oldSize().width() << " height = " << res->oldSize().height() << "" << oendl; bool mode = true; - qWarning("New size is width = %d height = %d %s", res->size().width(), res->size().height(), name() ); + owarn << "New size is width = " << res->size().width() << " height = " << res->size().height() << " " << name() << "" << oendl; if ( res->size().width() > m_size_policy && m_orient == Horizontal ) { @@ -385,7 +386,7 @@ void OSplitter::resizeEvent( QResizeEvent* res ) else if ( res->size().height() > m_size_policy && m_orient == Vertical ) { - qWarning("Changng to vbox %s", name() ); + owarn << "Changng to vbox " << name() << "" << oendl; changeVBox(); mode = false; } @@ -444,7 +445,7 @@ void OSplitter::changeTab() return; } - qWarning(" New Tab Widget %s", name() ); + owarn << " New Tab Widget " << name() << "" << oendl; /* * and add all widgets this will reparent them * delete m_hbox set it to 0 @@ -471,7 +472,7 @@ void OSplitter::changeTab() for ( ContainerList::Iterator it = m_container.begin(); it != m_container.end(); ++it ) { - qWarning("Widget is %s", (*it).name.latin1() ); + owarn << "Widget is " << (*it).name << "" << oendl; addToTab( (*it) ); } @@ -504,7 +505,7 @@ void OSplitter::changeHBox() return; } - qWarning("new HBox %s", name() ); + owarn << "new HBox " << name() << "" << oendl; m_hbox = new QHBox( this ); commonChangeBox(); } @@ -517,7 +518,7 @@ void OSplitter::changeVBox() return; } - qWarning("New VBOX %s", name() ); + owarn << "New VBOX " << name() << "" << oendl; m_hbox = new QVBox( this ); commonChangeBox(); @@ -532,14 +533,14 @@ void OSplitter::changeVBox() */ void OSplitter::commonChangeBox() { - qWarning(" Name of Splitters is %s", name() ); + owarn << " Name of Splitters is " << name() << "" << oendl; for (ContainerList::Iterator it = m_container.begin(); it != m_container.end(); ++it ) { /* only if parent tab.. m_tabWidgets gets deleted and would do that as well */ if (m_parentTab ) removeFromTab( (*it).widget ); - qWarning("Adding to box %s", (*it).name.latin1() ); + owarn << "Adding to box " << (*it).name << "" << oendl; addToBox( (*it) ); } for ( OSplitter* split = m_splitter.first(); split; split = m_splitter.next() ) @@ -559,7 +560,7 @@ void OSplitter::commonChangeBox() m_parentTab->addTab(m_hbox, iconName(), label() ); else { - qWarning(" setting Box geometry for %s", name() ); + owarn << " setting Box geometry for " << name() << "" << oendl; m_hbox->setGeometry( frameRect() ); m_hbox->show(); delete m_tabWidget; diff --git a/libopie2/opieui/big-screen/owidgetstack.cpp b/libopie2/opieui/big-screen/owidgetstack.cpp index a0a6355..de7f83f 100644 --- a/libopie2/opieui/big-screen/owidgetstack.cpp +++ b/libopie2/opieui/big-screen/owidgetstack.cpp @@ -28,6 +28,9 @@ #include "owidgetstack.h" +/* OPIE */ +#include + /* QT */ #include #include @@ -307,7 +310,7 @@ void OWidgetStack::hideWidget( QWidget* wid) { bool OWidgetStack::eventFilter( QObject* obj, QEvent* e) { - qWarning(" %s %s", obj->name(), obj->className() ); + owarn << " " << obj->name() << " " << obj->className() << "" << oendl; if ( e->type() == QEvent::Resize ) { QResizeEvent *res = static_cast( e ); QSize size = res->size(); -- cgit v0.9.0.2