summaryrefslogtreecommitdiffstats
path: root/src/kmplayer_koffice_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayer_koffice_part.cpp')
-rw-r--r--src/kmplayer_koffice_part.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kmplayer_koffice_part.cpp b/src/kmplayer_koffice_part.cpp
index b60f289..c32e829 100644
--- a/src/kmplayer_koffice_part.cpp
+++ b/src/kmplayer_koffice_part.cpp
@@ -60,7 +60,7 @@ public:
KMPlayerFactory ();
virtual ~KMPlayerFactory ();
virtual KParts::Part *createPartObject
- (TQWidget *wtqparent, const char *wname, TQObject *tqparent, const char *name,
+ (TQWidget *wparent, const char *wname, TQObject *parent, const char *name,
const char *className, const TQStringList &args);
static KInstance * instance () { return s_instance; }
private:
@@ -80,19 +80,19 @@ KMPlayerFactory::~KMPlayerFactory () {
}
KParts::Part *KMPlayerFactory::createPartObject
- (TQWidget *wtqparent, const char *wname,
- TQObject *tqparent, const char * name,
+ (TQWidget *wparent, const char *wname,
+ TQObject *parent, const char * name,
const char * cls, const TQStringList & args) {
if (strstr (cls, "KoDocument"))
- return new KOfficeMPlayer (wtqparent, wname, tqparent, name);
+ return new KOfficeMPlayer (wparent, wname, parent, name);
return 0L;
}
//-----------------------------------------------------------------------------
-KOfficeMPlayer::KOfficeMPlayer (TQWidget *parentWidget, const char *widgetName, TQObject* tqparent, const char* name, bool singleViewMode)
- : KoDocument (parentWidget, widgetName, tqparent, name, singleViewMode),
+KOfficeMPlayer::KOfficeMPlayer (TQWidget *parentWidget, const char *widgetName, TQObject* parent, const char* name, bool singleViewMode)
+ : KoDocument (parentWidget, widgetName, parent, name, singleViewMode),
m_config (new KConfig ("kmplayerrc")),
m_player (new KMPlayer (parentWidget, 0L, 0L, 0L, m_config))
{
@@ -144,16 +144,16 @@ TQDomDocument KOfficeMPlayer::saveXML() {
return doc;
}
-KoView* KOfficeMPlayer::createViewInstance (TQWidget* tqparent, const char* name) {
+KoView* KOfficeMPlayer::createViewInstance (TQWidget* parent, const char* name) {
kdDebug() << "KOfficeMPlayer::createViewInstance" << endl;
- return new KOfficeMPlayerView (this, tqparent);
+ return new KOfficeMPlayerView (this, parent);
}
-KOfficeMPlayerView::KOfficeMPlayerView (KOfficeMPlayer* part, TQWidget* tqparent, const char* name)
- : KoView (part, tqparent, name),
+KOfficeMPlayerView::KOfficeMPlayerView (KOfficeMPlayer* part, TQWidget* parent, const char* name)
+ : KoView (part, parent, name),
m_view (static_cast <KMPlayer::View*> (part->player ()->view ())) {
- kdDebug() << "KOfficeMPlayerView::KOfficeMPlayerView this:" << this << " tqparent:" << tqparent << endl;
- m_oldtqparent = static_cast <TQWidget*> (m_view->tqparent());
+ kdDebug() << "KOfficeMPlayerView::KOfficeMPlayerView this:" << this << " parent:" << parent << endl;
+ m_oldparent = static_cast <TQWidget*> (m_view->parent());
m_view->reparent (this, TQPoint (0, 0));
TQVBoxLayout * box = new TQVBoxLayout (this, 0, 0);
box->addWidget (m_view);
@@ -161,7 +161,7 @@ KOfficeMPlayerView::KOfficeMPlayerView (KOfficeMPlayer* part, TQWidget* tqparent
KOfficeMPlayerView::~KOfficeMPlayerView () {
kdDebug() << "KOfficeMPlayerView::~KOfficeMPlayerView this:" << this << endl;
- m_view->reparent (m_oldtqparent, TQPoint (0, 0));
+ m_view->reparent (m_oldparent, TQPoint (0, 0));
}
#include "kmplayer_koffice_part.moc"