summaryrefslogtreecommitdiffstats
path: root/ktnef
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch)
tree0212ba6d2c749043134005a41f2bd0379619d40f /ktnef
parent4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff)
downloadtdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz
tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktnef')
-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
-rw-r--r--ktnef/tests/mapi_attach_data_obj.tnefbin348541 -> 348539 bytes
9 files changed, 21 insertions, 21 deletions
diff --git a/ktnef/gui/attachpropertydialog.cpp b/ktnef/gui/attachpropertydialog.cpp
index fcc1a8a0..dc8e4760 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 b390caff..aa5e2bf3 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 d6781770..41e2d590 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 1b645d1e..ba7993d4 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 dcf401ab..871de9e0 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 8fbe5e4b..25504f87 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 075b4823..a2b1f75f 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 d7db44de..b7060d88 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();
diff --git a/ktnef/tests/mapi_attach_data_obj.tnef b/ktnef/tests/mapi_attach_data_obj.tnef
index 2c5b6473..66f7890c 100644
--- a/ktnef/tests/mapi_attach_data_obj.tnef
+++ b/ktnef/tests/mapi_attach_data_obj.tnef
Binary files differ