summaryrefslogtreecommitdiffstats
path: root/kmix/kmixtoolbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/kmixtoolbox.cpp')
-rw-r--r--kmix/kmixtoolbox.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kmix/kmixtoolbox.cpp b/kmix/kmixtoolbox.cpp
index d28e1858..02292a89 100644
--- a/kmix/kmixtoolbox.cpp
+++ b/kmix/kmixtoolbox.cpp
@@ -20,9 +20,9 @@
*/
-#include "qcolor.h"
-#include "qwidget.h"
-#include "qstring.h"
+#include "tqcolor.h"
+#include "tqwidget.h"
+#include "tqstring.h"
//#include <kdebug.h>
#include <kglobalaccel.h>
@@ -44,16 +44,16 @@
This means: Shared GUI stuff goes into the KMixToolBox class , non-GUI stuff goes
into the MixerToolBox class.
***********************************************************************************/
-void KMixToolBox::setIcons(QPtrList<QWidget> &mdws, bool on ) {
- for ( QWidget *qmdw=mdws.first(); qmdw!=0; qmdw=mdws.next() ) {
+void KMixToolBox::setIcons(TQPtrList<TQWidget> &mdws, bool on ) {
+ for ( TQWidget *qmdw=mdws.first(); qmdw!=0; qmdw=mdws.next() ) {
if ( qmdw->inherits("MixDeviceWidget") ) { // -<- play safe here
static_cast<MixDeviceWidget*>(qmdw)->setIcons( on );
}
}
}
-void KMixToolBox::setLabels(QPtrList<QWidget> &mdws, bool on ) {
- QWidget *qmdw;
+void KMixToolBox::setLabels(TQPtrList<TQWidget> &mdws, bool on ) {
+ TQWidget *qmdw;
for ( qmdw=mdws.first(); qmdw != 0; qmdw=mdws.next() ) {
if ( qmdw->inherits("MixDeviceWidget") ) { // -<- play safe here
static_cast<MixDeviceWidget*>(qmdw)->setLabeled( on );
@@ -61,8 +61,8 @@ void KMixToolBox::setLabels(QPtrList<QWidget> &mdws, bool on ) {
}
}
-void KMixToolBox::setTicks(QPtrList<QWidget> &mdws, bool on ) {
- QWidget *qmdw;
+void KMixToolBox::setTicks(TQPtrList<TQWidget> &mdws, bool on ) {
+ TQWidget *qmdw;
for ( qmdw=mdws.first(); qmdw != 0; qmdw=mdws.next() ) {
if ( qmdw->inherits("MixDeviceWidget") ) { // -<- in reality it is only in MDWSlider
static_cast<MixDeviceWidget*>(qmdw)->setTicks( on );
@@ -70,8 +70,8 @@ void KMixToolBox::setTicks(QPtrList<QWidget> &mdws, bool on ) {
}
}
-void KMixToolBox::setValueStyle(QPtrList<QWidget> &mdws, int vs ) {
- QWidget *qmdw;
+void KMixToolBox::setValueStyle(TQPtrList<TQWidget> &mdws, int vs ) {
+ TQWidget *qmdw;
for ( qmdw=mdws.first(); qmdw != 0; qmdw=mdws.next() ) {
if ( qmdw->inherits("MixDeviceWidget") ) { // -<- in reality it is only in MDWSlider
static_cast<MixDeviceWidget*>(qmdw)->setValueStyle( (MixDeviceWidget::ValueStyle) vs );
@@ -79,15 +79,15 @@ void KMixToolBox::setValueStyle(QPtrList<QWidget> &mdws, int vs ) {
}
}
-void KMixToolBox::loadConfig(QPtrList<QWidget> &mdws, KConfig *config, const QString &grp, const QString &viewPrefix) {
+void KMixToolBox::loadConfig(TQPtrList<TQWidget> &mdws, KConfig *config, const TQString &grp, const TQString &viewPrefix) {
int n = 0;
config->setGroup( grp );
int num = config->readNumEntry( viewPrefix + ".Devs", 0);
- for ( QWidget *qmdw=mdws.first(); qmdw!=0 && n<num; qmdw=mdws.next() ) {
+ for ( TQWidget *qmdw=mdws.first(); qmdw!=0 && n<num; qmdw=mdws.next() ) {
if ( qmdw->inherits("MixDeviceWidget") ) { // -<- play safe here
MixDeviceWidget* mdw = static_cast<MixDeviceWidget*>(qmdw);
- QString devgrp;
+ TQString devgrp;
/*
* Compatibility config loader! We use the old config group only, if the
@@ -116,7 +116,7 @@ void KMixToolBox::loadConfig(QPtrList<QWidget> &mdws, KConfig *config, const QSt
The name should have been set in the backend class, but we REALLY cannot do this for KDE3.5.x. !!
This issue will be fixed in KDE4 by the great config cleanup.
*/
- QString devgrpTmp(devgrp);
+ TQString devgrpTmp(devgrp);
devgrpTmp.append(".Capture");
if ( config->hasGroup(devgrpTmp) ) {
// Group for capture device exists => take over the name
@@ -145,7 +145,7 @@ void KMixToolBox::loadConfig(QPtrList<QWidget> &mdws, KConfig *config, const QSt
KGlobalAccel *keys=mdw->keys();
if ( keys )
{
- QString devgrpkeys;
+ TQString devgrpkeys;
devgrpkeys.sprintf( "%s.%s.Dev%i.keys", viewPrefix.ascii(), grp.ascii(), n );
//kdDebug(67100) << "KMixToolBox::loadConfig() load Keys " << devgrpkeys << endl;
@@ -161,16 +161,16 @@ void KMixToolBox::loadConfig(QPtrList<QWidget> &mdws, KConfig *config, const QSt
}
-void KMixToolBox::saveConfig(QPtrList<QWidget> &mdws, KConfig *config, const QString &grp, const QString &viewPrefix) {
+void KMixToolBox::saveConfig(TQPtrList<TQWidget> &mdws, KConfig *config, const TQString &grp, const TQString &viewPrefix) {
config->setGroup( grp );
config->writeEntry( viewPrefix + ".Devs", mdws.count() );
int n=0;
- for ( QWidget *qmdw=mdws.first(); qmdw!=0; qmdw=mdws.next() ) {
+ for ( TQWidget *qmdw=mdws.first(); qmdw!=0; qmdw=mdws.next() ) {
if ( qmdw->inherits("MixDeviceWidget") ) { // -<- play safe here
MixDeviceWidget* mdw = static_cast<MixDeviceWidget*>(qmdw);
- QString devgrp;
+ TQString devgrp;
devgrp.sprintf( "%s.%s.Dev%i", viewPrefix.ascii(), grp.ascii(), n );
if ( ! config->hasGroup(devgrp) ) {
// old-Style configuration (KMix2.1 and earlier => remove now unused group
@@ -202,7 +202,7 @@ void KMixToolBox::saveConfig(QPtrList<QWidget> &mdws, KConfig *config, const QSt
*/
KGlobalAccel *keys=mdw->keys();
if (keys) {
- QString devgrpkeys;
+ TQString devgrpkeys;
devgrpkeys.sprintf( "%s.%s.Dev%i.keys", viewPrefix.ascii(), grp.ascii(), n );
//kdDebug(67100) << "KMixToolBox::saveConfig() save Keys " << devgrpkeys << endl;
keys->setConfigGroup(devgrpkeys);