diff options
Diffstat (limited to 'kscd/docking.cpp')
-rw-r--r-- | kscd/docking.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kscd/docking.cpp b/kscd/docking.cpp index ca85b914..3759ab7b 100644 --- a/kscd/docking.cpp +++ b/kscd/docking.cpp @@ -38,13 +38,13 @@ #include <kdebug.h> -DockWidget::DockWidget( KSCD* tqparent, const char *name) - : KSystemTray( tqparent, name ) +DockWidget::DockWidget( KSCD* parent, const char *name) + : KSystemTray( parent, name ) { m_popup = 0; setPixmap( loadIcon("cdsmall") ); - KActionCollection* actionCollection = tqparent->actionCollection(); + KActionCollection* actionCollection = parent->actionCollection(); m_backAction = actionCollection->action("Previous"); m_forwardAction = actionCollection->action("Next"); m_backPix = loadIcon("player_start"); @@ -53,11 +53,11 @@ DockWidget::DockWidget( KSCD* tqparent, const char *name) // popup menu for right mouse button TQPopupMenu* popup = contextMenu(); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_play", KIcon::Small), i18n("Play/Pause"), tqparent, TQT_SLOT(playClicked())); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_stop", KIcon::Small), i18n("Stop"), tqparent, TQT_SLOT(stopClicked())); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_end", KIcon::Small), i18n("Next"), tqparent, TQT_SLOT(nextClicked())); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_start", KIcon::Small), i18n("Previous"), tqparent, TQT_SLOT(prevClicked())); - popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_eject", KIcon::Small), i18n("Eject"), tqparent, TQT_SLOT(ejectClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_play", KIcon::Small), i18n("Play/Pause"), parent, TQT_SLOT(playClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_stop", KIcon::Small), i18n("Stop"), parent, TQT_SLOT(stopClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_end", KIcon::Small), i18n("Next"), parent, TQT_SLOT(nextClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_start", KIcon::Small), i18n("Previous"), parent, TQT_SLOT(prevClicked())); + popup->insertItem(KGlobal::iconLoader()->loadIconSet("player_eject", KIcon::Small), i18n("Eject"), parent, TQT_SLOT(ejectClicked())); TQToolTip::add(this, kapp->aboutData()->programName()); } @@ -123,7 +123,7 @@ void DockWidget::wheelEvent(TQWheelEvent *e) if (e->orientation() ==Qt::Horizontal) return; - KSCD* kscd = dynamic_cast<KSCD*>(tqparent()); + KSCD* kscd = dynamic_cast<KSCD*>(parent()); if (kscd == 0) return; |