diff options
Diffstat (limited to 'kmix/viewbase.cpp')
-rw-r--r-- | kmix/viewbase.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kmix/viewbase.cpp b/kmix/viewbase.cpp index 97816534..5d23860d 100644 --- a/kmix/viewbase.cpp +++ b/kmix/viewbase.cpp @@ -22,8 +22,8 @@ #include "viewbase.h" // QT -#include <qlabel.h> -#include <qcursor.h> +#include <tqlabel.h> +#include <tqcursor.h> // KDE #include <kaction.h> @@ -37,8 +37,8 @@ #include "mixer.h" -ViewBase::ViewBase(QWidget* parent, const char* name, const QString & caption, Mixer* mixer, WFlags f, ViewBase::ViewFlags vflags) - : QWidget(parent, name, f), _vflags(vflags), _caption(caption) +ViewBase::ViewBase(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, WFlags f, ViewBase::ViewFlags vflags) + : TQWidget(parent, name, f), _vflags(vflags), _caption(caption) { _mixer = mixer; _mixSet = new MixSet(); @@ -51,7 +51,7 @@ ViewBase::ViewBase(QWidget* parent, const char* name, const QString & caption, M // Plug in the "showMenubar" action, if the caller wants it. Typically this is only neccesary for views in the KMix main window. if ( vflags & ViewBase::HasMenuBar ) { - KToggleAction *m = static_cast<KToggleAction*>(KStdAction::showMenubar( this, SLOT(toggleMenuBarSlot()), _actions )); + KToggleAction *m = static_cast<KToggleAction*>(KStdAction::showMenubar( this, TQT_SLOT(toggleMenuBarSlot()), _actions )); if ( vflags & ViewBase::MenuBarVisible ) { m->setChecked(true); } @@ -59,8 +59,8 @@ ViewBase::ViewBase(QWidget* parent, const char* name, const QString & caption, M m->setChecked(false); } } - new KAction(i18n("&Channels"), 0, this, SLOT(configureView()), _actions, "toggle_channels"); - connect ( _mixer, SIGNAL(newVolumeLevels()), this, SLOT(refreshVolumeLevels()) ); + new KAction(i18n("&Channels"), 0, this, TQT_SLOT(configureView()), _actions, "toggle_channels"); + connect ( _mixer, TQT_SIGNAL(newVolumeLevels()), this, TQT_SLOT(refreshVolumeLevels()) ); } ViewBase::~ViewBase() { @@ -80,8 +80,8 @@ void ViewBase::setMixSet(MixSet *) /** * Dummy implementation for add(). */ -QWidget* ViewBase::add(MixDevice* mdw) { - QWidget* label = new QLabel( mdw->name(), this, mdw->name().latin1()); +TQWidget* ViewBase::add(MixDevice* mdw) { + TQWidget* label = new TQLabel( mdw->name(), this, mdw->name().latin1()); label->move(0, mdw->num()*12); return label; } @@ -102,7 +102,7 @@ void ViewBase::createDeviceWidgets() MixDevice *mixDevice; for ( mixDevice = _mixSet->first(); mixDevice != 0; mixDevice = _mixSet->next()) { - QWidget* mdw = add(mixDevice); + TQWidget* mdw = add(mixDevice); _mdws.append(mdw); } // allow view to "polish" itself @@ -110,7 +110,7 @@ void ViewBase::createDeviceWidgets() } // ---------- Popup stuff START --------------------- -void ViewBase::mousePressEvent( QMouseEvent *e ) +void ViewBase::mousePressEvent( TQMouseEvent *e ) { if ( e->button()==RightButton ) showContextMenu(); @@ -151,7 +151,7 @@ void ViewBase::showContextMenu() //kdDebug(67100) << "ViewBase::showContextMenu()" << endl; popupReset(); - QPoint pos = QCursor::pos(); + TQPoint pos = TQCursor::pos(); _popMenu->popup( pos ); } |