diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-15 15:08:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-15 15:08:51 -0600 |
commit | fb652a2be46ce1a2081e5dde268cd9f4ebe6fdd0 (patch) | |
tree | a01fcd88aa65a77c2b2e12ba1a55851ddfe5afcc /kmdi | |
parent | 3fbca5d9a4bd057ed5f9df138333e6c16dbdcc62 (diff) | |
download | tdelibs-fb652a2be46ce1a2081e5dde268cd9f4ebe6fdd0.tar.gz tdelibs-fb652a2be46ce1a2081e5dde268cd9f4ebe6fdd0.zip |
Fix kdelibs FTBFS on native TQt3
Diffstat (limited to 'kmdi')
-rw-r--r-- | kmdi/kmdichildarea.cpp | 2 | ||||
-rw-r--r-- | kmdi/kmdichildfrm.cpp | 12 | ||||
-rw-r--r-- | kmdi/kmdichildview.cpp | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/kmdi/kmdichildarea.cpp b/kmdi/kmdichildarea.cpp index 491afc06b..b65f69435 100644 --- a/kmdi/kmdichildarea.cpp +++ b/kmdi/kmdichildarea.cpp @@ -194,7 +194,7 @@ void KMdiChildArea::setTopChild( KMdiChildFrm* child, bool /* bSetFocus */ ) m_pZ->append( child ); int nChildAreaMinW = 0, nChildAreaMinH = 0; - int nChildAreaMaxW = QWIDGETSIZE_MAX, nChildAreaMaxH = QWIDGETSIZE_MAX; + int nChildAreaMaxW = TQWIDGETSIZE_MAX, nChildAreaMaxH = TQWIDGETSIZE_MAX; if ( topChildMaximized && child->m_pClient ) { //the former top child is maximized, so maximize the new one diff --git a/kmdi/kmdichildfrm.cpp b/kmdi/kmdichildfrm.cpp index 8221082b5..1345493c6 100644 --- a/kmdi/kmdichildfrm.cpp +++ b/kmdi/kmdichildfrm.cpp @@ -323,8 +323,8 @@ void KMdiChildFrm::resizeWindow( int resizeCorner, int xPos, int yPos ) // Calculate the minimum width & height int minWidth = 0; int minHeight = 0; - int maxWidth = QWIDGETSIZE_MAX; - int maxHeight = QWIDGETSIZE_MAX; + int maxWidth = TQWIDGETSIZE_MAX; + int maxHeight = TQWIDGETSIZE_MAX; // it could be the client forces the childframe to enlarge its minimum size if ( m_pClient ) @@ -562,7 +562,7 @@ void KMdiChildFrm::setState( MdiWindowState state, bool /*bAnimate*/ ) { m_pClient->tqlayout() ->setResizeMode( m_oldLayoutResizeMode ); } - setMaximumSize( QWIDGETSIZE_MAX, QWIDGETSIZE_MAX ); + setMaximumSize( TQWIDGETSIZE_MAX, TQWIDGETSIZE_MAX ); // reset to maximize-captionbar m_pMaximize->setPixmap( *m_pRestoreButtonPixmap ); m_pMinimize->setPixmap( *m_pMinButtonPixmap ); @@ -582,7 +582,7 @@ void KMdiChildFrm::setState( MdiWindowState state, bool /*bAnimate*/ ) m_pClient->m_stateChanged = true; m_state = state; // client min / max size / layout behavior don't change - setMaximumSize( QWIDGETSIZE_MAX, QWIDGETSIZE_MAX ); + setMaximumSize( TQWIDGETSIZE_MAX, TQWIDGETSIZE_MAX ); m_pMaximize->setPixmap( *m_pRestoreButtonPixmap ); int nFrameWidth = KMDI_CHILDFRM_DOUBLE_BORDER; int nFrameHeight = KMDI_CHILDFRM_DOUBLE_BORDER + KMDI_CHILDFRM_SEPARATOR + @@ -664,7 +664,7 @@ void KMdiChildFrm::setState( MdiWindowState state, bool /*bAnimate*/ ) else { m_pManager->setMinimumSize( 0, 0 ); - m_pManager->setMaximumSize( QWIDGETSIZE_MAX, QWIDGETSIZE_MAX ); + m_pManager->setMaximumSize( TQWIDGETSIZE_MAX, TQWIDGETSIZE_MAX ); } } @@ -782,7 +782,7 @@ void KMdiChildFrm::setClient( KMdiChildView *w, bool bAutomaticResize ) TQSize mincs = w->tqminimumSize(); TQSize maxcs = w->tqmaximumSize(); w->setMinimumSize( 0, 0 ); - w->setMaximumSize( QWIDGETSIZE_MAX, QWIDGETSIZE_MAX ); + w->setMaximumSize( TQWIDGETSIZE_MAX, TQWIDGETSIZE_MAX ); // min/max sizes, flags, DND get lost. :-( w->reparent( this, 0, pnt2, w->isVisible() ); diff --git a/kmdi/kmdichildview.cpp b/kmdi/kmdichildview.cpp index 7b626d027..cda168fb8 100644 --- a/kmdi/kmdichildview.cpp +++ b/kmdi/kmdichildview.cpp @@ -729,12 +729,12 @@ void KMdiChildView::setMaximumSize( int maxw, int maxh ) if ( mdiParent() && mdiParent()->state() == KMdiChildFrm::Normal ) { int w = maxw + KMDI_CHILDFRM_DOUBLE_BORDER; - if ( w > QWIDGETSIZE_MAX ) - w = QWIDGETSIZE_MAX; + if ( w > TQWIDGETSIZE_MAX ) + w = TQWIDGETSIZE_MAX; int h = maxh + KMDI_CHILDFRM_DOUBLE_BORDER + KMDI_CHILDFRM_SEPARATOR + mdiParent() ->captionHeight(); - if ( h > QWIDGETSIZE_MAX ) - h = QWIDGETSIZE_MAX; + if ( h > TQWIDGETSIZE_MAX ) + h = TQWIDGETSIZE_MAX; mdiParent()->setMaximumSize( w, h ); } |