summaryrefslogtreecommitdiffstats
path: root/kmix/viewdockareapopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/viewdockareapopup.cpp')
-rw-r--r--kmix/viewdockareapopup.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kmix/viewdockareapopup.cpp b/kmix/viewdockareapopup.cpp
index 0063313f..60289aad 100644
--- a/kmix/viewdockareapopup.cpp
+++ b/kmix/viewdockareapopup.cpp
@@ -22,12 +22,12 @@
#include "viewdockareapopup.h"
// Qt
-#include <qwidget.h>
-#include <qevent.h>
-#include <qlayout.h>
-#include <qframe.h>
-#include <qpushbutton.h>
-#include <qdatetime.h>
+#include <tqwidget.h>
+#include <tqevent.h>
+#include <tqlayout.h>
+#include <tqframe.h>
+#include <tqpushbutton.h>
+#include <tqdatetime.h>
// KDE
#include <kdebug.h>
@@ -43,18 +43,18 @@
// !! Do NOT remove or mask out "WType_Popup"
// Users will not be able to close the Popup without opening the KMix main window then.
// See Bug #93443, #96332 and #96404 for further details. -- esken
-ViewDockAreaPopup::ViewDockAreaPopup(QWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW )
- : ViewBase(parent, name, QString::null, mixer, WStyle_Customize | WType_Popup | Qt::WStyle_DialogBorder, vflags), _mdw(0), _dock(dockW)
+ViewDockAreaPopup::ViewDockAreaPopup(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KMixDockWidget *dockW )
+ : ViewBase(parent, name, TQString::null, mixer, WStyle_Customize | WType_Popup | Qt::WStyle_DialogBorder, vflags), _mdw(0), _dock(dockW)
{
- QBoxLayout *layout = new QHBoxLayout( this );
- _frame = new QFrame( this );
+ TQBoxLayout *layout = new TQHBoxLayout( this );
+ _frame = new TQFrame( this );
layout->addWidget( _frame );
- _frame->setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
+ _frame->setFrameStyle( TQFrame::PopupPanel | TQFrame::Raised );
_frame->setLineWidth( 1 );
- _layoutMDW = new QGridLayout( _frame, 1, 1, 2, 1, "KmixPopupLayout" );
- _hideTimer = new QTime();
+ _layoutMDW = new TQGridLayout( _frame, 1, 1, 2, 1, "KmixPopupLayout" );
+ _hideTimer = new TQTime();
init();
}
@@ -63,7 +63,7 @@ ViewDockAreaPopup::~ViewDockAreaPopup() {
-void ViewDockAreaPopup::mousePressEvent(QMouseEvent *)
+void ViewDockAreaPopup::mousePressEvent(TQMouseEvent *)
{
// kdDebug() << "Teste pres mouse" << endl;
/**
@@ -71,7 +71,7 @@ void ViewDockAreaPopup::mousePressEvent(QMouseEvent *)
This should work automatically, when the user clicks outside the bounds of this popup:
Alas - it does not work.
Why it does not work, I do not know: this->isPopup() returns "true", so Qt should
- properly take care of it in QWidget.
+ properly take care of it in TQWidget.
*/
if ( ! this->hasMouse() ) {
_hideTimer->start();
@@ -85,10 +85,10 @@ bool ViewDockAreaPopup::justHidden()
return _hideTimer->elapsed() < 300;
}
-void ViewDockAreaPopup::wheelEvent ( QWheelEvent * e ) {
+void ViewDockAreaPopup::wheelEvent ( TQWheelEvent * e ) {
// Pass wheel event from "border widget" to child
if ( _mdw != 0 ) {
- QApplication::sendEvent( _mdw, e);
+ TQApplication::sendEvent( _mdw, e);
}
}
@@ -118,7 +118,7 @@ void ViewDockAreaPopup::setMixSet(MixSet *)
_mixSet->append(_dockDevice);
}
-QWidget* ViewDockAreaPopup::add(MixDevice *md)
+TQWidget* ViewDockAreaPopup::add(MixDevice *md)
{
_mdw =
new MDWSlider(
@@ -131,13 +131,13 @@ QWidget* ViewDockAreaPopup::add(MixDevice *md)
_frame, // parent
0, // Is "NULL", so that there is no RMB-popup
_dockDevice->name().latin1() );
- _layoutMDW->addItem( new QSpacerItem( 5, 20 ), 0, 2 );
- _layoutMDW->addItem( new QSpacerItem( 5, 20 ), 0, 0 );
+ _layoutMDW->addItem( new TQSpacerItem( 5, 20 ), 0, 2 );
+ _layoutMDW->addItem( new TQSpacerItem( 5, 20 ), 0, 0 );
_layoutMDW->addWidget( _mdw, 0, 1 );
// Add button to show main panel
- _showPanelBox = new QPushButton( i18n("Mixer"), _frame, "MixerPanel" );
- connect ( _showPanelBox, SIGNAL( clicked() ), SLOT( showPanelSlot() ) );
+ _showPanelBox = new TQPushButton( i18n("Mixer"), _frame, "MixerPanel" );
+ connect ( _showPanelBox, TQT_SIGNAL( clicked() ), TQT_SLOT( showPanelSlot() ) );
_layoutMDW->addMultiCellWidget( _showPanelBox, 1, 1, 0, 2 );
return _mdw;
@@ -163,7 +163,7 @@ int ViewDockAreaPopup::advice() {
}
}
-QSize ViewDockAreaPopup::sizeHint() const {
+TQSize ViewDockAreaPopup::sizeHint() const {
// kdDebug(67100) << "ViewDockAreaPopup::sizeHint(): NewSize is " << _mdw->sizeHint() << "\n";
return( _mdw->sizeHint() );
}
@@ -181,7 +181,7 @@ void ViewDockAreaPopup::constructionFinished() {
void ViewDockAreaPopup::refreshVolumeLevels() {
// kdDebug(67100) << "ViewDockAreaPopup::refreshVolumeLevels()\n";
- QWidget* mdw = _mdws.first();
+ TQWidget* mdw = _mdws.first();
if ( mdw == 0 ) {
kdError(67100) << "ViewDockAreaPopup::refreshVolumeLevels(): mdw == 0\n";
// sanity check (normally the lists are set up correctly)