summaryrefslogtreecommitdiffstats
path: root/src/ksvnwidgets/ssltrustprompt_impl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-04 19:54:24 +0000
commitd7633c195a464e4d344ada9eea61afd10110598a (patch)
tree1f2da0b135f3ed84955e340cae823f00c4ce7284 /src/ksvnwidgets/ssltrustprompt_impl.cpp
parent3fa7eb804f67b2789f128075cc2522f398640250 (diff)
downloadtdesvn-d7633c195a464e4d344ada9eea61afd10110598a.tar.gz
tdesvn-d7633c195a464e4d344ada9eea61afd10110598a.zip
Port kdesvn to TQt4
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1230412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/ksvnwidgets/ssltrustprompt_impl.cpp')
-rw-r--r--src/ksvnwidgets/ssltrustprompt_impl.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ksvnwidgets/ssltrustprompt_impl.cpp b/src/ksvnwidgets/ssltrustprompt_impl.cpp
index 795fe66..84b0d15 100644
--- a/src/ksvnwidgets/ssltrustprompt_impl.cpp
+++ b/src/ksvnwidgets/ssltrustprompt_impl.cpp
@@ -21,9 +21,9 @@
#include "src/settings/kdesvnsettings.h"
#include <klocale.h>
-#include <qlabel.h>
-#include <qtable.h>
-#include <qvbox.h>
+#include <tqlabel.h>
+#include <tqtable.h>
+#include <tqvbox.h>
#include <kdebug.h>
#include <kglobal.h>
#include <kapp.h>
@@ -32,19 +32,19 @@
#include <kdialogbase.h>
#include <ktextbrowser.h>
-SslTrustPrompt_impl::SslTrustPrompt_impl(const QString&host,QWidget *parent, const char *name)
- :SslTrustPrompt(parent, name)
+SslTrustPrompt_impl::SslTrustPrompt_impl(const TQString&host,TQWidget *tqparent, const char *name)
+ :SslTrustPrompt(tqparent, name)
{
m_MainLabel->setText("<p align=\"center\"><b>"+
- i18n("Error validating server certificate for '%1'").arg(host)+
- QString("</b></p>"));
+ i18n("Error validating server certificate for '%1'").tqarg(host)+
+ TQString("</b></p>"));
}
/*!
- \fn SslTrustPrompt_impl::sslTrust(const QString&host,const QString&fingerprint,const QString&validFrom,const QString&validUntil,const QString&issuerName,const QString&realm,bool*ok,bool*saveit)
+ \fn SslTrustPrompt_impl::sslTrust(const TQString&host,const TQString&fingerprint,const TQString&validFrom,const TQString&validUntil,const TQString&issuerName,const TQString&realm,bool*ok,bool*saveit)
*/
-bool SslTrustPrompt_impl::sslTrust(const QString&host,const QString&fingerprint,const QString&validFrom,const QString&validUntil,const QString&issuerName,const QString&realm,const QStringList&reasons,bool*ok,bool*saveit)
+bool SslTrustPrompt_impl::sslTrust(const TQString&host,const TQString&fingerprint,const TQString&validFrom,const TQString&validUntil,const TQString&issuerName,const TQString&realm,const TQStringList&reasons,bool*ok,bool*saveit)
{
SslTrustPrompt_impl*ptr=0;
KDialogBase dlg(i18n("Trust ssl certificate"));
@@ -52,10 +52,10 @@ bool SslTrustPrompt_impl::sslTrust(const QString&host,const QString&fingerprint,
dlg.setButtonText(KDialogBase::No,i18n("Accept temporarily"));
dlg.setButtonCancel(KGuiItem(i18n("Reject")));
- static QString rb = "<tr><td>";
- static QString rs = "</td><td>";
- static QString re = "</td></tr>";
- QString text = "<html><body>";
+ static TQString rb = "<tr><td>";
+ static TQString rs = "</td><td>";
+ static TQString re = "</td></tr>";
+ TQString text = "<html><body>";
if (reasons.count()>0) {
text+="<p align=\"center\">";
text+="<h2>"+i18n("Failure reasons")+"</h2><hline>";
@@ -74,7 +74,7 @@ bool SslTrustPrompt_impl::sslTrust(const QString&host,const QString&fingerprint,
text+=rb+i18n("Fingerprint")+rs+fingerprint+re;
text+="</table></p></body></html>";
- QWidget* Dialog1Layout = dlg.makeVBoxMainWidget();
+ TQWidget* Dialog1Layout = dlg.makeVBoxMainWidget();
dlg.resize(dlg.configDialogSize(*(Kdesvnsettings::self()->config()),"trustssldlg"));
ptr = new SslTrustPrompt_impl(host,Dialog1Layout);
ptr->m_ContentText->setText(text);