summaryrefslogtreecommitdiffstats
path: root/lib/kross/main
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit04766b207afba7961d4d802313e426f5a2fbef63 (patch)
treec888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /lib/kross/main
parentb6edfe41c9395f2e20784cbf0e630af6426950a3 (diff)
downloadkoffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz
koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kross/main')
-rw-r--r--lib/kross/main/scriptguiclient.cpp16
-rw-r--r--lib/kross/main/scriptguiclient.h4
-rw-r--r--lib/kross/main/wdgscriptsmanager.cpp8
-rw-r--r--lib/kross/main/wdgscriptsmanager.h2
4 files changed, 15 insertions, 15 deletions
diff --git a/lib/kross/main/scriptguiclient.cpp b/lib/kross/main/scriptguiclient.cpp
index ebcf0b00..b3b29bda 100644
--- a/lib/kross/main/scriptguiclient.cpp
+++ b/lib/kross/main/scriptguiclient.cpp
@@ -44,15 +44,15 @@ namespace Kross { namespace Api {
{
public:
/**
- * The \a KXMLGUIClient that is tqparent of the \a ScriptGUIClient
+ * The \a KXMLGUIClient that is parent of the \a ScriptGUIClient
* instance.
*/
KXMLGUIClient* guiclient;
/**
- * The optional tqparent TQWidget widget.
+ * The optional parent TQWidget widget.
*/
- TQWidget* tqparent;
+ TQWidget* parent;
/**
* Map of \a ScriptActionCollection instances the \a ScriptGUIClient
@@ -63,15 +63,15 @@ namespace Kross { namespace Api {
}}
-ScriptGUIClient::ScriptGUIClient(KXMLGUIClient* guiclient, TQWidget* tqparent)
- : TQObject( tqparent )
+ScriptGUIClient::ScriptGUIClient(KXMLGUIClient* guiclient, TQWidget* parent)
+ : TQObject( parent )
, KXMLGUIClient( guiclient )
, d( new ScriptGUIClientPrivate() ) // initialize d-pointer class
{
krossdebug( TQString("ScriptGUIClient::ScriptGUIClient() Ctor") );
d->guiclient = guiclient;
- d->tqparent = tqparent;
+ d->parent = parent;
setInstance( ScriptGUIClient::instance() );
@@ -311,7 +311,7 @@ KURL ScriptGUIClient::openScriptFile(const TQString& caption)
KFileDialog* filedialog = new KFileDialog(
TQString(), // startdir
mimetypes.join(" "), // filter
- 0, // tqparent widget
+ 0, // parent widget
"ScriptGUIClientFileDialog", // name
true // modal
);
@@ -374,7 +374,7 @@ bool ScriptGUIClient::executeScriptAction(ScriptAction::Ptr action)
void ScriptGUIClient::showScriptManager()
{
- KDialogBase* dialog = new KDialogBase(d->tqparent, "", true, i18n("Scripts Manager"), KDialogBase::Close);
+ KDialogBase* dialog = new KDialogBase(d->parent, "", true, i18n("Scripts Manager"), KDialogBase::Close);
WdgScriptsManager* wsm = new WdgScriptsManager(this, dialog);
dialog->setMainWidget(wsm);
dialog->resize( TQSize(360, 320).expandedTo(dialog->tqminimumSizeHint()) );
diff --git a/lib/kross/main/scriptguiclient.h b/lib/kross/main/scriptguiclient.h
index af762720..a835d0a2 100644
--- a/lib/kross/main/scriptguiclient.h
+++ b/lib/kross/main/scriptguiclient.h
@@ -58,12 +58,12 @@ namespace Kross { namespace Api {
*
* \param guiclient The KXMLGUIClient this \a ScriptGUIClient
* is a child of.
- * \param tqparent The tqparent TQWidget. If defined TQt will handle
+ * \param parent The parent TQWidget. If defined TQt will handle
* freeing this \a ScriptGUIClient instance else the
* caller has to take care of freeing this instance
* if not needed any longer.
*/
- explicit ScriptGUIClient(KXMLGUIClient* guiclient, TQWidget* tqparent = 0);
+ explicit ScriptGUIClient(KXMLGUIClient* guiclient, TQWidget* parent = 0);
/**
* Destructor.
diff --git a/lib/kross/main/wdgscriptsmanager.cpp b/lib/kross/main/wdgscriptsmanager.cpp
index 781f344b..d3ab6277 100644
--- a/lib/kross/main/wdgscriptsmanager.cpp
+++ b/lib/kross/main/wdgscriptsmanager.cpp
@@ -87,7 +87,7 @@ class ListItem : public TQListViewItem
class ToolTip : public TQToolTip
{
public:
- ToolTip(KListView* tqparent) : TQToolTip(tqparent->viewport()), m_parent(tqparent) {}
+ ToolTip(KListView* parent) : TQToolTip(parent->viewport()), m_parent(parent) {}
virtual ~ToolTip () { remove(m_parent->viewport()); }
protected:
virtual void maybeTip(const TQPoint& p) {
@@ -114,8 +114,8 @@ class WdgScriptsManagerPrivate
//enum { LoadBtn = 0, UnloadBtn, InstallBtn, UninstallBtn, ExecBtn, NewStuffBtn };
};
-WdgScriptsManager::WdgScriptsManager(ScriptGUIClient* scr, TQWidget* tqparent, const char* name, WFlags fl )
- : WdgScriptsManagerBase(tqparent, name, fl)
+WdgScriptsManager::WdgScriptsManager(ScriptGUIClient* scr, TQWidget* parent, const char* name, WFlags fl )
+ : WdgScriptsManagerBase(parent, name, fl)
, d(new WdgScriptsManagerPrivate)
{
d->m_scripguiclient = scr;
@@ -254,7 +254,7 @@ void WdgScriptsManager::slotInstallScript()
KFileDialog* filedialog = new KFileDialog(
TQString(), // startdir
"*.tar.gz *.tgz *.bz2", // filter
- this, // tqparent widget
+ this, // parent widget
"WdgScriptsManagerInstallFileDialog", // name
true // modal
);
diff --git a/lib/kross/main/wdgscriptsmanager.h b/lib/kross/main/wdgscriptsmanager.h
index 34976373..596017ce 100644
--- a/lib/kross/main/wdgscriptsmanager.h
+++ b/lib/kross/main/wdgscriptsmanager.h
@@ -37,7 +37,7 @@ class WdgScriptsManager : public WdgScriptsManagerBase
Q_OBJECT
TQ_OBJECT
public:
- WdgScriptsManager(ScriptGUIClient* scr, TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0);
+ WdgScriptsManager(ScriptGUIClient* scr, TQWidget* parent = 0, const char* name = 0, WFlags fl = 0);
~WdgScriptsManager();
public slots:
void slotLoadScript();