summaryrefslogtreecommitdiffstats
path: root/ktnef/gui/attachpropertydialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /ktnef/gui/attachpropertydialog.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
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
Diffstat (limited to 'ktnef/gui/attachpropertydialog.cpp')
-rw-r--r--ktnef/gui/attachpropertydialog.cpp18
1 files changed, 9 insertions, 9 deletions
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 <tqdatastream.h>
#include <tqpicture.h>
-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("<b>"+s+"</b>");
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 ) );