summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmdialogview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kpovmodeler/pmdialogview.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
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
Diffstat (limited to 'kpovmodeler/pmdialogview.cpp')
-rw-r--r--kpovmodeler/pmdialogview.cpp20
1 files changed, 10 insertions, 10 deletions
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 <tqscrollview.h>
#include <tqlabel.h>
-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 )