diff options
Diffstat (limited to 'kmix/viewsurround.cpp')
-rw-r--r-- | kmix/viewsurround.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kmix/viewsurround.cpp b/kmix/viewsurround.cpp index 95e63405..02a7aace 100644 --- a/kmix/viewsurround.cpp +++ b/kmix/viewsurround.cpp @@ -22,9 +22,9 @@ #include "viewsurround.h" // Qt -#include <qlabel.h> -#include <qlayout.h> -#include <qwidget.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqwidget.h> // KDE #include <kdebug.h> @@ -39,21 +39,21 @@ * Demonstration verion of a "surround view" * Not really usable right now. */ -ViewSurround::ViewSurround(QWidget* parent, const char* name, const QString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) +ViewSurround::ViewSurround(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags) : ViewBase(parent, name, caption, mixer, WStyle_Customize|WStyle_NoBorder, vflags) { _mdSurroundFront = 0; _mdSurroundBack = 0; - _layoutMDW = new QHBoxLayout(this); + _layoutMDW = new TQHBoxLayout(this); _layoutMDW->setMargin(8); // Create switch buttonGroup if ( _vflags & ViewBase::Vertical ) { - _layoutSliders = new QVBoxLayout(_layoutMDW); + _layoutSliders = new TQVBoxLayout(_layoutMDW); } else { - _layoutSliders = new QHBoxLayout(_layoutMDW); + _layoutSliders = new TQHBoxLayout(_layoutMDW); } - _layoutSurround = new QGridLayout(_layoutMDW,3,5); + _layoutSurround = new TQGridLayout(_layoutMDW,3,5); // _layoutMDW->setMargin(8); init(); } @@ -99,7 +99,7 @@ int ViewSurround::advice() { } } -QWidget* ViewSurround::add(MixDevice *md) +TQWidget* ViewSurround::add(MixDevice *md) { bool small = false; Qt::Orientation orientation = Qt::Vertical; @@ -162,18 +162,18 @@ QWidget* ViewSurround::add(MixDevice *md) return mdw; } -QSize ViewSurround::sizeHint() const { +TQSize ViewSurround::sizeHint() const { // kdDebug(67100) << "ViewSurround::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n"; return( _layoutMDW->sizeHint() ); } void ViewSurround::constructionFinished() { - QLabel* personLabel = new QLabel("Listener", this); - QPixmap icon = UserIcon( "Listener" ); + TQLabel* personLabel = new TQLabel("Listener", this); + TQPixmap icon = UserIcon( "Listener" ); if ( ! icon.isNull()) personLabel->setPixmap(icon); personLabel->setLineWidth( 4 ); personLabel->setMidLineWidth( 3 ); - personLabel->setFrameStyle( QFrame::Panel | QFrame::Sunken ); + personLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); int rowOfSpeaker = 0; if ( _mdSurroundBack != 0 ) { // let the speaker "sit" in the rear of the room, if there is @@ -187,12 +187,12 @@ void ViewSurround::constructionFinished() { _layoutSurround->addWidget(mdw,0,4, Qt::AlignBottom | Qt::AlignRight); _mdws.append(mdw); - QLabel* speakerIcon = new QLabel("Speaker", this); + TQLabel* speakerIcon = new TQLabel("Speaker", this); icon = UserIcon( "SpeakerFrontLeft" ); if ( ! icon.isNull()) speakerIcon->setPixmap(icon); _layoutSurround->addWidget(speakerIcon,0,1, Qt::AlignTop | Qt::AlignLeft); - speakerIcon = new QLabel("Speaker", this); + speakerIcon = new TQLabel("Speaker", this); icon = UserIcon( "SpeakerFrontRight" ); if ( ! icon.isNull()) speakerIcon->setPixmap(icon); _layoutSurround->addWidget(speakerIcon,0,3, Qt::AlignTop | Qt::AlignRight); @@ -204,12 +204,12 @@ void ViewSurround::constructionFinished() { _layoutSurround->addWidget(mdw,2,4, Qt::AlignTop | Qt::AlignRight); _mdws.append(mdw); - QLabel* speakerIcon = new QLabel("Speaker", this); + TQLabel* speakerIcon = new TQLabel("Speaker", this); icon = UserIcon( "SpeakerRearLeft" ); if ( ! icon.isNull()) speakerIcon->setPixmap(icon); _layoutSurround->addWidget(speakerIcon,2,1, Qt::AlignBottom | Qt::AlignLeft); - speakerIcon = new QLabel("Speaker", this); + speakerIcon = new TQLabel("Speaker", this); icon = UserIcon( "SpeakerRearRight" ); if ( ! icon.isNull()) speakerIcon->setPixmap(icon); _layoutSurround->addWidget(speakerIcon,2,3, Qt::AlignBottom | Qt::AlignRight); @@ -228,7 +228,7 @@ void ViewSurround::constructionFinished() { void ViewSurround::refreshVolumeLevels() { // kdDebug(67100) << "ViewSurround::refreshVolumeLevels()\n"; - QWidget *mdw = _mdws.first(); + TQWidget *mdw = _mdws.first(); MixDevice* md; for ( md = _mixSet->first(); md != 0; md = _mixSet->next() ) { if ( mdw == 0 ) { |