summaryrefslogtreecommitdiffstats
path: root/kmix/mixdevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/mixdevice.cpp')
-rw-r--r--kmix/mixdevice.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmix/mixdevice.cpp b/kmix/mixdevice.cpp
index efa48184..d5c9f9c2 100644
--- a/kmix/mixdevice.cpp
+++ b/kmix/mixdevice.cpp
@@ -36,7 +36,7 @@
* Volume objects, one for Output (Playback volume) and one for Input (Record volume).
*/
MixDevice::MixDevice( int num, Volume &vol, bool recordable, bool mute,
- QString name, ChannelType type, DeviceCategory category ) :
+ TQString name, ChannelType type, DeviceCategory category ) :
_volume( vol ), _type( type ), _num( num ), _recordable( recordable ),
_mute( mute ), _category( category )
{
@@ -55,7 +55,7 @@ MixDevice::MixDevice( int num, Volume &vol, bool recordable, bool mute,
_switch = true;
}
-MixDevice::MixDevice(const MixDevice &md) : QObject()
+MixDevice::MixDevice(const MixDevice &md) : TQObject()
{
_name = md._name;
_volume = md._volume;
@@ -105,7 +105,7 @@ unsigned int MixDevice::enumId()
return _enumCurrentId;
}
-QPtrList<QString>& MixDevice::enumValues() {
+TQPtrList<TQString>& MixDevice::enumValues() {
return _enumValues;
}
@@ -116,11 +116,11 @@ void MixDevice::setVolume( int channel, int volume )
_volume.setVolume( (Volume::ChannelID)channel /* ARGH! */, volume );
}
-QString& MixDevice::getPK() {
+TQString& MixDevice::getPK() {
return _pk;
}
-void MixDevice::setPK(QString &PK) {
+void MixDevice::setPK(TQString &PK) {
_pk = PK;
// The key is used in the config file. It should not contain spaces
_pk.replace(' ', '_');
@@ -133,9 +133,9 @@ void MixDevice::setPK(QString &PK) {
* because we need to read the minimum and maximum volume levels.
* (Another solutien would be to "equip" volFromConfig with maxInt and minInt values).
*/
-void MixDevice::read( KConfig *config, const QString& grp )
+void MixDevice::read( KConfig *config, const TQString& grp )
{
- QString devgrp;
+ TQString devgrp;
devgrp.sprintf( "%s.Dev%i", grp.ascii(), _num );
config->setGroup( devgrp );
//kdDebug(67100) << "MixDevice::read() of group devgrp=" << devgrp << endl;
@@ -193,9 +193,9 @@ void MixDevice::read( KConfig *config, const QString& grp )
/**
* called on "kmixctrl --save" and from the GUI's (currently only on exit)
*/
-void MixDevice::write( KConfig *config, const QString& grp )
+void MixDevice::write( KConfig *config, const TQString& grp )
{
- QString devgrp;
+ TQString devgrp;
devgrp.sprintf( "%s.Dev%i", grp.ascii(), _num );
config->setGroup(devgrp);
// kdDebug(67100) << "MixDevice::write() of group devgrp=" << devgrp << endl;