summaryrefslogtreecommitdiffstats
path: root/kmix/mixdevice.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kmix/mixdevice.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;