summaryrefslogtreecommitdiffstats
path: root/kgpg
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
commit625904bd3097f9749450428904ca14ff2531824d (patch)
treea45c43d5de71cb720078fa1272a4339815a919be /kgpg
parent6335dc55802871b5a43492f217b6edbb420204c4 (diff)
downloadtdeutils-625904bd3097f9749450428904ca14ff2531824d.tar.gz
tdeutils-625904bd3097f9749450428904ca14ff2531824d.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgpg')
-rw-r--r--kgpg/detailedconsole.cpp8
-rw-r--r--kgpg/detailedconsole.h4
-rw-r--r--kgpg/keygener.cpp2
-rw-r--r--kgpg/keygener.h2
-rw-r--r--kgpg/keyinfowidget.cpp2
-rw-r--r--kgpg/keyinfowidget.h2
-rw-r--r--kgpg/keyservers.cpp2
-rw-r--r--kgpg/keyservers.h2
-rw-r--r--kgpg/kgpg.cpp10
-rw-r--r--kgpg/kgpg.h4
-rw-r--r--kgpg/kgpgeditor.cpp2
-rw-r--r--kgpg/kgpgeditor.h2
-rw-r--r--kgpg/kgpginterface.cpp2
-rw-r--r--kgpg/kgpginterface.h2
-rw-r--r--kgpg/kgpglibrary.cpp6
-rw-r--r--kgpg/kgpglibrary.h2
-rw-r--r--kgpg/kgpgoptions.cpp4
-rw-r--r--kgpg/kgpgoptions.h2
-rw-r--r--kgpg/kgpgview.cpp14
-rw-r--r--kgpg/kgpgview.h6
-rw-r--r--kgpg/listkeys.cpp54
-rw-r--r--kgpg/listkeys.h8
-rw-r--r--kgpg/popuppublic.cpp10
-rw-r--r--kgpg/popuppublic.h2
24 files changed, 77 insertions, 77 deletions
diff --git a/kgpg/detailedconsole.cpp b/kgpg/detailedconsole.cpp
index 308eec8..6874813 100644
--- a/kgpg/detailedconsole.cpp
+++ b/kgpg/detailedconsole.cpp
@@ -30,8 +30,8 @@
#include "detailedconsole.h"
-KDetailedConsole::KDetailedConsole(TQWidget *tqparent, const char *name,const TQString &boxLabel,const TQString &errormessage)
- : KDialogBase(tqparent,name,true,i18n("Sorry"),KDialogBase::Details|KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok)
+KDetailedConsole::KDetailedConsole(TQWidget *parent, const char *name,const TQString &boxLabel,const TQString &errormessage)
+ : KDialogBase(parent,name,true,i18n("Sorry"),KDialogBase::Details|KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok)
{
TQWidget *page = new TQWidget( this );
setMainWidget(page);
@@ -51,8 +51,8 @@ KDetailedConsole::KDetailedConsole(TQWidget *tqparent, const char *name,const TQ
KDetailedConsole::~KDetailedConsole()
{}
-KDetailedInfo::KDetailedInfo(TQWidget *tqparent, const char *name , const TQString &boxLabel,const TQString &errormessage,TQStringList keysList)
- : KDialogBase(Swallow, i18n("Info"),KDialogBase::Details|KDialogBase::Ok, KDialogBase::Ok,tqparent,name,true)
+KDetailedInfo::KDetailedInfo(TQWidget *parent, const char *name , const TQString &boxLabel,const TQString &errormessage,TQStringList keysList)
+ : KDialogBase(Swallow, i18n("Info"),KDialogBase::Details|KDialogBase::Ok, KDialogBase::Ok,parent,name,true)
{
bool checkboxResult;
KMessageBox::createKMessageBox(this, TQMessageBox::Information,
diff --git a/kgpg/detailedconsole.h b/kgpg/detailedconsole.h
index ef91446..2235093 100644
--- a/kgpg/detailedconsole.h
+++ b/kgpg/detailedconsole.h
@@ -24,7 +24,7 @@ class KDetailedConsole : public KDialogBase
{
public:
- KDetailedConsole(TQWidget *tqparent=0, const char *name=0,const TQString &boxLabel=TQString(),const TQString &errormessage=TQString());
+ KDetailedConsole(TQWidget *parent=0, const char *name=0,const TQString &boxLabel=TQString(),const TQString &errormessage=TQString());
~KDetailedConsole();
};
@@ -34,7 +34,7 @@ class KDetailedInfo : public KDialogBase
{
public:
- KDetailedInfo(TQWidget *tqparent=0, const char *name=0,const TQString &boxLabel=TQString(),const TQString &errormessage=TQString(),TQStringList keysList=TQStringList());
+ KDetailedInfo(TQWidget *parent=0, const char *name=0,const TQString &boxLabel=TQString(),const TQString &errormessage=TQString(),TQStringList keysList=TQStringList());
~KDetailedInfo();
};
diff --git a/kgpg/keygener.cpp b/kgpg/keygener.cpp
index 9de17f8..70bbff7 100644
--- a/kgpg/keygener.cpp
+++ b/kgpg/keygener.cpp
@@ -34,7 +34,7 @@
#include "keygener.h"
/////////////////////// main window
-keyGenerate::keyGenerate(TQWidget *tqparent, const char *name):KDialogBase( tqparent, name, true,i18n("Key Generation"),Apply | Ok | Cancel)
+keyGenerate::keyGenerate(TQWidget *parent, const char *name):KDialogBase( parent, name, true,i18n("Key Generation"),Apply | Ok | Cancel)
{
expert=false;
setButtonApply(i18n("Expert Mode"));
diff --git a/kgpg/keygener.h b/kgpg/keygener.h
index ba8c03c..d5f0120 100644
--- a/kgpg/keygener.h
+++ b/kgpg/keygener.h
@@ -27,7 +27,7 @@ class keyGenerate : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
- keyGenerate(TQWidget *tqparent=0, const char *name=0);
+ keyGenerate(TQWidget *parent=0, const char *name=0);
KComboBox *keykind,*keysize,*keyexp;
KLineEdit *numb,*comment,*kname,*mail;
diff --git a/kgpg/keyinfowidget.cpp b/kgpg/keyinfowidget.cpp
index 50584b7..93aa61f 100644
--- a/kgpg/keyinfowidget.cpp
+++ b/kgpg/keyinfowidget.cpp
@@ -43,7 +43,7 @@
#include "kgpgsettings.h"
#include "kgpginterface.h"
-KgpgKeyInfo::KgpgKeyInfo(TQWidget *tqparent, const char *name,TQString sigkey):KDialogBase( Swallow, i18n("Key Properties"), Close, Close, tqparent, name,true)
+KgpgKeyInfo::KgpgKeyInfo(TQWidget *parent, const char *name,TQString sigkey):KDialogBase( Swallow, i18n("Key Properties"), Close, Close, parent, name,true)
{
FILE *pass;
diff --git a/kgpg/keyinfowidget.h b/kgpg/keyinfowidget.h
index 8d9bc3f..faa3b16 100644
--- a/kgpg/keyinfowidget.h
+++ b/kgpg/keyinfowidget.h
@@ -37,7 +37,7 @@ class KgpgKeyInfo : public KDialogBase
public:
- KgpgKeyInfo( TQWidget *tqparent = 0, const char *name = 0,TQString sigkey=0);
+ KgpgKeyInfo( TQWidget *parent = 0, const char *name = 0,TQString sigkey=0);
~KgpgKeyInfo();
KeyProperties *prop;
diff --git a/kgpg/keyservers.cpp b/kgpg/keyservers.cpp
index 317eef3..5f77590 100644
--- a/kgpg/keyservers.cpp
+++ b/kgpg/keyservers.cpp
@@ -52,7 +52,7 @@
#include "detailedconsole.h"
#include "keyservers.h"
-keyServer::keyServer(TQWidget *tqparent, const char *name,bool modal,bool autoClose):KDialogBase( Swallow, i18n("Key Server"), Close, Close, tqparent, name,modal)
+keyServer::keyServer(TQWidget *parent, const char *name,bool modal,bool autoClose):KDialogBase( Swallow, i18n("Key Server"), Close, Close, parent, name,modal)
{
autoCloseWindow=autoClose;
config=new KSimpleConfig ("kgpgrc");
diff --git a/kgpg/keyservers.h b/kgpg/keyservers.h
index 9b28c11..9a5301f 100644
--- a/kgpg/keyservers.h
+++ b/kgpg/keyservers.h
@@ -33,7 +33,7 @@ class keyServer : public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
- keyServer(TQWidget *tqparent=0, const char *name=0,bool modal=false,bool autoClose=false);
+ keyServer(TQWidget *parent=0, const char *name=0,bool modal=false,bool autoClose=false);
~keyServer();
keyServerWidget *page;
diff --git a/kgpg/kgpg.cpp b/kgpg/kgpg.cpp
index 5f1d06a..4b58ed9 100644
--- a/kgpg/kgpg.cpp
+++ b/kgpg/kgpg.cpp
@@ -74,8 +74,8 @@
#include "kgpglibrary.h"
#include "kgpgwizard.h"
-MyView::MyView( TQWidget *tqparent, const char *name )
- : TQLabel( tqparent, name )
+MyView::MyView( TQWidget *parent, const char *name )
+ : TQLabel( parent, name )
{
setBackgroundMode( X11ParentRelative );
openTasks=0;
@@ -771,8 +771,8 @@ void MyView::help()
kapp->invokeHelp(0,"kgpg");
}
-kgpgapplet::kgpgapplet(TQWidget *tqparent, const char *name)
- : KSystemTray(tqparent,name)
+kgpgapplet::kgpgapplet(TQWidget *parent, const char *name)
+ : KSystemTray(parent,name)
{
w=new MyView(this);
w->show();
@@ -782,7 +782,7 @@ kgpgapplet::kgpgapplet(TQWidget *tqparent, const char *name)
KgpgSignClipboard = new KAction(i18n("&Sign/Verify Clipboard"), "signature", 0,TQT_TQOBJECT(w), TQT_SLOT(clipSign()),actionCollection(),"clip_sign");
KAction *KgpgOpenEditor;
if (KGpgSettings::leftClick()==KGpgSettings::EnumLeftClick::KeyManager)
- KgpgOpenEditor = new KAction(i18n("&Open Editor"), "edit", 0,TQT_TQOBJECT(tqparent), TQT_SLOT(slotOpenEditor()),actionCollection(),"kgpg_editor");
+ KgpgOpenEditor = new KAction(i18n("&Open Editor"), "edit", 0,TQT_TQOBJECT(parent), TQT_SLOT(slotOpenEditor()),actionCollection(),"kgpg_editor");
else
KgpgOpenEditor = new KAction(i18n("&Open Key Manager"), "kgpg", 0,TQT_TQOBJECT(this), TQT_SLOT(slotOpenKeyManager()),actionCollection(),"kgpg_editor");
diff --git a/kgpg/kgpg.h b/kgpg/kgpg.h
index f3648f6..5fa6089 100644
--- a/kgpg/kgpg.h
+++ b/kgpg/kgpg.h
@@ -47,7 +47,7 @@ class MyView : public TQLabel
TQ_OBJECT
public:
- MyView( TQWidget *tqparent = 0, const char *name = 0);
+ MyView( TQWidget *parent = 0, const char *name = 0);
~MyView();
KURL droppedUrl;
@@ -125,7 +125,7 @@ class kgpgapplet : public KSystemTray//KUniqueApplication
TQ_OBJECT
public:
- kgpgapplet( TQWidget *tqparent = 0, const char *name = 0);
+ kgpgapplet( TQWidget *parent = 0, const char *name = 0);
/** destructor */
~kgpgapplet();
MyView *w;
diff --git a/kgpg/kgpgeditor.cpp b/kgpg/kgpgeditor.cpp
index bb6c76a..c36be3d 100644
--- a/kgpg/kgpgeditor.cpp
+++ b/kgpg/kgpgeditor.cpp
@@ -53,7 +53,7 @@
#include "listkeys.h"
#include "kgpglibrary.h"
-KgpgApp::KgpgApp(TQWidget *tqparent, const char *name, WFlags f,KShortcut goHome,bool mainWindow):KMainWindow(tqparent, name,f)
+KgpgApp::KgpgApp(TQWidget *parent, const char *name, WFlags f,KShortcut goHome,bool mainWindow):KMainWindow(parent, name,f)
{
isMainWindow=mainWindow;
textEncoding=TQString();
diff --git a/kgpg/kgpgeditor.h b/kgpg/kgpgeditor.h
index c037a91..63ec59c 100644
--- a/kgpg/kgpgeditor.h
+++ b/kgpg/kgpgeditor.h
@@ -43,7 +43,7 @@ class KgpgApp : public KMainWindow
public:
/** construtor of KgpgApp, calls all init functions to create the application.
*/
- KgpgApp(TQWidget *tqparent=0, const char *name=0,WFlags f = 0,KShortcut goHome=TQKeySequence(CTRL+TQt::Key_Home),bool mainWindow=false);
+ KgpgApp(TQWidget *parent=0, const char *name=0,WFlags f = 0,KShortcut goHome=TQKeySequence(CTRL+TQt::Key_Home),bool mainWindow=false);
~KgpgApp();
/** opens a file specified by commandline option
*/
diff --git a/kgpg/kgpginterface.cpp b/kgpg/kgpginterface.cpp
index ee28b3c..b45240d 100644
--- a/kgpg/kgpginterface.cpp
+++ b/kgpg/kgpginterface.cpp
@@ -611,7 +611,7 @@ TQString required;
/////////////////////////////////////////////////////////////////////////////////////////////////// MD5
-Md5Widget::Md5Widget(TQWidget *tqparent, const char *name,KURL url):KDialogBase( tqparent, name, true,i18n("MD5 Checksum"),Apply | Close)
+Md5Widget::Md5Widget(TQWidget *parent, const char *name,KURL url):KDialogBase( parent, name, true,i18n("MD5 Checksum"),Apply | Close)
{
setButtonApply(i18n("Compare MD5 with Clipboard"));
mdSum=TQString();
diff --git a/kgpg/kgpginterface.h b/kgpg/kgpginterface.h
index 92f41fd..718c0bf 100644
--- a/kgpg/kgpginterface.h
+++ b/kgpg/kgpginterface.h
@@ -392,7 +392,7 @@ class Md5Widget :public KDialogBase
Q_OBJECT
TQ_OBJECT
public:
- Md5Widget(TQWidget *tqparent=0, const char *name=0,KURL url=KURL());
+ Md5Widget(TQWidget *parent=0, const char *name=0,KURL url=KURL());
~Md5Widget();
public slots:
void slotApply();
diff --git a/kgpg/kgpglibrary.cpp b/kgpg/kgpglibrary.cpp
index cfa80da..2d7f0ad 100644
--- a/kgpg/kgpglibrary.cpp
+++ b/kgpg/kgpglibrary.cpp
@@ -31,14 +31,14 @@
#include "kgpginterface.h"
#include <kio/renamedlg.h>
-KgpgLibrary::KgpgLibrary(TQWidget *tqparent, bool pgpExtension)
+KgpgLibrary::KgpgLibrary(TQWidget *parent, bool pgpExtension)
{
if (pgpExtension)
extension=".pgp";
else
extension=".gpg";
popIsActive=false;
- panel=tqparent;
+ panel=parent;
}
KgpgLibrary::~KgpgLibrary()
@@ -152,7 +152,7 @@ void KgpgLibrary::slotShredResult( KIO::Job * job )
emit systemMessage(TQString());
if (job && job->error())
{
- job->showErrorDialog( (TQWidget*)tqparent() );
+ job->showErrorDialog( (TQWidget*)parent() );
emit systemMessage(TQString(),true);
KPassivePopup::message(i18n("KGpg Error"),i18n("Process halted, not all files were shredded."),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop),panel,"kgpg_error",0);
}
diff --git a/kgpg/kgpglibrary.h b/kgpg/kgpglibrary.h
index 2e626d5..e388b13 100644
--- a/kgpg/kgpglibrary.h
+++ b/kgpg/kgpglibrary.h
@@ -37,7 +37,7 @@ public:
/**
* Initialize the class
*/
- KgpgLibrary(TQWidget *tqparent=0,bool pgpExtension=false);
+ KgpgLibrary(TQWidget *parent=0,bool pgpExtension=false);
~KgpgLibrary();
KURL::List urlselecteds;
diff --git a/kgpg/kgpgoptions.cpp b/kgpg/kgpgoptions.cpp
index a4ffa36..92eecf6 100644
--- a/kgpg/kgpgoptions.cpp
+++ b/kgpg/kgpgoptions.cpp
@@ -62,8 +62,8 @@ class TQTabWidget;
/////////////////////// main window
-kgpgOptions::kgpgOptions(TQWidget *tqparent, const char *name)
- : KConfigDialog( tqparent, name, KGpgSettings::self())
+kgpgOptions::kgpgOptions(TQWidget *parent, const char *name)
+ : KConfigDialog( parent, name, KGpgSettings::self())
{
defaultServerList="hkp://wwwkeys.eu.pgp.net ";
defaultServerList+=i18n("(Default)");
diff --git a/kgpg/kgpgoptions.h b/kgpg/kgpgoptions.h
index 1f90559..5493735 100644
--- a/kgpg/kgpgoptions.h
+++ b/kgpg/kgpgoptions.h
@@ -41,7 +41,7 @@ class kgpgOptions : public KConfigDialog
Q_OBJECT
TQ_OBJECT
public:
- kgpgOptions(TQWidget *tqparent=0, const char *name=0);
+ kgpgOptions(TQWidget *parent=0, const char *name=0);
~kgpgOptions();
TQStringList names,ids;
Encryption *page1;
diff --git a/kgpg/kgpgview.cpp b/kgpg/kgpgview.cpp
index d94345f..f85563c 100644
--- a/kgpg/kgpgview.cpp
+++ b/kgpg/kgpgview.cpp
@@ -53,8 +53,8 @@
//////////////// configuration for editor
-MyEditor::MyEditor( TQWidget *tqparent, const char *name )
- : KTextEdit( tqparent, name )
+MyEditor::MyEditor( TQWidget *parent, const char *name )
+ : KTextEdit( parent, name )
{
setTextFormat(PlainText);
setCheckSpellingEnabled (true);
@@ -190,7 +190,7 @@ void MyEditor::slotProcessResult(TQStringList iKeys)
////////////////////////// main view configuration
-KgpgView::KgpgView(TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
+KgpgView::KgpgView(TQWidget *parent, const char *name) : TQWidget(parent, name)
{
editor=new MyEditor(this);
windowAutoClose=true;
@@ -224,7 +224,7 @@ KgpgView::KgpgView(TQWidget *tqparent, const char *name) : TQWidget(tqparent, na
void KgpgView::modified()
{
/////////////// notify for changes in editor window
- KgpgApp *win=(KgpgApp *) tqparent();
+ KgpgApp *win=(KgpgApp *) parent();
if (win->fileSave->isEnabled()==false) {
TQString capt=win->Docname.fileName();
if (capt.isEmpty())
@@ -298,7 +298,7 @@ else
editor->setText(signResult);
emit resetEncoding(false);
- KgpgApp *win=(KgpgApp *) tqparent();
+ KgpgApp *win=(KgpgApp *) parent();
win->editRedo->setEnabled(false);
win->editUndo->setEnabled(false);
}
@@ -311,7 +311,7 @@ void KgpgView::popuppublic()
///// popup dialog to select public key for encryption
//////// open dialog --> popuppublic.cpp
- popupPublic *dialogue=new popupPublic(this, "public_keys", 0,false,((KgpgApp *) tqparent())->goDefaultKey);
+ popupPublic *dialogue=new popupPublic(this, "public_keys", 0,false,((KgpgApp *) parent())->goDefaultKey);
connect(dialogue,TQT_SIGNAL(selectedKey(TQStringList,TQStringList,bool,bool)),TQT_TQOBJECT(this),TQT_SLOT(encodetxt(TQStringList,TQStringList,bool,bool)));
dialogue->exec();
delete dialogue;
@@ -334,7 +334,7 @@ void KgpgView::slotdecode()
txtDecrypt->KgpgDecryptText(editor->text(),TQStringList::split(TQString(" "),KGpgSettings::customDecrypt().simplifyWhiteSpace()));
/*
- KgpgApp *win=(KgpgApp *) tqparent();
+ KgpgApp *win=(KgpgApp *) parent();
if (!resultat.isEmpty()) {
editor->setText(resultat);
win->editRedo->setEnabled(false);
diff --git a/kgpg/kgpgview.h b/kgpg/kgpgview.h
index 9a61988..ac1e639 100644
--- a/kgpg/kgpgview.h
+++ b/kgpg/kgpgview.h
@@ -44,7 +44,7 @@ class MyEditor : public KTextEdit
TQ_OBJECT
public:
- MyEditor( TQWidget *tqparent = 0, const char *name = 0);
+ MyEditor( TQWidget *parent = 0, const char *name = 0);
private:
TQString message,messages,tempFile;
public slots:
@@ -73,11 +73,11 @@ class KgpgView : public TQWidget
friend class MyEditor;
public:
/** Constructor for the main view */
- KgpgView(TQWidget *tqparent = 0, const char *name=0);
+ KgpgView(TQWidget *parent = 0, const char *name=0);
/** Destructor for the main view */
~KgpgView();
- /** returns a pointer to the document connected to the view instance. Mind that this method requires a KgpgApp instance as a tqparent
+ /** returns a pointer to the document connected to the view instance. Mind that this method requires a KgpgApp instance as a parent
* widget to get to the window document pointer by calling the KgpgApp::getDocument() method.
*
* @see KgpgApp#getDocument
diff --git a/kgpg/listkeys.cpp b/kgpg/listkeys.cpp
index 1d25ccf..75895cb 100644
--- a/kgpg/listkeys.cpp
+++ b/kgpg/listkeys.cpp
@@ -102,16 +102,16 @@
class UpdateViewItem : public KListViewItem
{
public:
- UpdateViewItem(TQListView *tqparent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id,bool isdefault,bool isexpired);
- UpdateViewItem(TQListViewItem *tqparent=0, TQString name=TQString(),TQString email=TQString(), TQString tr=TQString(), TQString val=TQString(), TQString size=TQString(), TQString creat=TQString(), TQString id=TQString());
+ UpdateViewItem(TQListView *parent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id,bool isdefault,bool isexpired);
+ UpdateViewItem(TQListViewItem *parent=0, TQString name=TQString(),TQString email=TQString(), TQString tr=TQString(), TQString val=TQString(), TQString size=TQString(), TQString creat=TQString(), TQString id=TQString());
virtual void paintCell(TQPainter *p, const TQColorGroup &cg,int col, int width, int align);
virtual int compare( TQListViewItem * item, int c, bool ascending ) const;
virtual TQString key( int column, bool ) const;
bool def,exp;
};
-UpdateViewItem::UpdateViewItem(TQListView *tqparent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id,bool isdefault,bool isexpired)
- : KListViewItem(tqparent)
+UpdateViewItem::UpdateViewItem(TQListView *parent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id,bool isdefault,bool isexpired)
+ : KListViewItem(parent)
{
def=isdefault;
exp=isexpired;
@@ -124,8 +124,8 @@ UpdateViewItem::UpdateViewItem(TQListView *tqparent, TQString name,TQString emai
setText(6,id);
}
-UpdateViewItem::UpdateViewItem(TQListViewItem *tqparent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id)
- : KListViewItem(tqparent)
+UpdateViewItem::UpdateViewItem(TQListViewItem *parent, TQString name,TQString email, TQString tr, TQString val, TQString size, TQString creat, TQString id)
+ : KListViewItem(parent)
{
setText(0,name);
setText(1,email);
@@ -213,8 +213,8 @@ TQString UpdateViewItem::key( int column, bool ) const
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////// Secret key selection dialog, used when user wants to sign a key
-KgpgSelKey::KgpgSelKey(TQWidget *tqparent, const char *name,bool allowMultipleSelection, TQString preselected):
-KDialogBase( tqparent, name, true,i18n("Private Key List"),Ok | Cancel)
+KgpgSelKey::KgpgSelKey(TQWidget *parent, const char *name,bool allowMultipleSelection, TQString preselected):
+KDialogBase( parent, name, true,i18n("Private Key List"),Ok | Cancel)
{
TQString keyname;
page = new TQWidget(this);
@@ -352,8 +352,8 @@ void KgpgSelKey::slotSelect(TQListViewItem *item)
if (item==NULL)
return;
if (item->depth()!=0) {
- keysListpr->setSelected(item->tqparent(),true);
- keysListpr->setCurrentItem(item->tqparent());
+ keysListpr->setSelected(item->parent(),true);
+ keysListpr->setCurrentItem(item->parent());
}
}
@@ -392,8 +392,8 @@ TQString KgpgSelKey::getkeyMail()
/////////////////////////////////////////////////////////////////////////////////////////////
-KeyView::KeyView( TQWidget *tqparent, const char *name )
- : KListView( tqparent, name )
+KeyView::KeyView( TQWidget *parent, const char *name )
+ : KListView( parent, name )
{
KIconLoader *loader = KGlobal::iconLoader();
@@ -476,8 +476,8 @@ void KeyView::startDrag()
}
-mySearchLine::mySearchLine(TQWidget *tqparent, KeyView *listView, const char *name)
-:KListViewSearchLine(tqparent,listView,name)
+mySearchLine::mySearchLine(TQWidget *parent, KeyView *listView, const char *name)
+:KListViewSearchLine(parent,listView,name)
{
searchListView=listView;
setKeepParentsVisible(false);
@@ -519,7 +519,7 @@ void mySearchLine::updateSearch(const TQString& s)
/////////////////////////////////////////////////////////////////////////////////////// main window for key management
-listKeys::listKeys(TQWidget *tqparent, const char *name) : DCOPObject( "KeyInterface" ), KMainWindow(tqparent, name,0)
+listKeys::listKeys(TQWidget *parent, const char *name) : DCOPObject( "KeyInterface" ), KMainWindow(parent, name,0)
{
//KWin::setType(TQt::WDestructiveClose);
@@ -721,7 +721,7 @@ listKeys::listKeys(TQWidget *tqparent, const char *name) : DCOPObject( "KeyInter
TQObject::connect(keysList2,TQT_SIGNAL(statusMessage(TQString,int,bool)),TQT_TQOBJECT(this),TQT_SLOT(changeMessage(TQString,int,bool)));
TQObject::connect(statusbarTimer,TQT_SIGNAL(timeout()),TQT_TQOBJECT(this),TQT_SLOT(statusBarTimeout()));
- s_kgpgEditor= new KgpgApp(tqparent, "editor",WType_Dialog,actionCollection()->action("go_default_key")->shortcut(),true);
+ s_kgpgEditor= new KgpgApp(parent, "editor",WType_Dialog,actionCollection()->action("go_default_key")->shortcut(),true);
connect(s_kgpgEditor,TQT_SIGNAL(refreshImported(TQStringList)),keysList2,TQT_SLOT(slotReloadKeys(TQStringList)));
connect(this,TQT_SIGNAL(fontChanged(TQFont)),s_kgpgEditor,TQT_SLOT(slotSetFont(TQFont)));
connect(s_kgpgEditor->view->editor,TQT_SIGNAL(refreshImported(TQStringList)),keysList2,TQT_SLOT(slotReloadKeys(TQStringList)));
@@ -887,7 +887,7 @@ void listKeys::slotDelUid()
{
TQListViewItem *item=keysList2->currentItem();
while (item->depth()>0)
- item=item->tqparent();
+ item=item->parent();
KProcess *conprocess=new KProcess();
KConfig *config = KGlobal::config();
@@ -966,11 +966,11 @@ void listKeys::slotGpgError(TQString errortxt)
void listKeys::slotDeletePhoto()
{
- if (KMessageBox::warningContinueCancel(this,i18n("<qt>Are you sure you want to delete Photo id <b>%1</b><br>from key <b>%2 &lt;%3&gt;</b> ?</qt>").tqarg(keysList2->currentItem()->text(6)).tqarg(keysList2->currentItem()->tqparent()->text(0)).tqarg(keysList2->currentItem()->tqparent()->text(1)),i18n("Warning"),KGuiItem(i18n("Delete"),"editdelete"))!=KMessageBox::Continue)
+ if (KMessageBox::warningContinueCancel(this,i18n("<qt>Are you sure you want to delete Photo id <b>%1</b><br>from key <b>%2 &lt;%3&gt;</b> ?</qt>").tqarg(keysList2->currentItem()->text(6)).tqarg(keysList2->currentItem()->parent()->text(0)).tqarg(keysList2->currentItem()->parent()->text(1)),i18n("Warning"),KGuiItem(i18n("Delete"),"editdelete"))!=KMessageBox::Continue)
return;
KgpgInterface *delPhotoProcess=new KgpgInterface();
- delPhotoProcess->KgpgDeletePhoto(keysList2->currentItem()->tqparent()->text(6),keysList2->currentItem()->text(6));
+ delPhotoProcess->KgpgDeletePhoto(keysList2->currentItem()->parent()->text(6),keysList2->currentItem()->text(6));
connect(delPhotoProcess,TQT_SIGNAL(delPhotoFinished()),TQT_TQOBJECT(this),TQT_SLOT(slotUpdatePhoto()));
connect(delPhotoProcess,TQT_SIGNAL(delPhotoError(TQString)),TQT_TQOBJECT(this),TQT_SLOT(slotGpgError(TQString)));
}
@@ -1085,7 +1085,7 @@ void listKeys::findNextKey()
if (!item)
return;
while(item->depth() > 0)
- item = item->tqparent();
+ item = item->parent();
item=item->nextSibling();
TQString searchText=item->text(0)+" "+item->text(1)+" "+item->text(6);
//kdDebug(2100)<<"Next string:"<<searchText<<endl;
@@ -1610,7 +1610,7 @@ void listKeys::slotShowPhoto()
KService::Ptr ptr = offers.first();
//KMessageBox::sorry(0,ptr->desktopEntryName());
KProcIO *p=new KProcIO(TQTextCodec::codecForLocale());
- *p<<"gpg"<<"--no-tty"<<"--photo-viewer"<<TQString(TQFile::encodeName(ptr->desktopEntryName()+" %i"))<<"--edit-key"<<keysList2->currentItem()->tqparent()->text(6)<<"uid"<<keysList2->currentItem()->text(6)<<"showphoto"<<"quit";
+ *p<<"gpg"<<"--no-tty"<<"--photo-viewer"<<TQString(TQFile::encodeName(ptr->desktopEntryName()+" %i"))<<"--edit-key"<<keysList2->currentItem()->parent()->text(6)<<"uid"<<keysList2->currentItem()->text(6)<<"showphoto"<<"quit";
p->start(KProcess::DontCare,true);
}
@@ -2055,9 +2055,9 @@ void listKeys::delsignkey()
TQString signID,parentKey,signMail,parentMail;
////////////////// open a key selection dialog (KgpgSelKey, see begining of this file)
- parentKey=keysList2->currentItem()->tqparent()->text(6);
+ parentKey=keysList2->currentItem()->parent()->text(6);
signID=keysList2->currentItem()->text(6);
- parentMail=keysList2->currentItem()->tqparent()->text(0)+" ("+keysList2->currentItem()->tqparent()->text(1)+")";
+ parentMail=keysList2->currentItem()->parent()->text(0)+" ("+keysList2->currentItem()->parent()->text(1)+")";
signMail=keysList2->currentItem()->text(0)+" ("+keysList2->currentItem()->text(1)+")";
if (parentKey==signID) {
@@ -2078,7 +2078,7 @@ void listKeys::delsignatureResult(bool success)
if (success) {
TQListViewItem *top=keysList2->currentItem();
while (top->depth()!=0)
- top=top->tqparent();
+ top=top->parent();
while (top->firstChild()!=0)
delete top->firstChild();
keysList2->refreshcurrentkey(top);
@@ -2143,7 +2143,7 @@ void listKeys::slotgenkey()
goodpass=true;
}
- pop = new KPassivePopup((TQWidget *)tqparent(),"new_key");
+ pop = new KPassivePopup((TQWidget *)parent(),"new_key");
pop->setTimeout(0);
TQWidget *wid=new TQWidget(pop);
@@ -2672,7 +2672,7 @@ void KeyView::refreshkeylist()
TQListViewItem *current = currentItem();
if(current != NULL) {
while(current->depth() > 0) {
- current = current->tqparent();
+ current = current->parent();
}
takeItem(current);
}
@@ -2865,7 +2865,7 @@ void KeyView::refreshselfkey()
if (currentItem()->depth()==0)
refreshcurrentkey(currentItem());
else
- refreshcurrentkey(currentItem()->tqparent());
+ refreshcurrentkey(currentItem()->parent());
}
void KeyView::slotReloadKeys(TQStringList keyIDs)
diff --git a/kgpg/listkeys.h b/kgpg/listkeys.h
index 69e64e4..abb2689 100644
--- a/kgpg/listkeys.h
+++ b/kgpg/listkeys.h
@@ -71,7 +71,7 @@ class KgpgSelKey : public KDialogBase
TQ_OBJECT
public:
- KgpgSelKey( TQWidget *tqparent = 0, const char *name = 0,bool allowMultipleSelection=false, TQString preselected=TQString());
+ KgpgSelKey( TQWidget *parent = 0, const char *name = 0,bool allowMultipleSelection=false, TQString preselected=TQString());
KListView *keysListpr;
TQPixmap keyPair;
TQCheckBox *local;
@@ -95,7 +95,7 @@ class KeyView : public KListView
TQ_OBJECT
friend class listKeys;
public:
- KeyView( TQWidget *tqparent = 0, const char *name = 0);
+ KeyView( TQWidget *parent = 0, const char *name = 0);
bool displayPhoto,displayOnlySecret,displayDisabled;
int previewSize;
TQString secretList;
@@ -146,7 +146,7 @@ class mySearchLine: public KListViewSearchLine
Q_OBJECT
TQ_OBJECT
public:
- mySearchLine(TQWidget *tqparent = 0, KeyView *listView = 0, const char *name = 0);
+ mySearchLine(TQWidget *parent = 0, KeyView *listView = 0, const char *name = 0);
virtual ~mySearchLine();
private:
KeyView *searchListView;
@@ -165,7 +165,7 @@ class listKeys : public KMainWindow, virtual public KeyInterface
TQ_OBJECT
public:
- listKeys(TQWidget *tqparent=0, const char *name=0);
+ listKeys(TQWidget *parent=0, const char *name=0);
~listKeys();
TQLabel *keyPhoto;
KeyView *keysList2;
diff --git a/kgpg/popuppublic.cpp b/kgpg/popuppublic.cpp
index 20b651a..89a25ae 100644
--- a/kgpg/popuppublic.cpp
+++ b/kgpg/popuppublic.cpp
@@ -54,14 +54,14 @@
class UpdateViewItem2 : public KListViewItem
{
public:
- UpdateViewItem2(TQListView *tqparent, TQString name,TQString mail,TQString id,bool isDefault);
+ UpdateViewItem2(TQListView *parent, TQString name,TQString mail,TQString id,bool isDefault);
virtual void paintCell(TQPainter *p, const TQColorGroup &cg,int col, int width, int align);
virtual TQString key(int c,bool ) const;
bool def;
};
-UpdateViewItem2::UpdateViewItem2(TQListView *tqparent, TQString name,TQString mail,TQString id,bool isDefault)
- : KListViewItem(tqparent)
+UpdateViewItem2::UpdateViewItem2(TQListView *parent, TQString name,TQString mail,TQString id,bool isDefault)
+ : KListViewItem(parent)
{
def=isDefault;
setText(0,name);
@@ -87,8 +87,8 @@ TQString UpdateViewItem2 :: key(int c,bool ) const
/////////////// main view
-popupPublic::popupPublic(TQWidget *tqparent, const char *name,TQString sfile,bool filemode,KShortcut goDefaultKey):
-KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, tqparent, name,true)
+popupPublic::popupPublic(TQWidget *parent, const char *name,TQString sfile,bool filemode,KShortcut goDefaultKey):
+KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent, name,true)
{
TQWidget *page = plainPage();
diff --git a/kgpg/popuppublic.h b/kgpg/popuppublic.h
index 842d8a9..06d7b01 100644
--- a/kgpg/popuppublic.h
+++ b/kgpg/popuppublic.h
@@ -35,7 +35,7 @@ class popupPublic : public KDialogBase //TQDialog
TQ_OBJECT
public:
- popupPublic(TQWidget *tqparent=0, const char *name=0,TQString sfile="",bool filemode=false,KShortcut goDefaultKey=TQKeySequence(CTRL+TQt::Key_Home));
+ popupPublic(TQWidget *parent=0, const char *name=0,TQString sfile="",bool filemode=false,KShortcut goDefaultKey=TQKeySequence(CTRL+TQt::Key_Home));
~popupPublic();
KListView *keysList;
TQCheckBox *CBarmor,*CBuntrusted,*CBshred,*CBsymmetric,*CBhideid;