summaryrefslogtreecommitdiffstats
path: root/ksim/library/pluginmodule.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /ksim/library/pluginmodule.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/library/pluginmodule.cpp')
-rw-r--r--ksim/library/pluginmodule.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/ksim/library/pluginmodule.cpp b/ksim/library/pluginmodule.cpp
index f267197..b5cbd37 100644
--- a/ksim/library/pluginmodule.cpp
+++ b/ksim/library/pluginmodule.cpp
@@ -24,19 +24,19 @@
#include <kapplication.h>
#include <kaboutdata.h>
#include <kdebug.h>
-#include <qregexp.h>
-#include <qpopupmenu.h>
+#include <tqregexp.h>
+#include <tqpopupmenu.h>
#include <kconfig.h>
class KSim::PluginObject::Private
{
public:
- QCString name;
- QString configName;
+ TQCString name;
+ TQString configName;
};
-KSim::PluginObject::PluginObject(const QCString &name)
+KSim::PluginObject::PluginObject(const TQCString &name)
{
d = new PluginObject::Private;
d->name = name;
@@ -53,12 +53,12 @@ const char *KSim::PluginObject::instanceName() const
return kapp->aboutData()->appName();
}
-const QCString &KSim::PluginObject::name() const
+const TQCString &KSim::PluginObject::name() const
{
return d->name;
}
-void KSim::PluginObject::setConfigFileName(const QString &name)
+void KSim::PluginObject::setConfigFileName(const TQString &name)
{
if (d->configName == name)
return;
@@ -68,7 +68,7 @@ void KSim::PluginObject::setConfigFileName(const QString &name)
d->configName.prepend("ksim_");
}
-const QString &KSim::PluginObject::configFileName() const
+const TQString &KSim::PluginObject::configFileName() const
{
return d->configName;
}
@@ -81,7 +81,7 @@ class KSim::PluginPage::Private
};
KSim::PluginPage::PluginPage(KSim::PluginObject *parent, const char *name)
- : QWidget(0, name)
+ : TQWidget(0, name)
{
d = new PluginPage::Private;
d->parent = parent;
@@ -112,18 +112,18 @@ class KSim::PluginView::Private
{
public:
PluginObject *parent;
- QPopupMenu *popupMenu;
+ TQPopupMenu *popupMenu;
KConfig *config;
};
KSim::PluginView::PluginView(KSim::PluginObject *parent, const char *name)
- : QWidget(0, name)
+ : TQWidget(0, name)
{
d = new PluginView::Private;
d->parent = parent;
- d->popupMenu = new QPopupMenu(this);
+ d->popupMenu = new TQPopupMenu(this);
d->popupMenu->insertItem(i18n("About"), this,
- SLOT(showAbout()), 0, -1, 0);
+ TQT_SLOT(showAbout()), 0, -1, 0);
if (parent && !parent->configFileName().isEmpty())
d->config = new KConfig(parent->configFileName() + "rc");
@@ -147,7 +147,7 @@ KConfig *KSim::PluginView::config() const
return d->config;
}
-QPopupMenu *KSim::PluginView::menu() const
+TQPopupMenu *KSim::PluginView::menu() const
{
return d->popupMenu;
}
@@ -157,9 +157,9 @@ void KSim::PluginView::doCommand()
emit runCommand(name());
}
-void KSim::PluginView::mousePressEvent(QMouseEvent *ev)
+void KSim::PluginView::mousePressEvent(TQMouseEvent *ev)
{
- if (ev->button() == QMouseEvent::LeftButton)
+ if (ev->button() == TQMouseEvent::LeftButton)
doCommand();
}