summaryrefslogtreecommitdiffstats
path: root/katapult/plugins/catalogs/execcatalog/execcatalog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'katapult/plugins/catalogs/execcatalog/execcatalog.cpp')
-rw-r--r--katapult/plugins/catalogs/execcatalog/execcatalog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/katapult/plugins/catalogs/execcatalog/execcatalog.cpp b/katapult/plugins/catalogs/execcatalog/execcatalog.cpp
index 177df77..78ef7af 100644
--- a/katapult/plugins/catalogs/execcatalog/execcatalog.cpp
+++ b/katapult/plugins/catalogs/execcatalog/execcatalog.cpp
@@ -29,8 +29,8 @@
#include <ksycocatype.h>
#include <kapplication.h>
-#include <qlineedit.h>
-#include <qlabel.h>
+#include <tqlineedit.h>
+#include <tqlabel.h>
#include "settings.h"
#include "execcatalog.h"
@@ -41,7 +41,7 @@
K_EXPORT_COMPONENT_FACTORY( katapult_execcatalog,
KGenericFactory<ExecCatalog>( "katapult_execcatalog" ) )
-ExecCatalog::ExecCatalog(QObject*, const char*, const QStringList&): _result(this, QString::null)
+ExecCatalog::ExecCatalog(TQObject*, const char*, const TQStringList&): _result(this, TQString())
{
ActionRegistry::self()->registerAction(new ActionRun());
}
@@ -52,8 +52,8 @@ ExecCatalog::~ExecCatalog()
void ExecCatalog::queryChanged()
{
- int newStatus = 0;
- QString cmd = query();
+ int newtqStatus = 0;
+ TQString cmd = query();
int origLength = cmd.length();
if (cmd.isEmpty()) {
@@ -67,15 +67,15 @@ void ExecCatalog::queryChanged()
//set status.
//add S_Multiple to make sure katapult doesn't auto-exec and close the window
//add S_Active to make sure katapult doesn't start the hideTimer or clearTimer
- newStatus = S_HasResults | S_Multiple | S_Active;
+ newtqStatus = S_HasResults | S_Multiple | S_Active;
} else {
- newStatus = 0;
+ newtqStatus = 0;
}
}
- setStatus(newStatus);
+ settqStatus(newtqStatus);
}
-bool ExecCatalog::accepts(const QString& str) const
+bool ExecCatalog::accepts(const TQString& str) const
{
//accept if we begin with the triggerWord
int length = _triggerWord.length();
@@ -92,21 +92,21 @@ void ExecCatalog::writeSettings(KConfigBase* config)
config->writeEntry("TriggerWord", _triggerWord);
}
-QWidget * ExecCatalog::configure()
+TQWidget * ExecCatalog::configure()
{
ExecCatalogSettings* settings = new ExecCatalogSettings();
settings->triggerWordLE->setText(_triggerWord);
- connect(settings->triggerWordLE, SIGNAL(textChanged(const QString&)), this, SLOT(triggerWordChanged(const QString&)));
+ connect(settings->triggerWordLE, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(triggerWordChanged(const TQString&)));
- settings->introLabel->setText(i18n("Use with \"%1 exec query\"").arg(_triggerWord));
+ settings->introLabel->setText(i18n("Use with \"%1 exec query\"").tqarg(_triggerWord));
return settings;
}
-void ExecCatalog::triggerWordChanged(const QString& triggerWord)
+void ExecCatalog::triggerWordChanged(const TQString& triggerWord)
{
- _triggerWord = QString(triggerWord);
+ _triggerWord = TQString(triggerWord);
}
int ExecCatalog::triggerWordLength()
@@ -116,7 +116,7 @@ int ExecCatalog::triggerWordLength()
void ExecCatalog::reset()
{
- _result.setText(QString::null);
+ _result.setText(TQString());
}
#include "execcatalog.moc"