summaryrefslogtreecommitdiffstats
path: root/ksim/library/pluginmodule.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /ksim/library/pluginmodule.cpp
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/library/pluginmodule.cpp')
-rw-r--r--ksim/library/pluginmodule.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/ksim/library/pluginmodule.cpp b/ksim/library/pluginmodule.cpp
index b5cbd37..7dff303 100644
--- a/ksim/library/pluginmodule.cpp
+++ b/ksim/library/pluginmodule.cpp
@@ -64,7 +64,7 @@ void KSim::PluginObject::setConfigFileName(const TQString &name)
return;
d->configName = name;
- if (name.find("ksim") == -1)
+ if (name.tqfind("ksim") == -1)
d->configName.prepend("ksim_");
}
@@ -77,19 +77,19 @@ class KSim::PluginPage::Private
{
public:
KConfig *config;
- KSim::PluginObject *parent;
+ KSim::PluginObject *tqparent;
};
-KSim::PluginPage::PluginPage(KSim::PluginObject *parent, const char *name)
+KSim::PluginPage::PluginPage(KSim::PluginObject *tqparent, const char *name)
: TQWidget(0, name)
{
d = new PluginPage::Private;
- d->parent = parent;
- if (parent && !parent->configFileName().isEmpty())
- d->config = new KConfig(parent->configFileName() + "rc");
+ d->tqparent = tqparent;
+ if (tqparent && !tqparent->configFileName().isEmpty())
+ d->config = new KConfig(tqparent->configFileName() + "rc");
else {
kdWarning() << className() << ": Can not create the config() "
- "pointer due to the parent being null" << endl;
+ "pointer due to the tqparent being null" << endl;
d->config = 0;
}
}
@@ -111,25 +111,25 @@ KConfig *KSim::PluginPage::config() const
class KSim::PluginView::Private
{
public:
- PluginObject *parent;
+ PluginObject *tqparent;
TQPopupMenu *popupMenu;
KConfig *config;
};
-KSim::PluginView::PluginView(KSim::PluginObject *parent, const char *name)
+KSim::PluginView::PluginView(KSim::PluginObject *tqparent, const char *name)
: TQWidget(0, name)
{
d = new PluginView::Private;
- d->parent = parent;
+ d->tqparent = tqparent;
d->popupMenu = new TQPopupMenu(this);
d->popupMenu->insertItem(i18n("About"), this,
TQT_SLOT(showAbout()), 0, -1, 0);
- if (parent && !parent->configFileName().isEmpty())
- d->config = new KConfig(parent->configFileName() + "rc");
+ if (tqparent && !tqparent->configFileName().isEmpty())
+ d->config = new KConfig(tqparent->configFileName() + "rc");
else {
kdWarning() << className() << ": Can not create the config() "
- "pointer due to the parent being null" << endl;
+ "pointer due to the tqparent being null" << endl;
d->config = 0;
}
}
@@ -159,16 +159,16 @@ void KSim::PluginView::doCommand()
void KSim::PluginView::mousePressEvent(TQMouseEvent *ev)
{
- if (ev->button() == TQMouseEvent::LeftButton)
+ if (ev->button() == Qt::LeftButton)
doCommand();
}
-KSim::PluginObject *KSim::PluginView::parentPlugin() const
+KSim::PluginObject *KSim::PluginView::tqparentPlugin() const
{
- return d->parent;
+ return d->tqparent;
}
void KSim::PluginView::showAbout()
{
- parentPlugin()->showAbout();
+ tqparentPlugin()->showAbout();
}