summaryrefslogtreecommitdiff
path: root/libopie2/opieui
authorzecke <zecke>2004-11-11 22:00:18 (UTC)
committer zecke <zecke>2004-11-11 22:00:18 (UTC)
commitb81a7aeacda23d4407cd88ee017b67ea48344a94 (patch) (side-by-side diff)
treeeda86d8db6cca3608cf12a298765f468bceed030 /libopie2/opieui
parentd2d25a3c1e60a34436cd93e5214a35b3edd05c6c (diff)
downloadopie-b81a7aeacda23d4407cd88ee017b67ea48344a94.zip
opie-b81a7aeacda23d4407cd88ee017b67ea48344a94.tar.gz
opie-b81a7aeacda23d4407cd88ee017b67ea48344a94.tar.bz2
Remove owarn to be less verbose
Diffstat (limited to 'libopie2/opieui') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/big-screen/osplitter.cpp15
-rw-r--r--libopie2/opieui/big-screen/owidgetstack.cpp1
2 files changed, 0 insertions, 16 deletions
diff --git a/libopie2/opieui/big-screen/osplitter.cpp b/libopie2/opieui/big-screen/osplitter.cpp
index f50e7f0..78e919a 100644
--- a/libopie2/opieui/big-screen/osplitter.cpp
+++ b/libopie2/opieui/big-screen/osplitter.cpp
@@ -81,9 +81,8 @@ OSplitter::OSplitter( Orientation orient, QWidget* parent, const char* name, WFl
* @see addWidget
*/
OSplitter::~OSplitter()
{
- owarn << "Deleted Splitter" << oendl;
m_splitter.setAutoDelete( true );
m_splitter.clear();
delete m_hbox;
@@ -209,12 +208,9 @@ void OSplitter::removeWidget( OSplitter* split)
void OSplitter::addWidget( QWidget* wid, const QString& icon, const QString& label )
{
#ifdef DEBUG
if (!wid )
- {
- owarn << "Widget is not valid!" << oendl;
return;
- }
#endif
OSplitterContainer cont;
cont.widget = wid;
cont.icon =icon;
@@ -366,11 +362,9 @@ void OSplitter::resizeEvent( QResizeEvent* res )
QFrame::resizeEvent( res );
/*
*
*/
- // owarn << "Old size was width = " << res->oldSize().width() << " height = " << res->oldSize().height() << "" << oendl;
bool mode = true;
- owarn << "New size is width = " << res->size().width() << " height = " << res->size().height() << " " << name() << "" << oendl;
if ( res->size().width() > m_size_policy &&
m_orient == Horizontal )
{
changeHBox();
@@ -385,9 +379,8 @@ void OSplitter::resizeEvent( QResizeEvent* res )
}
else if ( res->size().height() > m_size_policy &&
m_orient == Vertical )
{
- owarn << "Changng to vbox " << name() << "" << oendl;
changeVBox();
mode = false;
}
@@ -444,9 +437,8 @@ void OSplitter::changeTab()
m_tabWidget->setGeometry( frameRect() );
return;
}
- owarn << " New Tab Widget " << name() << "" << oendl;
/*
* and add all widgets this will reparent them
* delete m_hbox set it to 0
*
@@ -471,9 +463,8 @@ void OSplitter::changeTab()
this, SIGNAL(currentChanged(QWidget*) ) );
for ( ContainerList::Iterator it = m_container.begin(); it != m_container.end(); ++it )
{
- owarn << "Widget is " << (*it).name << "" << oendl;
addToTab( (*it) );
}
for ( OSplitter* split = m_splitter.first(); split; split = m_splitter.next() )
@@ -504,9 +495,8 @@ void OSplitter::changeHBox()
m_hbox->setGeometry( frameRect() );
return;
}
- owarn << "new HBox " << name() << "" << oendl;
m_hbox = new QHBox( this );
commonChangeBox();
}
@@ -517,9 +507,8 @@ void OSplitter::changeVBox()
m_hbox->setGeometry( frameRect() );
return;
}
- owarn << "New VBOX " << name() << "" << oendl;
m_hbox = new QVBox( this );
commonChangeBox();
@@ -532,16 +521,13 @@ void OSplitter::changeVBox()
* it is recursive as well due the call to setTabWidget
*/
void OSplitter::commonChangeBox()
{
- 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 );
- owarn << "Adding to box " << (*it).name << "" << oendl;
addToBox( (*it) );
}
for ( OSplitter* split = m_splitter.first(); split; split = m_splitter.next() )
{
@@ -559,9 +545,8 @@ void OSplitter::commonChangeBox()
if (m_parentTab )
m_parentTab->addTab(m_hbox, iconName(), label() );
else
{
- owarn << " setting Box geometry for " << name() << "" << oendl;
m_hbox->setGeometry( frameRect() );
m_hbox->show();
delete m_tabWidget;
m_tabWidget = 0;
diff --git a/libopie2/opieui/big-screen/owidgetstack.cpp b/libopie2/opieui/big-screen/owidgetstack.cpp
index 9c9f7ec..b14a643 100644
--- a/libopie2/opieui/big-screen/owidgetstack.cpp
+++ b/libopie2/opieui/big-screen/owidgetstack.cpp
@@ -309,9 +309,8 @@ void OWidgetStack::hideWidget( QWidget* wid) {
}
bool OWidgetStack::eventFilter( QObject* obj, QEvent* e) {
- owarn << " " << obj->name() << " " << obj->className() << "" << oendl;
if ( e->type() == QEvent::Resize ) {
QResizeEvent *res = static_cast<QResizeEvent*>( e );
QSize size = res->size();
if ( size.width() >= mode_size )