From 1c93fca14d9ce37499bcfdf994c660186a0b6f17 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 14 Apr 2011 20:16:30 +0000 Subject: Enable kdepim compilation under Qt4 This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdepim/designerfields.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libkdepim/designerfields.cpp') diff --git a/libkdepim/designerfields.cpp b/libkdepim/designerfields.cpp index 6907485d..31a3b7f8 100644 --- a/libkdepim/designerfields.cpp +++ b/libkdepim/designerfields.cpp @@ -83,7 +83,7 @@ void DesignerFields::initGUI( const TQString &uiFile ) if ( name.startsWith( "X_" ) ) { name = name.mid( 2 ); - TQWidget *widget = static_cast( it.current() ); + TQWidget *widget = TQT_TQWIDGET( it.current() ); if ( !name.isEmpty() ) mWidgets.insert( name, widget ); @@ -187,13 +187,13 @@ void DesignerFields::load( DesignerFields::Storage *storage ) wdg->setChecked( value == "true" || value == "1" ); } else if ( it.data()->inherits( TQDATETIMEEDIT_OBJECT_NAME_STRING ) ) { TQDateTimeEdit *wdg = static_cast( it.data() ); - wdg->setDateTime( TQDateTime::fromString( value, TQt::ISODate ) ); + wdg->setDateTime( TQDateTime::fromString( value, Qt::ISODate ) ); } else if ( it.data()->inherits( "KDateTimeWidget" ) ) { KDateTimeWidget *wdg = static_cast( it.data() ); - wdg->setDateTime( TQDateTime::fromString( value, TQt::ISODate ) ); + wdg->setDateTime( TQDateTime::fromString( value, Qt::ISODate ) ); } else if ( it.data()->inherits( "KDatePicker" ) ) { KDatePicker *wdg = static_cast( it.data() ); - wdg->setDate( TQDate::fromString( value, TQt::ISODate ) ); + wdg->setDate( TQDate::fromString( value, Qt::ISODate ) ); } else if ( it.data()->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) { TQComboBox *wdg = static_cast( it.data() ); wdg->setCurrentText( value ); @@ -221,13 +221,13 @@ void DesignerFields::save( DesignerFields::Storage *storage ) value = ( wdg->isChecked() ? "true" : "false" ); } else if ( it.data()->inherits( TQDATETIMEEDIT_OBJECT_NAME_STRING ) ) { TQDateTimeEdit *wdg = static_cast( it.data() ); - value = wdg->dateTime().toString( TQt::ISODate ); + value = wdg->dateTime().toString( Qt::ISODate ); } else if ( it.data()->inherits( "KDateTimeWidget" ) ) { KDateTimeWidget *wdg = static_cast( it.data() ); - value = wdg->dateTime().toString( TQt::ISODate ); + value = wdg->dateTime().toString( Qt::ISODate ); } else if ( it.data()->inherits( "KDatePicker" ) ) { KDatePicker *wdg = static_cast( it.data() ); - value = wdg->date().toString( TQt::ISODate ); + value = wdg->date().toString( Qt::ISODate ); } else if ( it.data()->inherits( TQCOMBOBOX_OBJECT_NAME_STRING ) ) { TQComboBox *wdg = static_cast( it.data() ); value = wdg->currentText(); -- cgit v1.2.3