From e69e8b1d09fb579316595b4e6a850e717358a8b1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 19 Jun 2011 19:03:33 +0000 Subject: TQt4 port kdegraphics This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmdialogview.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kpovmodeler/pmdialogview.cpp') diff --git a/kpovmodeler/pmdialogview.cpp b/kpovmodeler/pmdialogview.cpp index 243427b5..1df22c26 100644 --- a/kpovmodeler/pmdialogview.cpp +++ b/kpovmodeler/pmdialogview.cpp @@ -39,8 +39,8 @@ #include #include -PMDialogEditContent::PMDialogEditContent( TQWidget* parent, const char* name ) - : TQScrollView( parent, name ) +PMDialogEditContent::PMDialogEditContent( TQWidget* tqparent, const char* name ) + : TQScrollView( tqparent, name ) { m_pContents = 0; setVScrollBarMode( AlwaysOff ); @@ -69,7 +69,7 @@ void PMDialogEditContent::calculateSize( ) int fw = lineWidth( ) * 2; if( m_pContents ) { - TQSize newSize = m_pContents->minimumSizeHint( ); + TQSize newSize = m_pContents->tqminimumSizeHint( ); setVScrollBarMode( AlwaysOff ); setHScrollBarMode( AlwaysOff ); @@ -111,8 +111,8 @@ void PMDialogEditContent::resizeEvent( TQResizeEvent* /* ev */ ) calculateSize( ); } -PMDialogView::PMDialogView( PMPart* part, TQWidget* parent, const char* name ) - : PMViewBase( parent, name ) +PMDialogView::PMDialogView( PMPart* part, TQWidget* tqparent, const char* name ) + : PMViewBase( tqparent, name ) { m_pDisplayedWidget = 0; m_unsavedData = false; @@ -174,7 +174,7 @@ PMDialogView::~PMDialogView( ) void PMDialogView::slotObjectChanged( PMObject* obj, const int mode, TQObject* sender ) { - if( sender == this ) + if( TQT_BASE_OBJECT(sender) == TQT_BASE_OBJECT(this) ) return; if( mode & PMCNewSelection ) { @@ -314,10 +314,10 @@ void PMDialogView::slotDataChanged( ) void PMDialogView::slotSizeChanged( ) { - // force recalculating of the layout + // force recalculating of the tqlayout if( m_pDisplayedWidget ) - if( m_pDisplayedWidget->layout( ) ) - m_pDisplayedWidget->layout( )->activate( ); + if( m_pDisplayedWidget->tqlayout( ) ) + m_pDisplayedWidget->tqlayout( )->activate( ); m_pHelper->calculateSize( ); } @@ -325,7 +325,7 @@ void PMDialogView::slotControlPointSelectionChanged( ) { if( m_pDisplayedWidget && m_pDisplayedWidget->displayedObject( ) ) emit objectChanged( m_pDisplayedWidget->displayedObject( ), - PMCControlPointSelection, this ); + PMCControlPointSelection, TQT_TQOBJECT(this) ); } void PMDialogView::displayObject( PMObject* obj, bool updateDescription ) -- cgit v1.2.1