summaryrefslogtreecommitdiffstats
path: root/kgpg
diff options
context:
space:
mode:
Diffstat (limited to 'kgpg')
-rw-r--r--kgpg/conf_misc.ui4
-rw-r--r--kgpg/keyproperties.ui2
-rw-r--r--kgpg/keyservers.cpp4
-rw-r--r--kgpg/kgpg.cpp8
-rw-r--r--kgpg/kgpgeditor.cpp4
-rw-r--r--kgpg/kgpginterface.cpp52
-rw-r--r--kgpg/kgpglibrary.cpp12
-rw-r--r--kgpg/kgpgrevokewidget.ui2
-rw-r--r--kgpg/kgpgview.cpp4
-rw-r--r--kgpg/kgpgwizard.ui20
-rw-r--r--kgpg/listkeys.cpp76
-rw-r--r--kgpg/popuppublic.cpp10
12 files changed, 99 insertions, 99 deletions
diff --git a/kgpg/conf_misc.ui b/kgpg/conf_misc.ui
index 9572402..3455386 100644
--- a/kgpg/conf_misc.ui
+++ b/kgpg/conf_misc.ui
@@ -132,7 +132,7 @@ It will shred (overwrite several times before erasing) the
files you drop on it, making it almost impossible to recover
the original file.</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignJustify|AlignTop</set>
</property>
</widget>
@@ -143,7 +143,7 @@ the original file.</string>
<property name="text">
<string>textLabel5</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
diff --git a/kgpg/keyproperties.ui b/kgpg/keyproperties.ui
index adfe8c1..b64e9a8 100644
--- a/kgpg/keyproperties.ui
+++ b/kgpg/keyproperties.ui
@@ -81,7 +81,7 @@
<property name="scaledContents">
<bool>false</bool>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignCenter</set>
</property>
<property name="whatsThis" stdset="0">
diff --git a/kgpg/keyservers.cpp b/kgpg/keyservers.cpp
index 3f75b79..00c655a 100644
--- a/kgpg/keyservers.cpp
+++ b/kgpg/keyservers.cpp
@@ -261,8 +261,8 @@ void keyServer::slotsearchresult(KProcess *)
dialogServer->enableButtonOK(true);
TQApplication::restoreOverrideCursor();
nb=nb.setNum(keyNumbers);
- //listpop->kLVsearch->setColumnText(0,i18n("Found %1 matching keys").tqarg(nb));
- listpop->statusText->setText(i18n("Found %1 matching keys").tqarg(nb));
+ //listpop->kLVsearch->setColumnText(0,i18n("Found %1 matching keys").arg(nb));
+ listpop->statusText->setText(i18n("Found %1 matching keys").arg(nb));
if (listpop->kLVsearch->firstChild()!=NULL) {
listpop->kLVsearch->setSelected(listpop->kLVsearch->firstChild(),true);
diff --git a/kgpg/kgpg.cpp b/kgpg/kgpg.cpp
index 4b58ed9..45895c0 100644
--- a/kgpg/kgpg.cpp
+++ b/kgpg/kgpg.cpp
@@ -147,7 +147,7 @@ void MyView::encryptDroppedFolder()
compressionScheme=0;
kgpgfoldertmp=new KTempFile(TQString());
kgpgfoldertmp->setAutoDelete(true);
- if (KMessageBox::warningContinueCancel(0,i18n("<qt>KGpg will now create a temporary archive file:<br><b>%1</b> to process the encryption. The file will be deleted after the encryption is finished.</qt>").tqarg(kgpgfoldertmp->name()),i18n("Temporary File Creation"),KStdGuiItem::cont(),"FolderTmpFile")==KMessageBox::Cancel)
+ if (KMessageBox::warningContinueCancel(0,i18n("<qt>KGpg will now create a temporary archive file:<br><b>%1</b> to process the encryption. The file will be deleted after the encryption is finished.</qt>").arg(kgpgfoldertmp->name()),i18n("Temporary File Creation"),KStdGuiItem::cont(),"FolderTmpFile")==KMessageBox::Cancel)
return;
dialogue=new popupPublic(0,"Public keys",droppedUrls.first().fileName(),true,goDefaultKey);
@@ -305,7 +305,7 @@ shredConfirm->setMainWidget(page);
TQBoxLayout *tqlayout=new TQBoxLayout(page,TQBoxLayout::TopToBottom,0);
tqlayout->setAutoAdd(true);
-(void) new KActiveLabel( i18n("Do you really want to <a href=\"whatsthis:%1\">shred</a> these files?").tqarg(i18n( "<qt><p>You must be aware that <b>shredding is not secure</b> on all file systems, and that parts of the file may have been saved in a temporary file or in the spooler of your printer if you previously opened it in an editor or tried to print it. Only works on files (not on folders).</p></qt>")),page);
+(void) new KActiveLabel( i18n("Do you really want to <a href=\"whatsthis:%1\">shred</a> these files?").arg(i18n( "<qt><p>You must be aware that <b>shredding is not secure</b> on all file systems, and that parts of the file may have been saved in a temporary file or in the spooler of your printer if you previously opened it in an editor or tried to print it. Only works on files (not on folders).</p></qt>")),page);
KListBox *lb=new KListBox(page);
lb->insertStringList(droppedUrls.toStringList());
if (shredConfirm->exec()==TQDialog::Accepted)
@@ -400,7 +400,7 @@ void MyView::decryptDroppedFile()
kgpgFolderExtract=new KTempFile(TQString(),".tar.gz");
kgpgFolderExtract->setAutoDelete(true);
swapname=KURL(kgpgFolderExtract->name());
- if (KMessageBox::warningContinueCancel(0,i18n("<qt>The file to decrypt is an archive. KGpg will create a temporary unencrypted archive file:<br><b>%1</b> before processing the archive extraction. This temporary file will be deleted after the decryption is finished.</qt>").tqarg(kgpgFolderExtract->name()),i18n("Temporary File Creation"),KStdGuiItem::cont(),"FolderTmpDecFile")==KMessageBox::Cancel)
+ if (KMessageBox::warningContinueCancel(0,i18n("<qt>The file to decrypt is an archive. KGpg will create a temporary unencrypted archive file:<br><b>%1</b> before processing the archive extraction. This temporary file will be deleted after the decryption is finished.</qt>").arg(kgpgFolderExtract->name()),i18n("Temporary File Creation"),KStdGuiItem::cont(),"FolderTmpDecFile")==KMessageBox::Cancel)
return;
} else*/ {
swapname=KURL(droppedUrls.first().directory(0,0)+oldname);
@@ -926,7 +926,7 @@ int KgpgAppletApp::newInstance()
if ((KgpgInterface::getGpgBoolSetting("use-agent",gpgPath)) && (!getenv("GPG_AGENT_INFO")))
KMessageBox::sorry(0,i18n("<qt>The use of <b>GnuPG Agent</b> is enabled in GnuPG's configuration file (%1).<br>"
"However, the agent does not seem to be running. This could result in problems with signing/decryption.<br>"
- "Please disable GnuPG Agent from KGpg settings, or fix the agent.</qt>").tqarg(gpgPath));
+ "Please disable GnuPG Agent from KGpg settings, or fix the agent.</qt>").arg(gpgPath));
}
}
diff --git a/kgpg/kgpgeditor.cpp b/kgpg/kgpgeditor.cpp
index 0722f3b..5de453a 100644
--- a/kgpg/kgpgeditor.cpp
+++ b/kgpg/kgpgeditor.cpp
@@ -376,7 +376,7 @@ void KgpgApp::slotFileSaveAs()
TQString filn=url.path();
TQFile f(filn);
if (f.exists()) {
- TQString message=i18n("Overwrite existing file %1?").tqarg(url.fileName());
+ TQString message=i18n("Overwrite existing file %1?").arg(url.fileName());
int result=KMessageBox::warningContinueCancel(this,TQString(message),i18n("Warning"),i18n("Overwrite"));
if (result==KMessageBox::Cancel)
return;
@@ -385,7 +385,7 @@ void KgpgApp::slotFileSaveAs()
}
else if (KIO::NetAccess::exists(url,false,this))
{
- TQString message=i18n("Overwrite existing file %1?").tqarg(url.fileName());
+ TQString message=i18n("Overwrite existing file %1?").arg(url.fileName());
int result=KMessageBox::warningContinueCancel(this,TQString(message),i18n("Warning"),i18n("Overwrite"));
if (result==KMessageBox::Cancel)
return;
diff --git a/kgpg/kgpginterface.cpp b/kgpg/kgpginterface.cpp
index dc4f0e9..aa65050 100644
--- a/kgpg/kgpginterface.cpp
+++ b/kgpg/kgpginterface.cpp
@@ -219,9 +219,9 @@ void KgpgInterface::readdecprocess(KProcIO *p)
if (anonymous)
passdlgmessage=i18n("<b>No user id found</b>. Trying all secret keys.<br>");
if ((step<3) && (!anonymous))
- passdlgmessage=i18n("<b>Bad passphrase</b>. You have %1 tries left.<br>").tqarg(step);
+ passdlgmessage=i18n("<b>Bad passphrase</b>. You have %1 tries left.<br>").arg(step);
- passdlgmessage+=i18n("Enter passphrase for <b>%1</b>").tqarg(userIDs);
+ passdlgmessage+=i18n("Enter passphrase for <b>%1</b>").arg(userIDs);
int code=KPasswordDialog::getPassword(passphrase,passdlgmessage);
if (code!=TQDialog::Accepted) {
p->deleteLater();
@@ -395,8 +395,8 @@ void KgpgInterface::getCmdOutput(KProcess *p, char *data, int )
if (anonymous)
passdlgmessage=i18n("<b>No user id found</b>. Trying all secret keys.<br>");
if ((step<3) && (!anonymous))
- passdlgmessage=i18n("<b>Bad passphrase</b>. You have %1 tries left.<br>").tqarg(step);
- passdlgmessage+=i18n("Enter passphrase for <b>%1</b>").tqarg(userIDs);
+ passdlgmessage=i18n("<b>Bad passphrase</b>. You have %1 tries left.<br>").arg(step);
+ passdlgmessage+=i18n("Enter passphrase for <b>%1</b>").arg(userIDs);
int code=KPasswordDialog::getPassword(passphrase,passdlgmessage);
if (code!=TQDialog::Accepted)
{
@@ -501,8 +501,8 @@ void KgpgInterface::txtsignprocess(KProcIO *p)
TQCString passphrase;
TQString passdlgmessage;
if (step<3)
- passdlgmessage=i18n("<b>Bad passphrase</b>. You have %1 tries left.<br>").tqarg(step);
- passdlgmessage+=i18n("Enter passphrase for <b>%1</b>").tqarg(userIDs);
+ passdlgmessage=i18n("<b>Bad passphrase</b>. You have %1 tries left.<br>").arg(step);
+ passdlgmessage+=i18n("Enter passphrase for <b>%1</b>").arg(userIDs);
int code=KPasswordDialog::getPassword(passphrase,passdlgmessage);
if (code!=TQDialog::Accepted)
{
@@ -588,11 +588,11 @@ TQString required;
{
TQString userName=required.section(" ",2,-1).replace(TQRegExp("<"),"&lt;");
userName=checkForUtf8(userName);
- signID=i18n("<qt>Good signature from:<br><b>%1</b><br>Key ID: %2</qt>").tqarg(userName).tqarg("0x"+required.section(" ",1,1).right(8));
+ signID=i18n("<qt>Good signature from:<br><b>%1</b><br>Key ID: %2</qt>").arg(userName).arg("0x"+required.section(" ",1,1).right(8));
}
if (required.startsWith("BADSIG"))
{
- signID=i18n("<qt><b>Bad signature</b> from:<br>%1<br>Key ID: %2<br><br><b>Text is corrupted.</b></qt>").tqarg(required.section(" ",2,-1).replace(TQRegExp("<"),"&lt;")).tqarg("0x"+required.section(" ",1,1).right(8));
+ signID=i18n("<qt><b>Bad signature</b> from:<br>%1<br>Key ID: %2<br><br><b>Text is corrupted.</b></qt>").arg(required.section(" ",2,-1).replace(TQRegExp("<"),"&lt;")).arg("0x"+required.section(" ",1,1).right(8));
}
if (required.startsWith("NO_PUBKEY"))
{
@@ -628,7 +628,7 @@ Md5Widget::Md5Widget(TQWidget *parent, const char *name,KURL url):KDialogBase( p
TQGridLayout *MyDialogLayout = new TQGridLayout( page, 1, 1, 5, 6, "MyDialogLayout");
TQLabel *TextLabel1 = new TQLabel( page, "TextLabel1" );
- TextLabel1->setText(i18n("MD5 sum for <b>%1</b> is:").tqarg(url.fileName()));
+ TextLabel1->setText(i18n("MD5 sum for <b>%1</b> is:").arg(url.fileName()));
MyDialogLayout->addWidget( TextLabel1, 0, 0 );
KLineEdit *KRestrictedLine1 = new KLineEdit(mdSum,page);
@@ -715,7 +715,7 @@ void KgpgInterface::KgpgSignFile(TQString keyID,KURL srcUrl,TQStringList Options
void KgpgInterface::signfin(KProcess *)
{
if (message.find("SIG_CREATED")!=-1)
- KMessageBox::information(0,i18n("The signature file %1 was successfully created.").tqarg(file.fileName()));
+ KMessageBox::information(0,i18n("The signature file %1 was successfully created.").arg(file.fileName()));
else if (message.find("BAD_PASSPHRASE")!=-1)
KMessageBox::sorry(0,i18n("Bad passphrase, signature was not created."));
else
@@ -740,8 +740,8 @@ void KgpgInterface::readsignprocess(KProcIO *p)
TQCString passphrase;
TQString passdlgmessage;
if (step<3)
- passdlgmessage=i18n("<b>Bad passphrase</b>. you have %1 tries left.<br>").tqarg(step);
- passdlgmessage+=i18n("Enter passphrase for <b>%1</b>").tqarg(userIDs);
+ passdlgmessage=i18n("<b>Bad passphrase</b>. you have %1 tries left.<br>").arg(step);
+ passdlgmessage+=i18n("Enter passphrase for <b>%1</b>").arg(userIDs);
int code=KPasswordDialog::getPassword(passphrase,passdlgmessage);
if (code!=TQDialog::Accepted) {
p->deleteLater();
@@ -799,12 +799,12 @@ TQString required;
signID=i18n("No signature found.");
if (required.startsWith("GOODSIG"))
{
- signID=i18n("<qt>Good signature from:<br><b>%1</b><br>Key ID: %2</qt>").tqarg(required.section(" ",2,-1).replace(TQRegExp("<"),"&lt;")).tqarg("0x"+required.section(" ",1,1).right(8));
+ signID=i18n("<qt>Good signature from:<br><b>%1</b><br>Key ID: %2</qt>").arg(required.section(" ",2,-1).replace(TQRegExp("<"),"&lt;")).arg("0x"+required.section(" ",1,1).right(8));
}
if (required.startsWith("BADSIG"))
{
signID=i18n("<qt><b>BAD signature</b> from:<br> %1<br>Key id: %2<br><br>"
- "<b>The file is corrupted!</b></qt>").tqarg(required.section(" ",2,-1).replace(TQRegExp("<"),"&lt;")).tqarg("0x"+required.section(" ",1,1).right(8));
+ "<b>The file is corrupted!</b></qt>").arg(required.section(" ",2,-1).replace(TQRegExp("<"),"&lt;")).arg("0x"+required.section(" ",1,1).right(8));
}
if (required.startsWith("NO_PUBKEY"))
{
@@ -827,7 +827,7 @@ void KgpgInterface::verifyfin(KProcess *)
}
else {
if (KMessageBox::questionYesNo(0,i18n("<qt><b>Missing signature:</b><br>Key id: %1<br><br>"
- "Do you want to import this key from a keyserver?</qt>").tqarg(signID),file.fileName(),TQString(), i18n("Import"), i18n("Do Not Import"))==KMessageBox::Yes)
+ "Do you want to import this key from a keyserver?</qt>").arg(signID),file.fileName(),TQString(), i18n("Import"), i18n("Do Not Import"))==KMessageBox::Yes)
emit verifyquerykey(signID);
}
emit verifyfinished();
@@ -908,7 +908,7 @@ void KgpgInterface::sigprocess(KProcIO *p)
if (required.find("passphrase.enter")!=-1) {
TQCString signpass;
int code=KPasswordDialog::getPassword(signpass,i18n("<qt>%1 Enter passphrase for <b>%2</b>:</qt>")
- .tqarg(errMessage).tqarg(userIDs));
+ .arg(errMessage).arg(userIDs));
if (code!=TQDialog::Accepted) {
signSuccess=4; ///// aborted by user mode
required=TQString();
@@ -947,7 +947,7 @@ void KgpgInterface::signover(KProcess *)
emit signatureFinished(signSuccess); //// signature successful or bad passphrase
else {
KDetailedConsole *q=new KDetailedConsole(0,"sign_error",i18n("<qt>Signing key <b>%1</b> with key <b>%2</b> failed.<br>"
- "Do you want to try signing the key in console mode?</qt>").tqarg(konsKeyID).tqarg(konsSignKey),output);
+ "Do you want to try signing the key in console mode?</qt>").arg(konsKeyID).arg(konsSignKey),output);
if (q->exec()==TQDialog::Accepted)
openSignConsole();
else
@@ -1112,7 +1112,7 @@ void KgpgInterface::expprocess(KProcIO *p)
if (required.find("passphrase.enter")!=-1) {
TQCString signpass;
- int code=KPasswordDialog::getPassword(signpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>").tqarg(userIDs));
+ int code=KPasswordDialog::getPassword(signpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>").arg(userIDs));
if (code!=TQDialog::Accepted) {
expSuccess=3; ///// aborted by user mode
p->writeStdin(TQString("quit"));
@@ -1276,7 +1276,7 @@ void KgpgInterface::passprocess(KProcIO *p)
if (step==1) {
TQCString passphrase;
int code=KPasswordDialog::getPassword(passphrase,i18n("<qt>%1 Enter passphrase for <b>%2</b></qt>")
- .tqarg(message).tqarg(userIDs));
+ .arg(message).arg(userIDs));
if (code!=TQDialog::Accepted) {
p->writeStdin(TQString("quit"));
// p->closeWhenDone();
@@ -1290,7 +1290,7 @@ void KgpgInterface::passprocess(KProcIO *p)
if (step==3) {
TQCString passphrase;
- int code=KPasswordDialog::getNewPassword(passphrase,i18n("<qt>Enter new passphrase for <b>%1</b><br>If you forget this passphrase, all your encrypted files and messages will be lost !<br></qt>").tqarg(userIDs));
+ int code=KPasswordDialog::getNewPassword(passphrase,i18n("<qt>Enter new passphrase for <b>%1</b><br>If you forget this passphrase, all your encrypted files and messages will be lost !<br></qt>").arg(userIDs));
if (code!=TQDialog::Accepted) {
step=4;
p->writeStdin(TQString("quit"));
@@ -1517,7 +1517,7 @@ void KgpgInterface::adduidprocess(KProcIO *p)
if (required.find("passphrase.enter")!=-1) {
TQCString delpass;
int code=KPasswordDialog::getPassword(delpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>")
- .tqarg(userIDs));
+ .arg(userIDs));
if (code!=TQDialog::Accepted) {
//addSuccess=false;
p->writeStdin(TQString("quit"));
@@ -1639,7 +1639,7 @@ void KgpgInterface::delphotoprocess(KProcIO *p)
if (required.find("passphrase.enter")!=-1) {
TQCString delpass;
- int code=KPasswordDialog::getPassword(delpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>").tqarg(userIDs));
+ int code=KPasswordDialog::getPassword(delpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>").arg(userIDs));
if (code!=TQDialog::Accepted) {
//deleteSuccess=false;
p->writeStdin(TQString("quit"));
@@ -1714,7 +1714,7 @@ void KgpgInterface::addphotoprocess(KProcIO *p)
if (required.find("passphrase.enter")!=-1) {
TQCString delpass;
- int code=KPasswordDialog::getPassword(delpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>").tqarg(userIDs));
+ int code=KPasswordDialog::getPassword(delpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>").arg(userIDs));
if (code!=TQDialog::Accepted) {
//deleteSuccess=false;
p->writeStdin(TQString("quit"));
@@ -1800,7 +1800,7 @@ void KgpgInterface::revokeprocess(KProcIO *p)
if (required.find("passphrase.enter")!=-1) {
TQCString signpass;
- int code=KPasswordDialog::getPassword(signpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>").tqarg(userIDs));
+ int code=KPasswordDialog::getPassword(signpass,i18n("<qt>Enter passphrase for <b>%1</b>:</qt>").arg(userIDs));
if (code!=TQDialog::Accepted) {
expSuccess=3; ///// aborted by user mode
p->writeStdin(TQString("quit"));
@@ -1928,7 +1928,7 @@ void KgpgInterface::setGpgGroupSetting(TQString name,TQStringList values, TQStri
if (result2.startsWith(name) && (result2.remove(0,name.length()).stripWhiteSpace().startsWith("="))) {
// kdDebug(2100)<<"Found group: "<<name<<endl;
//kdDebug(2100)<<"New values: "<<values<<endl;
- result=TQString("group %1=%2").tqarg(name).tqarg(values.join(" "));
+ result=TQString("group %1=%2").arg(name).arg(values.join(" "));
found=true;
}
}
@@ -1937,7 +1937,7 @@ void KgpgInterface::setGpgGroupSetting(TQString name,TQStringList values, TQStri
}
qfile.close();
if (!found)
- textToWrite+="\n"+TQString("group %1=%2").tqarg(name).tqarg(values.join(" "));
+ textToWrite+="\n"+TQString("group %1=%2").arg(name).arg(values.join(" "));
if (qfile.open(IO_WriteOnly)) {
TQTextStream t( &qfile);
diff --git a/kgpg/kgpglibrary.cpp b/kgpg/kgpglibrary.cpp
index 2d7f0ad..418c53e 100644
--- a/kgpg/kgpglibrary.cpp
+++ b/kgpg/kgpglibrary.cpp
@@ -104,8 +104,8 @@ void KgpgLibrary::fastencode(KURL &fileToCrypt,TQStringList selec,TQStringList e
}
int filesToEncode=urlselecteds.count();
if (filesToEncode>1)
- emit systemMessage(i18n("<b>%1 Files left.</b>\nEncrypting </b>%2").tqarg(filesToEncode).tqarg(urlselecteds.first().path()));
- else emit systemMessage(i18n("<b>Encrypting </b>%2").tqarg(urlselecteds.first().path()));
+ emit systemMessage(i18n("<b>%1 Files left.</b>\nEncrypting </b>%2").arg(filesToEncode).arg(urlselecteds.first().path()));
+ else emit systemMessage(i18n("<b>Encrypting </b>%2").arg(urlselecteds.first().path()));
KgpgInterface *cryptFileProcess=new KgpgInterface();
pop = new KPassivePopup(panel);
cryptFileProcess->KgpgEncryptFile(selec,urlselected,dest,encryptOptions,symetric);
@@ -122,7 +122,7 @@ void KgpgLibrary::processpopup2(TQString fileName)
{
//pop->setTimeout(0);
- pop->setView(i18n("Processing encryption (%1)").tqarg(fileName),i18n("Please wait..."),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop));
+ pop->setView(i18n("Processing encryption (%1)").arg(fileName),i18n("Please wait..."),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop));
pop->show();
/*TQRect qRect(TQApplication::desktop()->screenGeometry());
int iXpos=qRect.width()/2-pop->width()/2;
@@ -192,7 +192,7 @@ void KgpgLibrary::slotFileDec(KURL srcUrl,KURL destUrl,TQStringList customDecryp
void KgpgLibrary::processpopup(TQString fileName)
{
- emit systemMessage(i18n("Decrypting %1").tqarg(fileName));
+ emit systemMessage(i18n("Decrypting %1").arg(fileName));
pop->setTimeout(0);
pop->setView(i18n("Processing decryption"),i18n("Please wait..."),KGlobal::iconLoader()->loadIcon("kgpg",KIcon::Desktop));
pop->show();
@@ -222,7 +222,7 @@ void KgpgLibrary::processdecerror(TQString mssge)
qfile.close();
////////////// if pgp data found, decode it
if (result.startsWith("-----BEGIN PGP PUBLIC KEY BLOCK")) {////// dropped file is a public key, ask for import
- int result=KMessageBox::warningContinueCancel(0,i18n("<p>The file <b>%1</b> is a public key.<br>Do you want to import it ?</p>").tqarg(urlselected.path()),i18n("Warning"));
+ int result=KMessageBox::warningContinueCancel(0,i18n("<p>The file <b>%1</b> is a public key.<br>Do you want to import it ?</p>").arg(urlselected.path()),i18n("Warning"));
if (result==KMessageBox::Cancel)
return;
else {
@@ -233,7 +233,7 @@ void KgpgLibrary::processdecerror(TQString mssge)
}
} else if (result.startsWith("-----BEGIN PGP PRIVATE KEY BLOCK")) {////// dropped file is a public key, ask for import
qfile.close();
- KMessageBox::information(0,i18n("<p>The file <b>%1</b> is a private key block. Please use KGpg key manager to import it.</p>").tqarg(urlselected.path()));
+ KMessageBox::information(0,i18n("<p>The file <b>%1</b> is a private key block. Please use KGpg key manager to import it.</p>").arg(urlselected.path()));
return;
}
}
diff --git a/kgpg/kgpgrevokewidget.ui b/kgpg/kgpgrevokewidget.ui
index 2405494..e4f30ff 100644
--- a/kgpg/kgpgrevokewidget.ui
+++ b/kgpg/kgpgrevokewidget.ui
@@ -26,7 +26,7 @@
<property name="text">
<string>key id</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
diff --git a/kgpg/kgpgview.cpp b/kgpg/kgpgview.cpp
index 9c12d63..a8a3cb9 100644
--- a/kgpg/kgpgview.cpp
+++ b/kgpg/kgpgview.cpp
@@ -127,7 +127,7 @@ TQFile qfile(fileToCheck);
} else
if (result.startsWith("-----BEGIN PGP PUBLIC KEY BLOCK")) {////// dropped file is a public key, ask for import
qfile.close();
- int result=KMessageBox::warningContinueCancel(this,i18n("<p>The file <b>%1</b> is a public key.<br>Do you want to import it ?</p>").tqarg(fileToCheck),i18n("Warning"));
+ int result=KMessageBox::warningContinueCancel(this,i18n("<p>The file <b>%1</b> is a public key.<br>Do you want to import it ?</p>").arg(fileToCheck),i18n("Warning"));
if (result==KMessageBox::Cancel) {
KIO::NetAccess::removeTempFile(fileToCheck);
return true;
@@ -239,7 +239,7 @@ void KgpgView::modified()
void KgpgView::slotAskForImport(TQString ID)
{
if (KMessageBox::questionYesNo(0,i18n("<qt><b>Missing signature:</b><br>Key id: %1<br><br>"
- "Do you want to import this key from a keyserver?</qt>").tqarg(ID),i18n("Missing Key"), TQString(), i18n("Import"), i18n("Do Not Import"))==KMessageBox::Yes) {
+ "Do you want to import this key from a keyserver?</qt>").arg(ID),i18n("Missing Key"), TQString(), i18n("Import"), i18n("Do Not Import"))==KMessageBox::Yes) {
keyServer *kser=new keyServer(0,"server_dialog",false,true);
kser->page->kLEimportid->setText(ID);
kser->slotImport();
diff --git a/kgpg/kgpgwizard.ui b/kgpg/kgpgwizard.ui
index 5521225..7a6b774 100644
--- a/kgpg/kgpgwizard.ui
+++ b/kgpg/kgpgwizard.ui
@@ -50,7 +50,7 @@
<property name="scaledContents">
<bool>false</bool>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
@@ -62,7 +62,7 @@
<string>&lt;h1&gt;Welcome to the KGpg Wizard&lt;/h1&gt;
This wizard will first setup some basic configuration options required for KGpg to work properly. Next, it will allow you to create your own key pair, enabling you to encrypt your files and emails.</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -111,7 +111,7 @@ This wizard will first setup some basic configuration options required for KGpg
<property name="text">
<string>Unless you want to try some unusual settings, just click on the "next" button.</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -122,7 +122,7 @@ This wizard will first setup some basic configuration options required for KGpg
<property name="text">
<string>KGpg needs to know where your GnuPG configuration file is stored.</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -155,7 +155,7 @@ This wizard will first setup some basic configuration options required for KGpg
<property name="text">
<string>&lt;br&gt;Path to your GnuPG options file:</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@@ -183,7 +183,7 @@ This wizard will first setup some basic configuration options required for KGpg
<property name="scaledContents">
<bool>false</bool>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
@@ -235,7 +235,7 @@ This wizard will first setup some basic configuration options required for KGpg
<property name="scaledContents">
<bool>false</bool>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
@@ -266,7 +266,7 @@ The shredder securely deletes files (overwriting them 35 times) dropped on to it
Remember that if you download a file or open one in an editor, parts of the file may be saved in a temporary location. Shredding will not erase these temporary files.
&lt;br&gt;&lt;b&gt;Shredding may not be 100% secure if you use a journaling file system.&lt;/b&gt;&lt;/qt&gt;</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignJustify|AlignTop</set>
</property>
</widget>
@@ -349,7 +349,7 @@ Remember that if you download a file or open one in an editor, parts of the file
<property name="text">
<string>KGpg will now launch the key generation dialog to create your own key pair for encryption and decryption.</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@@ -377,7 +377,7 @@ Remember that if you download a file or open one in an editor, parts of the file
<property name="scaledContents">
<bool>false</bool>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
diff --git a/kgpg/listkeys.cpp b/kgpg/listkeys.cpp
index c1845fe..aeb190b 100644
--- a/kgpg/listkeys.cpp
+++ b/kgpg/listkeys.cpp
@@ -137,7 +137,7 @@ UpdateViewItem::UpdateViewItem(TQListViewItem *parent, TQString name,TQString em
}
-void UpdateViewItem::paintCell(TQPainter *p, const TQColorGroup &cg,int column, int width, int tqalignment)
+void UpdateViewItem::paintCell(TQPainter *p, const TQColorGroup &cg,int column, int width, int alignment)
{
TQColorGroup _cg( cg );
if (depth()==0)
@@ -157,7 +157,7 @@ void UpdateViewItem::paintCell(TQPainter *p, const TQColorGroup &cg,int column,
}
- KListViewItem::paintCell(p,_cg, column, width, tqalignment);
+ KListViewItem::paintCell(p,_cg, column, width, alignment);
}
#include <iostream>
@@ -257,7 +257,7 @@ KDialogBase( parent, name, true,i18n("Private Key List"),Ok | Cancel)
val=i18n("Unlimited");
fullname=keyString[9];
- fp2 = popen(TQFile::encodeName(TQString("gpg --no-tty --with-colons --list-key %1").tqarg(KShellProcess::quote(id))), "r");
+ fp2 = popen(TQFile::encodeName(TQString("gpg --no-tty --with-colons --list-key %1").arg(KShellProcess::quote(id))), "r");
bool dead=true;
while ( fgets( line, sizeof(line), fp2)) {
tst2=TQString::fromUtf8(line);
@@ -297,7 +297,7 @@ KDialogBase( parent, name, true,i18n("Private Key List"),Ok | Cancel)
item=new KListViewItem(keysListpr,keyName,keyMail,id);
- //KListViewItem *sub= new KListViewItem(item,i18n("ID: %1, trust: %2, expiration: %3").tqarg(id).tqarg(trust).tqarg(val));
+ //KListViewItem *sub= new KListViewItem(item,i18n("ID: %1, trust: %2, expiration: %3").arg(id).arg(trust).arg(val));
KListViewItem *sub= new KListViewItem(item,i18n("Expiration:"),val);
sub->setSelectable(false);
item->setPixmap(0,keyPair);
@@ -434,7 +434,7 @@ KeyView::KeyView( TQWidget *parent, const char *name )
void KeyView::droppedfile (KURL url)
{
- if (KMessageBox::questionYesNo(this,i18n("<p>Do you want to import file <b>%1</b> into your key ring?</p>").tqarg(url.path()), TQString(), i18n("Import"), i18n("Do Not Import"))!=KMessageBox::Yes)
+ if (KMessageBox::questionYesNo(this,i18n("<p>Do you want to import file <b>%1</b> into your key ring?</p>").arg(url.path()), TQString(), i18n("Import"), i18n("Do Not Import"))!=KMessageBox::Yes)
return;
KgpgInterface *importKeyProcess=new KgpgInterface();
@@ -966,7 +966,7 @@ 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()->parent()->text(0)).tqarg(keysList2->currentItem()->parent()->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>").arg(keysList2->currentItem()->text(6)).arg(keysList2->currentItem()->parent()->text(0)).arg(keysList2->currentItem()->parent()->text(1)),i18n("Warning"),KGuiItem(i18n("Delete"),"editdelete"))!=KMessageBox::Continue)
return;
KgpgInterface *delPhotoProcess=new KgpgInterface();
@@ -1070,7 +1070,7 @@ void listKeys::findFirstKey()
keysList2->setSelected(item,true);
keysList2->ensureItemVisible(item);
} else
- KMessageBox::sorry(this,i18n("<qt>Search string '<b>%1</b>' not found.").tqarg(searchString));
+ KMessageBox::sorry(this,i18n("<qt>Search string '<b>%1</b>' not found.").arg(searchString));
}
void listKeys::findNextKey()
@@ -1275,7 +1275,7 @@ void listKeys::readOptions()
KGpgSettings::setGroups(groups.join(","));
keysList2->groupNb=groups.count();
if (keyStatusBar)
- changeMessage(i18n("%1 Keys, %2 Groups").tqarg(keysList2->childCount()-keysList2->groupNb).tqarg(keysList2->groupNb),1);
+ changeMessage(i18n("%1 Keys, %2 Groups").arg(keysList2->childCount()-keysList2->groupNb).arg(keysList2->groupNb),1);
showTipOfDay= KGpgSettings::showTipOfDay();
}
@@ -1478,7 +1478,7 @@ void listKeys::slotexportsec()
p->start(KProcess::Block);
if (fgpg.exists())
- KMessageBox::information(this,i18n("Your PRIVATE key \"%1\" was successfully exported.\nDO NOT leave it in an insecure place.").tqarg(url.path()));
+ KMessageBox::information(this,i18n("Your PRIVATE key \"%1\" was successfully exported.\nDO NOT leave it in an insecure place.").arg(url.path()));
else
KMessageBox::sorry(this,i18n("Your secret key could not be exported.\nCheck the key."));
}
@@ -1553,7 +1553,7 @@ void listKeys::slotexport()
p->start(KProcess::Block);
if (fgpg.exists())
- KMessageBox::information(this,i18n("Your public key \"%1\" was successfully exported\n").tqarg(expname));
+ KMessageBox::information(this,i18n("Your public key \"%1\" was successfully exported\n").arg(expname));
else
KMessageBox::sorry(this,i18n("Your public key could not be exported\nCheck the key."));
}
@@ -1667,7 +1667,7 @@ void listKeys::deleteGroup()
if (!keysList2->currentItem() || !keysList2->currentItem()->text(6).isEmpty())
return;
- int result=KMessageBox::warningContinueCancel(this,i18n("<qt>Are you sure you want to delete group <b>%1</b> ?</qt>").tqarg(keysList2->currentItem()->text(0)),i18n("Warning"),KGuiItem(i18n("Delete"),"editdelete"));
+ int result=KMessageBox::warningContinueCancel(this,i18n("<qt>Are you sure you want to delete group <b>%1</b> ?</qt>").arg(keysList2->currentItem()->text(0)),i18n("Warning"),KGuiItem(i18n("Delete"),"editdelete"));
if (result!=KMessageBox::Continue)
return;
KgpgInterface::delGpgGroup(keysList2->currentItem()->text(0), KGpgSettings::gpgConfigPath());
@@ -1681,7 +1681,7 @@ void listKeys::deleteGroup()
TQStringList groups=KgpgInterface::getGpgGroupNames(KGpgSettings::gpgConfigPath());
KGpgSettings::setGroups(groups.join(","));
keysList2->groupNb=groups.count();
- changeMessage(i18n("%1 Keys, %2 Groups").tqarg(keysList2->childCount()-keysList2->groupNb).tqarg(keysList2->groupNb),1);
+ changeMessage(i18n("%1 Keys, %2 Groups").arg(keysList2->childCount()-keysList2->groupNb).arg(keysList2->groupNb),1);
}
void listKeys::groupChange()
@@ -1737,9 +1737,9 @@ void listKeys::createNewGroup()
keysList2->setSelected(newgrp,true);
keysList2->ensureItemVisible(newgrp);
keysList2->groupNb=groups.count();
- changeMessage(i18n("%1 Keys, %2 Groups").tqarg(keysList2->childCount()-keysList2->groupNb).tqarg(keysList2->groupNb),1);
+ changeMessage(i18n("%1 Keys, %2 Groups").arg(keysList2->childCount()-keysList2->groupNb).arg(keysList2->groupNb),1);
} else
- KMessageBox::sorry(this,i18n("<qt>No valid or trusted key was selected. The group <b>%1</b> will not be created.</qt>").tqarg(groupName));
+ KMessageBox::sorry(this,i18n("<qt>No valid or trusted key was selected. The group <b>%1</b> will not be created.</qt>").arg(groupName));
}
}
@@ -1864,7 +1864,7 @@ void listKeys::signkey()
pclose(pass);
opt= i18n("<qt>You are about to sign key:<br><br>%1<br>ID: %2<br>Fingerprint: <br><b>%3</b>.<br><br>"
"You should check the key fingerprint by phoning or meeting the key owner to be sure that someone "
- "is not trying to intercept your communications</qt>").tqarg(keysList2->currentItem()->text(0)+" ("+keysList2->currentItem()->text(1)+")").tqarg(keysList2->currentItem()->text(6)).tqarg(fingervalue);
+ "is not trying to intercept your communications</qt>").arg(keysList2->currentItem()->text(0)+" ("+keysList2->currentItem()->text(1)+")").arg(keysList2->currentItem()->text(6)).arg(fingervalue);
if (KMessageBox::warningContinueCancel(this,opt)!=KMessageBox::Continue)
return;
@@ -1958,7 +1958,7 @@ void listKeys::signatureResult(int success)
keysList2->refreshcurrentkey(signList.at(keyCount));
else if (success==2)
- KMessageBox::sorry(this,i18n("<qt>Bad passphrase, key <b>%1</b> not signed.</qt>").tqarg(signList.at(keyCount)->text(0)+i18n(" (")+signList.at(keyCount)->text(1)+i18n(")")));
+ KMessageBox::sorry(this,i18n("<qt>Bad passphrase, key <b>%1</b> not signed.</qt>").arg(signList.at(keyCount)->text(0)+i18n(" (")+signList.at(keyCount)->text(1)+i18n(")")));
keyCount++;
signLoop();
@@ -2064,7 +2064,7 @@ void listKeys::delsignkey()
KMessageBox::sorry(this,i18n("Edit key manually to delete a self-signature."));
return;
}
- TQString ask=i18n("<qt>Are you sure you want to delete signature<br><b>%1</b> from key:<br><b>%2</b>?</qt>").tqarg(signMail).tqarg(parentMail);
+ TQString ask=i18n("<qt>Are you sure you want to delete signature<br><b>%1</b> from key:<br><b>%2</b>?</qt>").arg(signMail).arg(parentMail);
if (KMessageBox::questionYesNo(this,ask,TQString(),KStdGuiItem::del(),KStdGuiItem::cancel())!=KMessageBox::Yes)
return;
@@ -2134,7 +2134,7 @@ void listKeys::slotgenkey()
bool goodpass=false;
while (!goodpass)
{
- int code=KPasswordDialog::getNewPassword(password,i18n("<b>Enter passphrase for %1</b>:<br>Passphrase should include non alphanumeric characters and random sequences").tqarg(newKeyName+" <"+newKeyMail+">"));
+ int code=KPasswordDialog::getNewPassword(password,i18n("<b>Enter passphrase for %1</b>:<br>Passphrase should include non alphanumeric characters and random sequences").arg(newKeyName+" <"+newKeyMail+">"));
if (code!=TQDialog::Accepted)
return;
if (password.length()<5)
@@ -2188,27 +2188,27 @@ void listKeys::slotgenkey()
{
proc->writeStdin(TQString("Key-Type: DSA"));
proc->writeStdin(TQString("Subkey-Type: ELG-E"));
- proc->writeStdin(TQString("Subkey-Length:%1").tqarg(ksize));
+ proc->writeStdin(TQString("Subkey-Length:%1").arg(ksize));
}
- proc->writeStdin(TQString("Passphrase:%1").tqarg(password.data()));
- proc->writeStdin(TQString("Key-Length:%1").tqarg(ksize));
- proc->writeStdin(TQString("Name-Real:%1").tqarg(newKeyName));
+ proc->writeStdin(TQString("Passphrase:%1").arg(password.data()));
+ proc->writeStdin(TQString("Key-Length:%1").arg(ksize));
+ proc->writeStdin(TQString("Name-Real:%1").arg(newKeyName));
if (!newKeyMail.isEmpty())
- proc->writeStdin(TQString("Name-Email:%1").tqarg(newKeyMail));
+ proc->writeStdin(TQString("Name-Email:%1").arg(newKeyMail));
if (!kcomment.isEmpty())
- proc->writeStdin(TQString("Name-Comment:%1").tqarg(kcomment));
+ proc->writeStdin(TQString("Name-Comment:%1").arg(kcomment));
if (kexp==0)
proc->writeStdin(TQString("Expire-Date:0"));
if (kexp==1)
- proc->writeStdin(TQString("Expire-Date:%1").tqarg(knumb));
+ proc->writeStdin(TQString("Expire-Date:%1").arg(knumb));
if (kexp==2)
- proc->writeStdin(TQString("Expire-Date:%1w").tqarg(knumb));
+ proc->writeStdin(TQString("Expire-Date:%1w").arg(knumb));
if (kexp==3)
- proc->writeStdin(TQString("Expire-Date:%1m").tqarg(knumb));
+ proc->writeStdin(TQString("Expire-Date:%1m").arg(knumb));
if (kexp==4)
- proc->writeStdin(TQString("Expire-Date:%1y").tqarg(knumb));
+ proc->writeStdin(TQString("Expire-Date:%1y").arg(knumb));
proc->writeStdin(TQString("%commit"));
TQObject::connect(proc,TQT_SIGNAL(readReady(KProcIO *)),TQT_TQOBJECT(this),TQT_SLOT(readgenprocess(KProcIO *)));
proc->closeWhenDone();
@@ -2281,7 +2281,7 @@ void listKeys::newKeyDone(KProcess *)
return;
}
keysList2->refreshcurrentkey(newkeyID);
- changeMessage(i18n("%1 Keys, %2 Groups").tqarg(keysList2->childCount()-keysList2->groupNb).tqarg(keysList2->groupNb),1);
+ changeMessage(i18n("%1 Keys, %2 Groups").arg(keysList2->childCount()-keysList2->groupNb).arg(keysList2->groupNb),1);
KDialogBase *keyCreated=new KDialogBase( this, "key_created", true,i18n("New Key Pair Created"), KDialogBase::Ok);
newKey *page=new newKey(keyCreated);
page->TLname->setText("<b>"+newKeyName+"</b>");
@@ -2326,7 +2326,7 @@ void listKeys::doFilePrint(TQString url)
TQTextStream t( &qfile );
doPrint(t.read());
} else
- KMessageBox::sorry(this,i18n("<qt>Cannot open file <b>%1</b> for printing...</qt>").tqarg(url));
+ KMessageBox::sorry(this,i18n("<qt>Cannot open file <b>%1</b> for printing...</qt>").arg(url));
}
void listKeys::doPrint(TQString txt)
@@ -2345,7 +2345,7 @@ void listKeys::deleteseckey()
//////////////////////// delete a key
TQString res=keysList2->currentItem()->text(0)+" ("+keysList2->currentItem()->text(1)+")";
int result=KMessageBox::warningContinueCancel(this,
- i18n("<p>Delete <b>SECRET KEY</b> pair <b>%1</b>?</p>Deleting this key pair means you will never be able to decrypt files encrypted with this key again.").tqarg(res),
+ i18n("<p>Delete <b>SECRET KEY</b> pair <b>%1</b>?</p>Deleting this key pair means you will never be able to decrypt files encrypted with this key again.").arg(res),
i18n("Warning"),
KGuiItem(i18n("Delete"),"editdelete"));
if (result!=KMessageBox::Continue)
@@ -2406,7 +2406,7 @@ void listKeys::confirmdeletekey()
}
if (secretKeyInside) {
- int result=KMessageBox::warningContinueCancel(this,i18n("<qt>The following are secret key pairs:<br><b>%1</b>They will not be deleted.<br></qt>").tqarg(secList));
+ int result=KMessageBox::warningContinueCancel(this,i18n("<qt>The following are secret key pairs:<br><b>%1</b>They will not be deleted.<br></qt>").arg(secList));
if (result!=KMessageBox::Continue)
return;
}
@@ -2461,7 +2461,7 @@ void listKeys::deletekey()
}
}
else stateChanged("empty_list");
- changeMessage(i18n("%1 Keys, %2 Groups").tqarg(keysList2->childCount()-keysList2->groupNb).tqarg(keysList2->groupNb),1);
+ changeMessage(i18n("%1 Keys, %2 Groups").arg(keysList2->childCount()-keysList2->groupNb).arg(keysList2->groupNb),1);
}
@@ -2638,7 +2638,7 @@ void KeyView::expandKey(TQListViewItem *item)
} else
if (tst[0]=="sub") {
gpgKey subKey=extractKey(line);
- itemsub= new UpdateViewItem(item,i18n("%1 subkey").tqarg(subKey.gpgkeyalgo),TQString(),TQString(),subKey.gpgkeyexpiration,subKey.gpgkeysize,subKey.gpgkeycreation,subKey.gpgkeyid);
+ itemsub= new UpdateViewItem(item,i18n("%1 subkey").arg(subKey.gpgkeyalgo),TQString(),TQString(),subKey.gpgkeyexpiration,subKey.gpgkeysize,subKey.gpgkeycreation,subKey.gpgkeyid);
itemsub->setPixmap(0,pixkeySingle);
itemsub->setPixmap(2,subKey.trustpic);
cycle="sub";
@@ -2768,7 +2768,7 @@ void KeyView::refreshkeylist()
setSelected(firstChild(),true);
}
- emit statusMessage(i18n("%1 Keys, %2 Groups").tqarg(childCount()-groupNb).tqarg(groupNb),1);
+ emit statusMessage(i18n("%1 Keys, %2 Groups").arg(childCount()-groupNb).arg(groupNb),1);
emit statusMessage(i18n("Ready"),0);
kdDebug(2100)<<"Refresh Finished"<<endl;
}
@@ -2855,7 +2855,7 @@ void KeyView::refreshgroups()
item->setPixmap(0,pixkeyGroup);
item->setExpandable(false);
}
- emit statusMessage(i18n("%1 Keys, %2 Groups").tqarg(childCount()-groupNb).tqarg(groupNb),1);
+ emit statusMessage(i18n("%1 Keys, %2 Groups").arg(childCount()-groupNb).arg(groupNb),1);
emit statusMessage(i18n("Ready"),0);
}
@@ -2882,7 +2882,7 @@ void KeyView::slotReloadKeys(TQStringList keyIDs)
}
kdDebug(2100)<<"Refreshing key:--------"<<TQString((keyIDs.last()).right(8).prepend("0x"))<<endl;
ensureItemVisible(this->findItem((keyIDs.last()).right(8).prepend("0x"),6));
- emit statusMessage(i18n("%1 Keys, %2 Groups").tqarg(childCount()-groupNb).tqarg(groupNb),1);
+ emit statusMessage(i18n("%1 Keys, %2 Groups").arg(childCount()-groupNb).arg(groupNb),1);
emit statusMessage(i18n("Ready"),0);
}
@@ -2917,7 +2917,7 @@ void KeyView::slotReloadOrphaned()
}
}
setSelected(findItem(*it,6),true);
- emit statusMessage(i18n("%1 Keys, %2 Groups").tqarg(childCount()-groupNb).tqarg(groupNb),1);
+ emit statusMessage(i18n("%1 Keys, %2 Groups").arg(childCount()-groupNb).arg(groupNb),1);
emit statusMessage(i18n("Ready"),0);
}
diff --git a/kgpg/popuppublic.cpp b/kgpg/popuppublic.cpp
index 89a25ae..dca3940 100644
--- a/kgpg/popuppublic.cpp
+++ b/kgpg/popuppublic.cpp
@@ -70,14 +70,14 @@ def=isDefault;
}
-void UpdateViewItem2::paintCell(TQPainter *p, const TQColorGroup &cg,int column, int width, int tqalignment)
+void UpdateViewItem2::paintCell(TQPainter *p, const TQColorGroup &cg,int column, int width, int alignment)
{
if ((def) && (column<2)) {
TQFont font(p->font());
font.setBold(true);
p->setFont(font);
}
- KListViewItem::paintCell(p, cg, column, width, tqalignment);
+ KListViewItem::paintCell(p, cg, column, width, alignment);
}
TQString UpdateViewItem2 :: key(int c,bool ) const
@@ -106,7 +106,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
keySingle=loader->loadIcon("kgpg_key1",KIcon::Small,20);
keyGroup=loader->loadIcon("kgpg_key3",KIcon::Small,20);
- if (filemode) setCaption(i18n("Select Public Key for %1").tqarg(sfile));
+ if (filemode) setCaption(i18n("Select Public Key for %1").arg(sfile));
fmode=filemode;
TQHButtonGroup *hBar=new TQHButtonGroup(page);
@@ -176,7 +176,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
(CBshred,i18n("<b>Shred source file</b>: permanently remove source file. No recovery will be possible"));
TQString shredWhatsThis = i18n( "<qt><b>Shred source file:</b><br /><p>Checking this option will shred (overwrite several times before erasing) the files you have encrypted. This way, it is almost impossible that the source file is recovered.</p><p><b>But you must be aware that this is not secure</b> on all file systems, and that parts of the file may have been saved in a temporary file or in the spooler of your printer if you previously opened it in an editor or tried to print it. Only works on files (not on folders).</p></qt>");
- KActiveLabel *warn= new KActiveLabel( i18n("<a href=\"whatsthis:%1\">Read this before using shredding</a>").tqarg(shredWhatsThis),parentBox );
+ KActiveLabel *warn= new KActiveLabel( i18n("<a href=\"whatsthis:%1\">Read this before using shredding</a>").arg(shredWhatsThis),parentBox );
shredBox->addWidget(CBshred);
shredBox->addWidget(warn);
}
@@ -431,7 +431,7 @@ void popupPublic::slotprocread(KProcIO *p)
bool isDefaultKey=false;
if (id.right(8)==defaultKey) isDefaultKey=true;
UpdateViewItem2 *item=new UpdateViewItem2(keysList,keyname,keymail,id,isDefaultKey);
- //KListViewItem *sub= new KListViewItem(item,i18n("ID: %1, trust: %2, validity: %3").tqarg(id).tqarg(tr).tqarg(val));
+ //KListViewItem *sub= new KListViewItem(item,i18n("ID: %1, trust: %2, validity: %3").arg(id).arg(tr).arg(val));
//sub->setSelectable(false);
if (seclist.find(tst,0,FALSE)!=-1)
item->setPixmap(0,keyPair);