diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /kpovmodeler/pmsettingsdialog.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-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/pmsettingsdialog.cpp')
-rw-r--r-- | kpovmodeler/pmsettingsdialog.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kpovmodeler/pmsettingsdialog.cpp b/kpovmodeler/pmsettingsdialog.cpp index 3830a5d9..dc224d9d 100644 --- a/kpovmodeler/pmsettingsdialog.cpp +++ b/kpovmodeler/pmsettingsdialog.cpp @@ -40,16 +40,16 @@ //#define KPM_WITH_OBJECT_LIBRARY -PMSettingsDialogPage::PMSettingsDialogPage( TQWidget* parent, const char* name ) - : TQWidget( parent, name ) +PMSettingsDialogPage::PMSettingsDialogPage( TQWidget* tqparent, const char* name ) + : TQWidget( tqparent, name ) { } TQSize PMSettingsDialog::s_size = TQSize( 640, 400 ); -PMSettingsDialog::PMSettingsDialog( PMPart* part, TQWidget* parent, const char* name ) +PMSettingsDialog::PMSettingsDialog( PMPart* part, TQWidget* tqparent, const char* name ) : KDialogBase( TreeList, i18n( "Configure" ), Ok | Apply | Cancel | Default, Ok, - parent, name ) + tqparent, name ) { TQStringList sl; TQWidget* w = 0; @@ -111,7 +111,7 @@ PMSettingsDialog::PMSettingsDialog( PMPart* part, TQWidget* parent, const char* sl.clear( ); sl.append( i18n( "View Layout" ) ); w = addVBoxPage( sl, i18n( "Display Settings for View Layouts" ), - SmallIcon( "pmconfigureviewlayout", 22 ) ); + SmallIcon( "pmconfigureviewtqlayout", 22 ) ); p = new PMLayoutSettings( w ); registerPage( w, p ); @@ -187,13 +187,13 @@ bool PMSettingsDialog::validateData( ) void PMSettingsDialog::saveSettings( ) { - m_repaint = false; + m_tqrepaint = false; TQValueList<PMRegisteredSettingsPage>::const_iterator it; for( it = m_pages.begin( ); it != m_pages.end( ); ++it ) ( *it ).page->applySettings( ); - if( m_repaint ) + if( m_tqrepaint ) { PMRenderManager* rm = PMRenderManager::theManager( ); rm->slotRenderingSettingsChanged( ); @@ -229,19 +229,19 @@ void PMSettingsDialog::registerPage( TQWidget* topPage, else { m_pages.push_back( PMRegisteredSettingsPage( topPage, page, i ) ); - connect( page, TQT_SIGNAL( repaintViews( ) ), TQT_SLOT( slotRepaint( ) ) ); + connect( page, TQT_SIGNAL( tqrepaintViews( ) ), TQT_SLOT( slotRepaint( ) ) ); connect( page, TQT_SIGNAL( showMe( ) ), TQT_SLOT( slotShowPage( ) ) ); } } void PMSettingsDialog::slotRepaint( ) { - m_repaint = true; + m_tqrepaint = true; } void PMSettingsDialog::slotShowPage( ) { - const TQObject* w = sender( ); + const TQObject* w = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender( ))); if( w ) { int index = findPage( ( const PMSettingsDialogPage* ) w ); |