diff options
Diffstat (limited to 'kmix/viewapplet.cpp')
-rw-r--r-- | kmix/viewapplet.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/kmix/viewapplet.cpp b/kmix/viewapplet.cpp index c4edbfb0..3948e60e 100644 --- a/kmix/viewapplet.cpp +++ b/kmix/viewapplet.cpp @@ -21,9 +21,9 @@ #include "viewapplet.h" // Qt -#include <qwidget.h> -#include <qlayout.h> -#include <qsize.h> +#include <tqwidget.h> +#include <tqlayout.h> +#include <tqsize.h> // KDE #include <kactioncollection.h> @@ -36,13 +36,13 @@ #include "mdwslider.h" #include "mixer.h" -ViewApplet::ViewApplet(QWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KPanelApplet::Position position ) - : ViewBase(parent, name, QString::null, mixer, WStyle_Customize|WStyle_NoBorder, vflags) +ViewApplet::ViewApplet(TQWidget* parent, const char* name, Mixer* mixer, ViewBase::ViewFlags vflags, KPanelApplet::Position position ) + : ViewBase(parent, name, TQString::null, mixer, WStyle_Customize|WStyle_NoBorder, vflags) { setBackgroundOrigin(AncestorOrigin); // remove the menu bar action, that is put by the "ViewBase" constructor in _actions. - //KToggleAction *m = static_cast<KToggleAction*>(KStdAction::showMenubar( this, SLOT(toggleMenuBarSlot()), _actions )); - _actions->remove( KStdAction::showMenubar(this, SLOT(toggleMenuBarSlot()), _actions) ); + //KToggleAction *m = static_cast<KToggleAction*>(KStdAction::showMenubar( this, TQT_SLOT(toggleMenuBarSlot()), _actions )); + _actions->remove( KStdAction::showMenubar(this, TQT_SLOT(toggleMenuBarSlot()), _actions) ); if ( position == KPanelApplet::pLeft || position == KPanelApplet::pRight ) { @@ -55,16 +55,16 @@ ViewApplet::ViewApplet(QWidget* parent, const char* name, Mixer* mixer, ViewBase } if ( _viewOrientation == Qt::Horizontal ) { - _layoutMDW = new QHBoxLayout( this ); - setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred); + _layoutMDW = new TQHBoxLayout( this ); + setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Preferred); } else { - _layoutMDW = new QVBoxLayout( this ); - setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + _layoutMDW = new TQVBoxLayout( this ); + setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed); } - //_layoutMDW->setResizeMode(QLayout::Fixed); + //_layoutMDW->setResizeMode(TQLayout::Fixed); init(); } @@ -98,7 +98,7 @@ int ViewApplet::advice() { -QWidget* ViewApplet::add(MixDevice *md) +TQWidget* ViewApplet::add(MixDevice *md) { /** Slider orientation is exactly the other way round. If the applet stretches horzontally, @@ -139,25 +139,25 @@ void ViewApplet::constructionFinished() { } -QSize ViewApplet::sizeHint() const { +TQSize ViewApplet::sizeHint() const { // Basically out main layout knows very good what the sizes should be - QSize qsz = _layoutMDW->sizeHint(); + TQSize qsz = _layoutMDW->sizeHint(); //kdDebug(67100) << "ViewApplet::sizeHint(): NewSize is " << qsz << "\n"; return qsz; } -QSizePolicy ViewApplet::sizePolicy() const { +TQSizePolicy ViewApplet::sizePolicy() const { if ( _viewOrientation == Qt::Horizontal ) { //kdDebug(67100) << "ViewApplet::sizePolicy=(Fixed,Expanding)\n"; - return QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding); + return TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding); } else { //kdDebug(67100) << "ViewApplet::sizePolicy=(Expanding,Fixed)\n"; - return QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); + return TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed); } } -bool ViewApplet::shouldShowIcons(QSize qsz) { +bool ViewApplet::shouldShowIcons(TQSize qsz) { bool showIcons = false; if ( _viewOrientation == Qt::Horizontal ) { if ( qsz.height() >= 32 ) { @@ -174,13 +174,13 @@ bool ViewApplet::shouldShowIcons(QSize qsz) { return showIcons; } -void ViewApplet::resizeEvent(QResizeEvent *qre) +void ViewApplet::resizeEvent(TQResizeEvent *qre) { //kdDebug(67100) << "ViewApplet::resizeEvent() size=" << qre->size() << "\n"; // decide whether we have to show or hide all icons bool showIcons = shouldShowIcons(qre->size()); - for ( QWidget *mdw = _mdws.first(); mdw != 0; mdw = _mdws.next() ) { + for ( TQWidget *mdw = _mdws.first(); mdw != 0; mdw = _mdws.next() ) { if ( mdw == 0 ) { kdError(67100) << "ViewApplet::resizeEvent(): mdw == 0\n"; break; // sanity check (normally the lists are set up correctly) @@ -194,7 +194,7 @@ void ViewApplet::resizeEvent(QResizeEvent *qre) } } // kdDebug(67100) << "ViewApplet::resizeEvent(). SHOULD resize _layoutMDW to " << qre->size() << endl; - //QWidget::resizeEvent(qre); + //TQWidget::resizeEvent(qre); // resizing changes our own sizeHint(), because we must take the new PanelSize in account. // So updateGeometry() is amust for us. @@ -205,7 +205,7 @@ void ViewApplet::resizeEvent(QResizeEvent *qre) void ViewApplet::refreshVolumeLevels() { //kdDebug(67100) << "ViewApplet::refreshVolumeLevels()\n"; - QWidget *mdw = _mdws.first(); + TQWidget *mdw = _mdws.first(); MixDevice* md; for ( md = _mixSet->first(); md != 0; md = _mixSet->next() ) { if ( mdw == 0 ) { |