summaryrefslogtreecommitdiffstats
path: root/kmix/mdwenum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/mdwenum.cpp')
-rw-r--r--kmix/mdwenum.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kmix/mdwenum.cpp b/kmix/mdwenum.cpp
index 3cf0533e..35ec4de8 100644
--- a/kmix/mdwenum.cpp
+++ b/kmix/mdwenum.cpp
@@ -19,11 +19,11 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qcursor.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qobject.h>
-#include <qtooltip.h>
+#include <tqcursor.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqobject.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <kconfig.h>
@@ -46,22 +46,22 @@
*/
MDWEnum::MDWEnum(Mixer *mixer, MixDevice* md,
Qt::Orientation orientation,
- QWidget* parent, ViewBase* mw, const char* name) :
+ TQWidget* parent, ViewBase* mw, const char* name) :
MixDeviceWidget(mixer,md,false,orientation,parent,mw,name),
_label(0), _enumCombo(0), _layout(0)
{
// create actions (on _mdwActions, see MixDeviceWidget)
// KStdAction::showMenubar() is in MixDeviceWidget now
- new KToggleAction( i18n("&Hide"), 0, this, SLOT(setDisabled()), _mdwActions, "hide" );
- new KAction( i18n("C&onfigure Shortcuts..."), 0, this, SLOT(defineKeys()), _mdwActions, "keys" );
+ new KToggleAction( i18n("&Hide"), 0, this, TQT_SLOT(setDisabled()), _mdwActions, "hide" );
+ new KAction( i18n("C&onfigure Shortcuts..."), 0, this, TQT_SLOT(defineKeys()), _mdwActions, "keys" );
// create widgets
createWidgets();
/* !!! remove this for production version */
- m_keys->insert( "Next Value", i18n( "Next Value" ), QString::null,
- KShortcut(), KShortcut(), this, SLOT( nextEnumId() ) );
+ m_keys->insert( "Next Value", i18n( "Next Value" ), TQString::null,
+ KShortcut(), KShortcut(), this, TQT_SLOT( nextEnumId() ) );
installEventFilter( this ); // filter for popup
}
@@ -74,20 +74,20 @@ MDWEnum::~MDWEnum()
void MDWEnum::createWidgets()
{
if ( _orientation == Qt::Vertical ) {
- _layout = new QVBoxLayout( this );
+ _layout = new TQVBoxLayout( this );
_layout->setAlignment(Qt::AlignHCenter);
}
else {
- _layout = new QHBoxLayout( this );
+ _layout = new TQHBoxLayout( this );
_layout->setAlignment(Qt::AlignVCenter);
}
- QToolTip::add( this, m_mixdevice->name() );
+ TQToolTip::add( this, m_mixdevice->name() );
//this->setStretchFactor( _layout, 0 );
- //QSizePolicy qsp( QSizePolicy::Ignored, QSizePolicy::Maximum);
+ //TQSizePolicy qsp( TQSizePolicy::Ignored, TQSizePolicy::Maximum);
//_layout->setSizePolicy(qsp);
//_layout->setSpacing(KDialog::spacingHint());
- _label = new QLabel( m_mixdevice->name(), this);
+ _label = new TQLabel( m_mixdevice->name(), this);
_layout->addWidget(_label);
_label->setFixedHeight(_label->sizeHint().height());
_enumCombo = new KComboBox( FALSE, this, "mixerCombo" );
@@ -99,8 +99,8 @@ void MDWEnum::createWidgets()
// ------------ fill ComboBox end --------------
_layout->addWidget(_enumCombo);
_enumCombo->setFixedHeight(_enumCombo->sizeHint().height());
- connect( _enumCombo, SIGNAL( activated( int ) ), this, SLOT( setEnumId( int ) ) );
- QToolTip::add( _enumCombo, m_mixdevice->name() );
+ connect( _enumCombo, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( setEnumId( int ) ) );
+ TQToolTip::add( _enumCombo, m_mixdevice->name() );
//_layout->addSpacing( 4 );
}
@@ -123,17 +123,17 @@ void MDWEnum::showContextMenu()
KPopupMenu *menu = m_mixerwidget->getPopup();
- QPoint pos = QCursor::pos();
+ TQPoint pos = TQCursor::pos();
menu->popup( pos );
}
-QSize MDWEnum::sizeHint() const {
+TQSize MDWEnum::sizeHint() const {
if ( _layout != 0 ) {
return _layout->sizeHint();
}
else {
// layout not (yet) created
- return QWidget::sizeHint();
+ return TQWidget::sizeHint();
}
}
@@ -191,16 +191,16 @@ void MDWEnum::setDisabled( bool value ) {
* An event filter for the various QWidgets. We watch for Mouse press Events, so
* that we can popup the context menu.
*/
-bool MDWEnum::eventFilter( QObject* obj, QEvent* e )
+bool MDWEnum::eventFilter( TQObject* obj, TQEvent* e )
{
- if (e->type() == QEvent::MouseButtonPress) {
- QMouseEvent *qme = static_cast<QMouseEvent*>(e);
+ if (e->type() == TQEvent::MouseButtonPress) {
+ TQMouseEvent *qme = static_cast<TQMouseEvent*>(e);
if (qme->button() == Qt::RightButton) {
showContextMenu();
return true;
}
}
- return QWidget::eventFilter(obj,e);
+ return TQWidget::eventFilter(obj,e);
}
#include "mdwenum.moc"