summaryrefslogtreecommitdiffstats
path: root/ktnef/gui/attachpropertydialog.cpp
diff options
context:
space:
mode:
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 06e2685d..7fd6cacf 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 ) );