diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /konq-plugins/validators | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konq-plugins/validators')
-rw-r--r-- | konq-plugins/validators/plugin_validators.cpp | 32 | ||||
-rw-r--r-- | konq-plugins/validators/plugin_validators.h | 8 | ||||
-rw-r--r-- | konq-plugins/validators/validatorsdialog.cpp | 48 | ||||
-rw-r--r-- | konq-plugins/validators/validatorsdialog.h | 24 |
4 files changed, 56 insertions, 56 deletions
diff --git a/konq-plugins/validators/plugin_validators.cpp b/konq-plugins/validators/plugin_validators.cpp index 69f07cd..f669308 100644 --- a/konq-plugins/validators/plugin_validators.cpp +++ b/konq-plugins/validators/plugin_validators.cpp @@ -44,8 +44,8 @@ static const KAboutData aboutdata("validatorsplugin", I18N_NOOP("Validate Web Pa K_EXPORT_COMPONENT_FACTORY( libvalidatorsplugin, PluginValidatorsFactory( &aboutdata ) ) -PluginValidators::PluginValidators( QObject* parent, const char* name, - const QStringList & ) +PluginValidators::PluginValidators( TQObject* parent, const char* name, + const TQStringList & ) : Plugin( parent, name ), m_configDialog(0), m_part(0) { setInstance(PluginValidatorsFactory::instance()); @@ -56,17 +56,17 @@ PluginValidators::PluginValidators( QObject* parent, const char* name, m_menu->insert( new KAction( i18n( "Validate &HTML" ), "htmlvalidator", 0, - this, SLOT(slotValidateHTML()), + this, TQT_SLOT(slotValidateHTML()), actionCollection(), "validateHTML") ); m_menu->insert( new KAction( i18n( "Validate &CSS" ), "cssvalidator", 0, - this, SLOT(slotValidateCSS()), + this, TQT_SLOT(slotValidateCSS()), actionCollection(), "validateCSS") ); m_menu->insert( new KAction( i18n( "Validate &Links" ), 0, - this, SLOT(slotValidateLinks()), + this, TQT_SLOT(slotValidateLinks()), actionCollection(), "validateLinks") ); m_menu->setEnabled( false ); @@ -75,15 +75,15 @@ PluginValidators::PluginValidators( QObject* parent, const char* name, { m_menu->insert( new KAction( i18n( "C&onfigure Validator..." ), "configure", 0, - this, SLOT(slotConfigure()), + this, TQT_SLOT(slotConfigure()), actionCollection(), "configure") ); m_part = static_cast<KHTMLPart *>( parent ); m_configDialog = new ValidatorsDialog( m_part->widget() ); setURLs(); - connect( m_part, SIGNAL(started(KIO::Job*)), this, - SLOT(slotStarted(KIO::Job*)) ); + connect( m_part, TQT_SIGNAL(started(KIO::Job*)), this, + TQT_SLOT(slotStarted(KIO::Job*)) ); } } @@ -143,8 +143,8 @@ void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl) // The parent is assumed to be a KHTMLPart if ( !parent()->inherits("KHTMLPart") ) { - QString title = i18n( "Cannot Validate Source" ); - QString text = i18n( "You cannot validate anything except web pages with " + TQString title = i18n( "Cannot Validate Source" ); + TQString text = i18n( "You cannot validate anything except web pages with " "this plugin." ); KMessageBox::sorry( 0, text, title ); @@ -157,8 +157,8 @@ void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl) KURL partUrl = m_part->url(); if ( !partUrl.isValid() ) // Just in case ;) { - QString title = i18n( "Malformed URL" ); - QString text = i18n( "The URL you entered is not valid, please " + TQString title = i18n( "Malformed URL" ); + TQString text = i18n( "The URL you entered is not valid, please " "correct it and try again." ); KMessageBox::sorry( 0, text, title ); return; @@ -167,8 +167,8 @@ void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl) if (partUrl.isLocalFile()) { if ( validatorUrl.isEmpty() ) { - QString title = i18n( "Upload Not Possible" ); - QString text = i18n( "Validating links is not possible for local " + TQString title = i18n( "Upload Not Possible" ); + TQString text = i18n( "Validating links is not possible for local " "files." ); KMessageBox::sorry( 0, text, title ); return; @@ -188,9 +188,9 @@ void PluginValidators::validateURL(const KURL &url, const KURL &uploadUrl) return; } // Set entered URL as a parameter - QString q = partUrl.url(); + TQString q = partUrl.url(); q = KURL::encode_string( q ); - QString p = "uri="; + TQString p = "uri="; p += q; validatorUrl.setQuery( p ); } diff --git a/konq-plugins/validators/plugin_validators.h b/konq-plugins/validators/plugin_validators.h index 448e77f..2363ddb 100644 --- a/konq-plugins/validators/plugin_validators.h +++ b/konq-plugins/validators/plugin_validators.h @@ -33,7 +33,7 @@ #include <klibloader.h> #include "validatorsdialog.h" -#include <qguardedptr.h> +#include <tqguardedptr.h> class KAction; class KURL; @@ -42,8 +42,8 @@ class PluginValidators : public KParts::Plugin { Q_OBJECT public: - PluginValidators( QObject* parent, const char* name, - const QStringList & ); + PluginValidators( TQObject* parent, const char* name, + const TQStringList & ); virtual ~PluginValidators(); public slots: @@ -57,7 +57,7 @@ private slots: private: KActionMenu *m_menu; - QGuardedPtr<ValidatorsDialog> m_configDialog; // | + TQGuardedPtr<ValidatorsDialog> m_configDialog; // | // +-> Order dependency. KHTMLPart* m_part; // | diff --git a/konq-plugins/validators/validatorsdialog.cpp b/konq-plugins/validators/validatorsdialog.cpp index 0c524e2..864de55 100644 --- a/konq-plugins/validators/validatorsdialog.cpp +++ b/konq-plugins/validators/validatorsdialog.cpp @@ -17,11 +17,11 @@ Boston, MA 02110-1301, USA. */ -#include <qlabel.h> -#include <qvbox.h> -#include <qgroupbox.h> -#include <qlayout.h> -#include <qcombobox.h> +#include <tqlabel.h> +#include <tqvbox.h> +#include <tqgroupbox.h> +#include <tqlayout.h> +#include <tqcombobox.h> #include <kconfig.h> #include <klocale.h> @@ -29,57 +29,57 @@ #include "validatorsdialog.h" #include "validatorsdialog.moc" -ValidatorsDialog::ValidatorsDialog(QWidget *parent, const char *name ) +ValidatorsDialog::ValidatorsDialog(TQWidget *parent, const char *name ) : KDialogBase( parent, name, false, i18n("Configure"), Ok|Cancel, Ok, true ) { setCaption(i18n("Configure Validating Servers")); setMinimumWidth(300); - QVBox *page = makeVBoxMainWidget (); + TQVBox *page = makeVBoxMainWidget (); - QGroupBox *tgroup = new QGroupBox( i18n("HTML/XML Validator"), page ); - QVBoxLayout *vlay = new QVBoxLayout( tgroup, spacingHint() ); + TQGroupBox *tgroup = new TQGroupBox( i18n("HTML/XML Validator"), page ); + TQVBoxLayout *vlay = new TQVBoxLayout( tgroup, spacingHint() ); vlay->addSpacing( fontMetrics().lineSpacing()); - vlay->addWidget(new QLabel( i18n("URL:"), tgroup)); + vlay->addWidget(new TQLabel( i18n("URL:"), tgroup)); - m_WWWValidatorCB = new QComboBox(true, tgroup); + m_WWWValidatorCB = new TQComboBox(true, tgroup); m_WWWValidatorCB->setDuplicatesEnabled(false); vlay->addWidget( m_WWWValidatorCB ); - vlay->addWidget(new QLabel( i18n("Upload:"), tgroup)); + vlay->addWidget(new TQLabel( i18n("Upload:"), tgroup)); - m_WWWValidatorUploadCB = new QComboBox(true, tgroup); + m_WWWValidatorUploadCB = new TQComboBox(true, tgroup); m_WWWValidatorUploadCB->setDuplicatesEnabled(false); vlay->addWidget( m_WWWValidatorUploadCB ); /// - QGroupBox *group2= new QGroupBox( i18n("CSS Validator"), page ); - QVBoxLayout *vlay2 = new QVBoxLayout( group2, spacingHint() ); + TQGroupBox *group2= new TQGroupBox( i18n("CSS Validator"), page ); + TQVBoxLayout *vlay2 = new TQVBoxLayout( group2, spacingHint() ); vlay2->addSpacing( fontMetrics().lineSpacing()); - vlay2->addWidget(new QLabel( i18n("URL:"), group2)); + vlay2->addWidget(new TQLabel( i18n("URL:"), group2)); - m_CSSValidatorCB = new QComboBox(true, group2); + m_CSSValidatorCB = new TQComboBox(true, group2); m_CSSValidatorCB->setDuplicatesEnabled(false); vlay2->addWidget( m_CSSValidatorCB ); - vlay2->addWidget(new QLabel( i18n("Upload:"), group2)); + vlay2->addWidget(new TQLabel( i18n("Upload:"), group2)); - m_CSSValidatorUploadCB = new QComboBox(true, group2); + m_CSSValidatorUploadCB = new TQComboBox(true, group2); m_CSSValidatorUploadCB->setDuplicatesEnabled(false); vlay2->addWidget( m_CSSValidatorUploadCB ); /// - QGroupBox *group3= new QGroupBox( i18n("Link Validator"), page ); - QVBoxLayout *vlay3 = new QVBoxLayout( group3, spacingHint() ); + TQGroupBox *group3= new TQGroupBox( i18n("Link Validator"), page ); + TQVBoxLayout *vlay3 = new TQVBoxLayout( group3, spacingHint() ); vlay3->addSpacing( fontMetrics().lineSpacing()); - vlay3->addWidget(new QLabel( i18n("URL:"), group3)); + vlay3->addWidget(new TQLabel( i18n("URL:"), group3)); - m_linkValidatorCB = new QComboBox(true, group3); + m_linkValidatorCB = new TQComboBox(true, group3); m_linkValidatorCB->setDuplicatesEnabled(false); vlay3->addWidget( m_linkValidatorCB ); @@ -129,7 +129,7 @@ void ValidatorsDialog::load() void ValidatorsDialog::save() { - QStringList strList; + TQStringList strList; for (int i = 0; i < m_WWWValidatorCB->count(); i++) { strList.append(m_WWWValidatorCB->text(i)); } diff --git a/konq-plugins/validators/validatorsdialog.h b/konq-plugins/validators/validatorsdialog.h index 79684f5..4fe9714 100644 --- a/konq-plugins/validators/validatorsdialog.h +++ b/konq-plugins/validators/validatorsdialog.h @@ -20,7 +20,7 @@ #ifndef __validatorsdialog_h #define __validatorsdialog_h -#include <qcombobox.h> +#include <tqcombobox.h> #include <kconfig.h> #include <kdialogbase.h> @@ -30,14 +30,14 @@ class ValidatorsDialog : public KDialogBase Q_OBJECT public: - ValidatorsDialog(QWidget *parent=0, const char *name=0 ); + ValidatorsDialog(TQWidget *parent=0, const char *name=0 ); ~ValidatorsDialog(); - const QString getWWWValidatorUrl() const {return m_WWWValidatorCB->currentText();} - const QString getCSSValidatorUrl() const {return m_CSSValidatorCB->currentText();} - const QString getWWWValidatorUploadUrl() const {return m_WWWValidatorUploadCB->currentText();} - const QString getCSSValidatorUploadUrl() const {return m_CSSValidatorUploadCB->currentText();} - const QString getLinkValidatorUrl() const {return m_linkValidatorCB->currentText();} + const TQString getWWWValidatorUrl() const {return m_WWWValidatorCB->currentText();} + const TQString getCSSValidatorUrl() const {return m_CSSValidatorCB->currentText();} + const TQString getWWWValidatorUploadUrl() const {return m_WWWValidatorUploadCB->currentText();} + const TQString getCSSValidatorUploadUrl() const {return m_CSSValidatorUploadCB->currentText();} + const TQString getLinkValidatorUrl() const {return m_linkValidatorCB->currentText();} protected slots: void slotOk(); @@ -47,11 +47,11 @@ class ValidatorsDialog : public KDialogBase void load(); void save(); - QComboBox *m_WWWValidatorCB; - QComboBox *m_WWWValidatorUploadCB; - QComboBox *m_CSSValidatorCB; - QComboBox *m_CSSValidatorUploadCB; - QComboBox *m_linkValidatorCB; + TQComboBox *m_WWWValidatorCB; + TQComboBox *m_WWWValidatorUploadCB; + TQComboBox *m_CSSValidatorCB; + TQComboBox *m_CSSValidatorUploadCB; + TQComboBox *m_linkValidatorCB; KConfig *m_config; }; |