diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/konqhtml/policydlg.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/konqhtml/policydlg.cpp')
-rw-r--r-- | kcontrol/konqhtml/policydlg.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kcontrol/konqhtml/policydlg.cpp b/kcontrol/konqhtml/policydlg.cpp index 801068d3a..4f1529ed8 100644 --- a/kcontrol/konqhtml/policydlg.cpp +++ b/kcontrol/konqhtml/policydlg.cpp @@ -2,48 +2,48 @@ // (C) 2002 Leo Savernik <[email protected]> // Generalizing the policy dialog -#include <qlayout.h> -#include <qlabel.h> -#include <qwhatsthis.h> -#include <qcombobox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqwhatsthis.h> +#include <tqcombobox.h> #include <klocale.h> #include <kbuttonbox.h> #include <kmessagebox.h> -#include <qpushbutton.h> +#include <tqpushbutton.h> #include "policydlg.h" #include "policies.h" -PolicyDialog::PolicyDialog( Policies *policies, QWidget *parent, const char *name ) - : KDialogBase(parent, name, true, QString::null, Ok|Cancel, Ok, true), +PolicyDialog::PolicyDialog( Policies *policies, TQWidget *parent, const char *name ) + : KDialogBase(parent, name, true, TQString::null, Ok|Cancel, Ok, true), policies(policies) { - QFrame *main = makeMainWidget(); + TQFrame *main = makeMainWidget(); insertIdx = 1; // index where to insert additional panels - topl = new QVBoxLayout(main, 0, spacingHint()); + topl = new TQVBoxLayout(main, 0, spacingHint()); - QGridLayout *grid = new QGridLayout(topl, 2, 2); + TQGridLayout *grid = new TQGridLayout(topl, 2, 2); grid->setColStretch(1, 1); - QLabel *l = new QLabel(i18n("&Host or domain name:"), main); + TQLabel *l = new TQLabel(i18n("&Host or domain name:"), main); grid->addWidget(l, 0, 0); - le_domain = new QLineEdit(main); + le_domain = new TQLineEdit(main); l->setBuddy( le_domain ); grid->addWidget(le_domain, 0, 1); - connect( le_domain,SIGNAL(textChanged( const QString & )), - SLOT(slotTextChanged( const QString &))); + connect( le_domain,TQT_SIGNAL(textChanged( const TQString & )), + TQT_SLOT(slotTextChanged( const TQString &))); - QWhatsThis::add(le_domain, i18n("Enter the name of a host (like www.kde.org) " + TQWhatsThis::add(le_domain, i18n("Enter the name of a host (like www.kde.org) " "or a domain, starting with a dot (like .kde.org or .org)") ); - l_feature_policy = new QLabel(main); + l_feature_policy = new TQLabel(main); grid->addWidget(l_feature_policy, 1, 0); - cb_feature_policy = new QComboBox(main); + cb_feature_policy = new TQComboBox(main); l_feature_policy->setBuddy( cb_feature_policy ); policy_values << i18n("Use Global") << i18n("Accept") << i18n("Reject"); cb_feature_policy->insertStringList(policy_values); @@ -58,12 +58,12 @@ PolicyDialog::FeatureEnabledPolicy PolicyDialog::featureEnabledPolicy() const { return (FeatureEnabledPolicy)cb_feature_policy->currentItem(); } -void PolicyDialog::slotTextChanged( const QString &text) +void PolicyDialog::slotTextChanged( const TQString &text) { enableButtonOK(!text.isEmpty()); } -void PolicyDialog::setDisableEdit( bool state, const QString& text ) +void PolicyDialog::setDisableEdit( bool state, const TQString& text ) { le_domain->setText( text ); @@ -85,24 +85,24 @@ void PolicyDialog::refresh() { cb_feature_policy->setCurrentItem(pol); } -void PolicyDialog::setFeatureEnabledLabel(const QString &text) { +void PolicyDialog::setFeatureEnabledLabel(const TQString &text) { l_feature_policy->setText(text); } -void PolicyDialog::setFeatureEnabledWhatsThis(const QString &text) { - QWhatsThis::add(cb_feature_policy, text); +void PolicyDialog::setFeatureEnabledWhatsThis(const TQString &text) { + TQWhatsThis::add(cb_feature_policy, text); } -void PolicyDialog::addPolicyPanel(QWidget *panel) { +void PolicyDialog::addPolicyPanel(TQWidget *panel) { topl->insertWidget(insertIdx++,panel); } -QString PolicyDialog::featureEnabledPolicyText() const { +TQString PolicyDialog::featureEnabledPolicyText() const { int pol = cb_feature_policy->currentItem(); if (pol >= 0 && pol < 3) // Keep in sync with FeatureEnabledPolicy return policy_values[pol]; else - return QString::null; + return TQString::null; } void PolicyDialog::accept() @@ -122,7 +122,7 @@ void PolicyDialog::accept() } else { policies->setFeatureEnabled(true); } - QDialog::accept(); + TQDialog::accept(); } #include "policydlg.moc" |