summaryrefslogtreecommitdiffstats
path: root/ktnef/gui
diff options
context:
space:
mode:
Diffstat (limited to 'ktnef/gui')
-rw-r--r--ktnef/gui/attachpropertydialog.cpp14
-rw-r--r--ktnef/gui/attachpropertydialog.h2
-rw-r--r--ktnef/gui/ktnefmain.cpp4
-rw-r--r--ktnef/gui/ktnefmain.h2
-rw-r--r--ktnef/gui/ktnefview.cpp12
-rw-r--r--ktnef/gui/ktnefview.h2
-rw-r--r--ktnef/gui/messagepropertydialog.cpp4
-rw-r--r--ktnef/gui/messagepropertydialog.h2
8 files changed, 21 insertions, 21 deletions
diff --git a/ktnef/gui/attachpropertydialog.cpp b/ktnef/gui/attachpropertydialog.cpp
index fcc1a8a0a..dc8e47607 100644
--- a/ktnef/gui/attachpropertydialog.cpp
+++ b/ktnef/gui/attachpropertydialog.cpp
@@ -33,8 +33,8 @@
#include <tqdatastream.h>
#include <tqpicture.h>
-AttachPropertyDialog::AttachPropertyDialog(TQWidget *tqparent, const char *name)
- : AttachPropertyDialogBase(tqparent, name, true)
+AttachPropertyDialog::AttachPropertyDialog(TQWidget *parent, const char *name)
+ : AttachPropertyDialogBase(parent, name, true)
{
}
@@ -113,19 +113,19 @@ void formatPropertySet( KTNEFPropertySet *pSet, TQListView *lv )
formatProperties( pSet->attributes(), 0, item, "attr" );
}
-void saveProperty( TQListView *lv, KTNEFPropertySet *pSet, TQWidget *tqparent )
+void saveProperty( TQListView *lv, KTNEFPropertySet *pSet, TQWidget *parent )
{
TQListViewItem *item = lv->selectedItem();
if ( !item )
- KMessageBox::error( tqparent, i18n( "Select an item." ) );
+ KMessageBox::error( parent, i18n( "Select an item." ) );
else if ( item->text( 2 ).isEmpty() )
- KMessageBox::error( tqparent, i18n( "The selected item cannot be saved." ) );
+ KMessageBox::error( parent, 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(), tqparent );
+ TQString filename = KFileDialog::getSaveFileName( tag, TQString(), parent );
if ( !filename.isEmpty() )
{
TQFile f( filename );
@@ -146,7 +146,7 @@ void saveProperty( TQListView *lv, KTNEFPropertySet *pSet, TQWidget *tqparent )
f.close();
}
else
- KMessageBox::error( tqparent, i18n( "Unable to open file for writing, check file permissions." ) );
+ KMessageBox::error( parent, i18n( "Unable to open file for writing, check file permissions." ) );
}
}
}
diff --git a/ktnef/gui/attachpropertydialog.h b/ktnef/gui/attachpropertydialog.h
index b390caffe..aa5e2bf3a 100644
--- a/ktnef/gui/attachpropertydialog.h
+++ b/ktnef/gui/attachpropertydialog.h
@@ -31,7 +31,7 @@ class TQListViewItem;
class AttachPropertyDialog : public AttachPropertyDialogBase
{
public:
- AttachPropertyDialog(TQWidget *tqparent = 0, const char *name = 0);
+ AttachPropertyDialog(TQWidget *parent = 0, const char *name = 0);
~AttachPropertyDialog();
void setAttachment(KTNEFAttach *attach);
diff --git a/ktnef/gui/ktnefmain.cpp b/ktnef/gui/ktnefmain.cpp
index d6781770e..41e2d590f 100644
--- a/ktnef/gui/ktnefmain.cpp
+++ b/ktnef/gui/ktnefmain.cpp
@@ -57,8 +57,8 @@
#define NOT_IMPLEMENTED TQMessageBox::information(this, "ktnef", "Not implemented yet", TQMessageBox::Ok|TQMessageBox::Default, 0)
-KTNEFMain::KTNEFMain(TQWidget *tqparent, const char *name)
- : KMainWindow(tqparent, name)
+KTNEFMain::KTNEFMain(TQWidget *parent, const char *name)
+ : KMainWindow(parent, name)
{
setupActions();
setupStatusbar();
diff --git a/ktnef/gui/ktnefmain.h b/ktnef/gui/ktnefmain.h
index 1b645d1e5..ba7993d44 100644
--- a/ktnef/gui/ktnefmain.h
+++ b/ktnef/gui/ktnefmain.h
@@ -32,7 +32,7 @@ class KTNEFMain : public KMainWindow
TQ_OBJECT
public:
- KTNEFMain(TQWidget *tqparent = 0, const char *name = 0);
+ KTNEFMain(TQWidget *parent = 0, const char *name = 0);
~KTNEFMain();
void loadFile(const TQString& filename);
diff --git a/ktnef/gui/ktnefview.cpp b/ktnef/gui/ktnefview.cpp
index dcf401ab3..871de9e04 100644
--- a/ktnef/gui/ktnefview.cpp
+++ b/ktnef/gui/ktnefview.cpp
@@ -33,7 +33,7 @@
class Attachment : public TQListViewItem
{
public:
- Attachment(TQListView *tqparent, KTNEFAttach *attach);
+ Attachment(TQListView *parent, KTNEFAttach *attach);
~Attachment();
KTNEFAttach* getAttachment() const { return attach_; }
@@ -42,14 +42,14 @@ private:
KTNEFAttach *attach_;
};
-Attachment::Attachment(TQListView *tqparent, KTNEFAttach *attach)
- : TQListViewItem(tqparent, attach->name()), attach_(attach)
+Attachment::Attachment(TQListView *parent, KTNEFAttach *attach)
+ : TQListViewItem(parent, attach->name()), attach_(attach)
{
setText(2, TQString::number( attach_->size() ));
if (!attach_->fileName().isEmpty()) setText(0, attach_->fileName());
KMimeType::Ptr mimeType = KMimeType::mimeType( attach_->mimeTag() );
setText(1, mimeType->comment());
- TQPixmap pix = loadRenderingPixmap( attach, tqparent->tqcolorGroup().base() );
+ TQPixmap pix = loadRenderingPixmap( attach, parent->tqcolorGroup().base() );
if ( !pix.isNull() )
setPixmap( 0, pix );
else
@@ -63,8 +63,8 @@ Attachment::~Attachment()
//------------------------------------------------------------------------------------------------------
-KTNEFView::KTNEFView(TQWidget *tqparent, const char *name)
- : KListView(tqparent,name)
+KTNEFView::KTNEFView(TQWidget *parent, const char *name)
+ : KListView(parent,name)
{
attachments_.setAutoDelete(false);
addColumn(i18n("File Name"));
diff --git a/ktnef/gui/ktnefview.h b/ktnef/gui/ktnefview.h
index 8fbe5e4bf..25504f87a 100644
--- a/ktnef/gui/ktnefview.h
+++ b/ktnef/gui/ktnefview.h
@@ -30,7 +30,7 @@ class KDE_EXPORT KTNEFView : public KListView
TQ_OBJECT
public:
- KTNEFView(TQWidget *tqparent = 0, const char *name = 0);
+ KTNEFView(TQWidget *parent = 0, const char *name = 0);
~KTNEFView();
void setAttachments(TQPtrList<KTNEFAttach> *list);
diff --git a/ktnef/gui/messagepropertydialog.cpp b/ktnef/gui/messagepropertydialog.cpp
index 075b4823b..a2b1f75f9 100644
--- a/ktnef/gui/messagepropertydialog.cpp
+++ b/ktnef/gui/messagepropertydialog.cpp
@@ -22,8 +22,8 @@
#include <klistview.h>
#include <klocale.h>
-MessagePropertyDialog::MessagePropertyDialog( TQWidget *tqparent, KTNEFMessage *msg )
- : KDialogBase( tqparent, "MessagePropertyDialog", true, i18n( "Message Properties" ),
+MessagePropertyDialog::MessagePropertyDialog( TQWidget *parent, KTNEFMessage *msg )
+ : KDialogBase( parent, "MessagePropertyDialog", true, i18n( "Message Properties" ),
KDialogBase::Close|KDialogBase::User1, KDialogBase::Close, false,
KStdGuiItem::save() )
{
diff --git a/ktnef/gui/messagepropertydialog.h b/ktnef/gui/messagepropertydialog.h
index d7db44def..b7060d880 100644
--- a/ktnef/gui/messagepropertydialog.h
+++ b/ktnef/gui/messagepropertydialog.h
@@ -28,7 +28,7 @@ class MessagePropertyDialog : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
- MessagePropertyDialog( TQWidget *tqparent, KTNEFMessage *msg );
+ MessagePropertyDialog( TQWidget *parent, KTNEFMessage *msg );
protected slots:
void slotUser1();