From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ktnef/gui/attachpropertydialog.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ktnef/gui/attachpropertydialog.cpp') diff --git a/ktnef/gui/attachpropertydialog.cpp b/ktnef/gui/attachpropertydialog.cpp index 06e2685d6..7fd6cacf5 100644 --- a/ktnef/gui/attachpropertydialog.cpp +++ b/ktnef/gui/attachpropertydialog.cpp @@ -33,8 +33,8 @@ #include #include -AttachPropertyDialog::AttachPropertyDialog(TQWidget *parent, const char *name) - : AttachPropertyDialogBase(parent, name, true) +AttachPropertyDialog::AttachPropertyDialog(TQWidget *tqparent, const char *name) + : AttachPropertyDialogBase(tqparent, name, true) { } @@ -44,7 +44,7 @@ AttachPropertyDialog::~AttachPropertyDialog() void AttachPropertyDialog::setAttachment(KTNEFAttach *attach) { - QString s = (attach->fileName().isEmpty() ? attach->name() : attach->fileName()); + TQString s = (attach->fileName().isEmpty() ? attach->name() : attach->fileName()); filename_->setText(""+s+""); setCaption(s); display_->setText(attach->displayName()); @@ -113,19 +113,19 @@ void formatPropertySet( KTNEFPropertySet *pSet, TQListView *lv ) formatProperties( pSet->attributes(), 0, item, "attr" ); } -void saveProperty( TQListView *lv, KTNEFPropertySet *pSet, TQWidget *parent ) +void saveProperty( TQListView *lv, KTNEFPropertySet *pSet, TQWidget *tqparent ) { TQListViewItem *item = lv->selectedItem(); if ( !item ) - KMessageBox::error( parent, i18n( "Select an item." ) ); + KMessageBox::error( tqparent, i18n( "Select an item." ) ); else if ( item->text( 2 ).isEmpty() ) - KMessageBox::error( parent, i18n( "The selected item cannot be saved." ) ); + KMessageBox::error( tqparent, i18n( "The selected item cannot be saved." ) ); else { TQString tag = item->text( 2 ); int key = tag.mid( 5 ).toInt(); TQVariant prop = ( tag.startsWith( "attr_" ) ? pSet->attribute( key ) : pSet->property( key ) ); - TQString filename = KFileDialog::getSaveFileName( tag, TQString::null, parent ); + TQString filename = KFileDialog::getSaveFileName( tag, TQString(), tqparent ); if ( !filename.isEmpty() ) { TQFile f( filename ); @@ -146,7 +146,7 @@ void saveProperty( TQListView *lv, KTNEFPropertySet *pSet, TQWidget *parent ) f.close(); } else - KMessageBox::error( parent, i18n( "Unable to open file for writing, check file permissions." ) ); + KMessageBox::error( tqparent, i18n( "Unable to open file for writing, check file permissions." ) ); } } } @@ -170,7 +170,7 @@ TQPixmap loadRenderingPixmap( KTNEFPropertySet *pSet, const TQColor& bgColor ) if ( type == 1 && w > 0 && h > 0 ) { // Load WMF data - QWinMetaFile wmfLoader; + TQWinMetaFile wmfLoader; TQBuffer wmfBuffer( wmf.asByteArray() ); wmfBuffer.open( IO_ReadOnly ); wmfLoader.setBbox( TQRect( 0, 0, w, h ) ); -- cgit v1.2.1