summaryrefslogtreecommitdiff
path: root/libopie
authorzecke <zecke>2003-09-04 17:04:06 (UTC)
committer zecke <zecke>2003-09-04 17:04:06 (UTC)
commit302e9b70ecb247977decf97269807abe5eccbdd7 (patch) (unidiff)
tree59bb2fe59f0ced82acd0d3529af16c0e0d516772 /libopie
parentd11827ca5879b21488c189fb09f32ecf635644ae (diff)
downloadopie-302e9b70ecb247977decf97269807abe5eccbdd7.zip
opie-302e9b70ecb247977decf97269807abe5eccbdd7.tar.gz
opie-302e9b70ecb247977decf97269807abe5eccbdd7.tar.bz2
Rely on QFRame for the sizeHint
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/big-screen/osplitter.cpp7
-rw-r--r--libopie/big-screen/osplitter.h5
2 files changed, 7 insertions, 5 deletions
diff --git a/libopie/big-screen/osplitter.cpp b/libopie/big-screen/osplitter.cpp
index b09bc94..0c9ed6c 100644
--- a/libopie/big-screen/osplitter.cpp
+++ b/libopie/big-screen/osplitter.cpp
@@ -305,10 +305,10 @@ QWidget* OSplitter::currentWidget() const{
305 return m_parentTab->currentWidget(); 305 return m_parentTab->currentWidget();
306 306
307 return 0l; 307 return 0l;
308} 308}
309 309/* wrong */
310 310#if 0
311/** 311/**
312 * @reimplented for internal reasons 312 * @reimplented for internal reasons
313 * returns the sizeHint of one of its sub widgets 313 * returns the sizeHint of one of its sub widgets
314 */ 314 */
@@ -329,9 +329,9 @@ QSize OSplitter::minimumSizeHint()const {
329 return m_hbox->sizeHint(); 329 return m_hbox->sizeHint();
330 else 330 else
331 return m_tabWidget->sizeHint(); 331 return m_tabWidget->sizeHint();
332} 332}
333 333#endif
334 334
335/** 335/**
336 * @reimplemented for internal reasons 336 * @reimplemented for internal reasons
337 */ 337 */
@@ -514,8 +514,9 @@ void OSplitter::commonChangeBox() {
514 m_hbox->setGeometry( frameRect() ); 514 m_hbox->setGeometry( frameRect() );
515 m_hbox->show(); 515 m_hbox->show();
516 delete m_tabWidget; 516 delete m_tabWidget;
517 m_tabWidget = 0; 517 m_tabWidget = 0;
518 show(); // also show this widget
518 } 519 }
519} 520}
520 521
521/* 522/*
diff --git a/libopie/big-screen/osplitter.h b/libopie/big-screen/osplitter.h
index 33a085f..61a247b 100644
--- a/libopie/big-screen/osplitter.h
+++ b/libopie/big-screen/osplitter.h
@@ -90,8 +90,9 @@ public:
90 void setCurrentWidget( const QString& label ); 90 void setCurrentWidget( const QString& label );
91 void setCurrentWidget( int ); 91 void setCurrentWidget( int );
92 QWidget* currentWidget()const; 92 QWidget* currentWidget()const;
93 93
94
94signals: 95signals:
95 /** 96 /**
96 * Emitted if in tab and comes directly from the tab widget 97 * Emitted if in tab and comes directly from the tab widget
97 * 98 *
@@ -107,10 +108,10 @@ signals:
107 * @param ori The orientation 108 * @param ori The orientation
108 */ 109 */
109 void sizeChanged( bool b, Orientation ori); 110 void sizeChanged( bool b, Orientation ori);
110public: 111public:
111 QSize sizeHint()const; 112// QSize sizeHint()const;
112 QSize minimumSizeHint()const; 113// QSize minimumSizeHint()const;
113 114
114protected: 115protected:
115 void resizeEvent( QResizeEvent* ); 116 void resizeEvent( QResizeEvent* );
116 117