summaryrefslogtreecommitdiff
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
parentd2d25a3c1e60a34436cd93e5214a35b3edd05c6c (diff)
downloadopie-b81a7aeacda23d4407cd88ee017b67ea48344a94.zip
opie-b81a7aeacda23d4407cd88ee017b67ea48344a94.tar.gz
opie-b81a7aeacda23d4407cd88ee017b67ea48344a94.tar.bz2
Remove owarn to be less verbose
Diffstat (more/less context) (ignore 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
@@ -79,13 +79,12 @@ OSplitter::OSplitter( Orientation orient, QWidget* parent, const char* name, WFl
* Destructor destructs this object and cleans up. All child
* widgets will be deleted
* @see addWidget
*/
OSplitter::~OSplitter()
{
- owarn << "Deleted Splitter" << oendl;
m_splitter.setAutoDelete( true );
m_splitter.clear();
delete m_hbox;
delete m_tabWidget;
}
@@ -207,16 +206,13 @@ void OSplitter::removeWidget( OSplitter* split)
* @param label The label of the possible Tab
*/
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;
cont.name = label;
@@ -364,15 +360,13 @@ QSize OSplitter::minimumSizeHint()const
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();
mode = false;
}
@@ -383,13 +377,12 @@ void OSplitter::resizeEvent( QResizeEvent* res )
{
changeTab();
}
else if ( res->size().height() > m_size_policy &&
m_orient == Vertical )
{
- owarn << "Changng to vbox " << name() << "" << oendl;
changeVBox();
mode = false;
}
emit sizeChanged(mode, m_orient );
}
@@ -442,13 +435,12 @@ void OSplitter::changeTab()
raise();
show();
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
*
*/
OTabWidget *tab;
@@ -469,13 +461,12 @@ void OSplitter::changeTab()
connect(tab, SIGNAL(currentChanged(QWidget*) ),
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() )
{
split->reparent(this, 0, QPoint(0, 0) );
@@ -502,26 +493,24 @@ void OSplitter::changeHBox()
if (m_hbox )
{
m_hbox->setGeometry( frameRect() );
return;
}
- owarn << "new HBox " << name() << "" << oendl;
m_hbox = new QHBox( this );
commonChangeBox();
}
void OSplitter::changeVBox()
{
if (m_hbox )
{
m_hbox->setGeometry( frameRect() );
return;
}
- owarn << "New VBOX " << name() << "" << oendl;
m_hbox = new QVBox( this );
commonChangeBox();
}
@@ -530,20 +519,17 @@ void OSplitter::changeVBox()
* first remove and add children
* the other splitters
* 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() )
{
/* tell them the world had changed */
split->setTabWidget( 0 );
@@ -557,13 +543,12 @@ 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;
show(); // also show this widget
}
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
@@ -307,13 +307,12 @@ void OWidgetStack::hideWidget( QWidget* wid) {
raiseWidget( 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 )
switchTop();
else