summaryrefslogtreecommitdiffstats
path: root/kmix/viewswitches.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/viewswitches.cpp')
-rw-r--r--kmix/viewswitches.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmix/viewswitches.cpp b/kmix/viewswitches.cpp
index 6a5c96cc..15b555ac 100644
--- a/kmix/viewswitches.cpp
+++ b/kmix/viewswitches.cpp
@@ -21,8 +21,8 @@
#include "viewswitches.h"
-#include <qlayout.h>
-#include <qwidget.h>
+#include <tqlayout.h>
+#include <tqwidget.h>
#include <kdebug.h>
#include <klocale.h>
@@ -31,23 +31,23 @@
#include "mdwenum.h"
#include "mixer.h"
-ViewSwitches::ViewSwitches(QWidget* parent, const char* name, const QString & caption, Mixer* mixer, ViewBase::ViewFlags vflags)
+ViewSwitches::ViewSwitches(TQWidget* parent, const char* name, const TQString & caption, Mixer* mixer, ViewBase::ViewFlags vflags)
: ViewBase(parent, name, caption, mixer, 0, vflags)
{
// Create switch buttonGroup
if ( _vflags & ViewBase::Vertical ) {
- _layoutMDW = new QVBoxLayout(this);
- _layoutSwitch = new QVBoxLayout(_layoutMDW);
- _layoutEnum = new QVBoxLayout(_layoutMDW); // always vertical!
+ _layoutMDW = new TQVBoxLayout(this);
+ _layoutSwitch = new TQVBoxLayout(_layoutMDW);
+ _layoutEnum = new TQVBoxLayout(_layoutMDW); // always vertical!
}
else {
- _layoutMDW = new QHBoxLayout(this);
- _layoutSwitch = new QHBoxLayout(_layoutMDW);
+ _layoutMDW = new TQHBoxLayout(this);
+ _layoutSwitch = new TQHBoxLayout(_layoutMDW);
// Place enums right from the switches: This is done, so that there will be no
// ugly space on the left side, when no Switch is shown.
// Actually it is not really clear yet, why there is empty space at all: There are 0 items in
// the _layoutEnum, so it might be a sizeHint() or some other subtle layout issue.
- _layoutEnum = new QVBoxLayout(_layoutMDW);
+ _layoutEnum = new TQVBoxLayout(_layoutMDW);
}
init();
}
@@ -83,7 +83,7 @@ int ViewSwitches::advice() {
}
}
-QWidget* ViewSwitches::add(MixDevice *md)
+TQWidget* ViewSwitches::add(MixDevice *md)
{
MixDeviceWidget *mdw;
@@ -118,7 +118,7 @@ QWidget* ViewSwitches::add(MixDevice *md)
return mdw;
}
-QSize ViewSwitches::sizeHint() const {
+TQSize ViewSwitches::sizeHint() const {
//kdDebug(67100) << "ViewSwitches::sizeHint(): NewSize is " << _layoutMDW->sizeHint() << "\n";
return( _layoutMDW->sizeHint() );
}
@@ -129,7 +129,7 @@ void ViewSwitches::constructionFinished() {
void ViewSwitches::refreshVolumeLevels() {
//kdDebug(67100) << "ViewSwitches::refreshVolumeLevels()\n";
- QWidget *mdw = _mdws.first();
+ TQWidget *mdw = _mdws.first();
MixDevice* md;
for ( md = _mixSet->first(); md != 0; md = _mixSet->next() ) {
if ( mdw == 0 ) {
@@ -162,7 +162,7 @@ void ViewSwitches::refreshVolumeLevels() {
*/
void ViewSwitches::configurationUpdate() {
bool backGoundModeToggler = true;
- for (QWidget *qw = _mdws.first(); qw !=0; qw = _mdws.next() ) {
+ for (TQWidget *qw = _mdws.first(); qw !=0; qw = _mdws.next() ) {
if ( qw->inherits("MDWSwitch")) {
MixDeviceWidget* mdw = static_cast<MDWSwitch*>(qw);
if ( ! mdw->isDisabled() ) {