diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kmix/kmixerwidget.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-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/kmixerwidget.cpp')
-rw-r--r-- | kmix/kmixerwidget.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kmix/kmixerwidget.cpp b/kmix/kmixerwidget.cpp index f75191a3..45fbbf31 100644 --- a/kmix/kmixerwidget.cpp +++ b/kmix/kmixerwidget.cpp @@ -20,12 +20,12 @@ // Qt -#include <qlabel.h> -#include <qlayout.h> -#include <qslider.h> -#include <qstring.h> -#include <qtooltip.h> -#include <qapplication.h> // for QApplication::revsreseLayout() +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqslider.h> +#include <tqstring.h> +#include <tqtooltip.h> +#include <tqapplication.h> // for TQApplication::revsreseLayout() // KDE #include <kconfig.h> @@ -55,10 +55,10 @@ (c) A balancing slider (d) A label containg the mixer name */ -KMixerWidget::KMixerWidget( int _id, Mixer *mixer, const QString &mixerName, +KMixerWidget::KMixerWidget( int _id, Mixer *mixer, const TQString &mixerName, MixDevice::DeviceCategory categoryMask, - QWidget * parent, const char * name, ViewBase::ViewFlags vflags ) - : QWidget( parent, name ), _mixer(mixer), m_balanceSlider(0), + TQWidget * parent, const char * name, ViewBase::ViewFlags vflags ) + : TQWidget( parent, name ), _mixer(mixer), m_balanceSlider(0), m_topLayout(0), m_id( _id ), _iconsEnabled( true ), _labelsEnabled( false ), _ticksEnabled( false ), @@ -76,12 +76,12 @@ KMixerWidget::KMixerWidget( int _id, Mixer *mixer, const QString &mixerName, { // No mixer found // !! Fix this: This is actually never shown! - QBoxLayout *layout = new QHBoxLayout( this ); - QString s = i18n("Invalid mixer"); + TQBoxLayout *layout = new TQHBoxLayout( this ); + TQString s = i18n("Invalid mixer"); if ( !mixerName.isEmpty() ) s.append(" \"").append(mixerName).append("\""); - QLabel *errorLabel = new QLabel( s, this ); - errorLabel->setAlignment( QLabel::AlignCenter | QLabel::WordBreak ); + TQLabel *errorLabel = new TQLabel( s, this ); + errorLabel->setAlignment( TQLabel::AlignCenter | TQLabel::WordBreak ); layout->addWidget( errorLabel ); } } @@ -104,7 +104,7 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags) } // create main layout - m_topLayout = new QVBoxLayout( this, 0, 3, "m_topLayout" ); + m_topLayout = new TQVBoxLayout( this, 0, 3, "m_topLayout" ); // Create tabs of input + output + [...] m_ioTab = new KTabWidget( this, "ioTab" ); @@ -131,15 +131,15 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags) // *** Lower part: Slider and Mixer Name ************************************************ - QHBoxLayout *balanceAndDetail = new QHBoxLayout( m_topLayout, 8, "balanceAndDetail"); + TQHBoxLayout *balanceAndDetail = new TQHBoxLayout( m_topLayout, 8, "balanceAndDetail"); // Create the left-right-slider - m_balanceSlider = new QSlider( -100, 100, 25, 0, QSlider::Horizontal, this, "RightLeft" ); - m_balanceSlider->setTickmarks( QSlider::Below ); + m_balanceSlider = new TQSlider( -100, 100, 25, 0, TQSlider::Horizontal, this, "RightLeft" ); + m_balanceSlider->setTickmarks( TQSlider::Below ); m_balanceSlider->setTickInterval( 25 ); m_balanceSlider->setMinimumSize( m_balanceSlider->sizeHint() ); m_balanceSlider->setFixedHeight( m_balanceSlider->sizeHint().height() ); - QLabel *mixerName = new QLabel(this, "mixerName"); + TQLabel *mixerName = new TQLabel(this, "mixerName"); mixerName->setText( _mixer->mixerName() ); balanceAndDetail->addSpacing( 10 ); @@ -148,8 +148,8 @@ void KMixerWidget::createLayout(ViewBase::ViewFlags vflags) balanceAndDetail->addWidget( mixerName ); balanceAndDetail->addSpacing( 10 ); - connect( m_balanceSlider, SIGNAL(valueChanged(int)), this, SLOT(balanceChanged(int)) ); - QToolTip::add( m_balanceSlider, i18n("Left/Right balancing") ); + connect( m_balanceSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(balanceChanged(int)) ); + TQToolTip::add( m_balanceSlider, i18n("Left/Right balancing") ); // --- "MenuBar" toggling from the various View's --- @@ -167,7 +167,7 @@ void KMixerWidget::possiblyAddView(ViewBase* vbase) _views.push_back(vbase); vbase ->createDeviceWidgets(); m_ioTab->addTab( vbase , vbase->caption() ); - connect( vbase, SIGNAL(toggleMenuBar()), parentWidget(), SLOT(toggleMenuBar()) ); + connect( vbase, TQT_SIGNAL(toggleMenuBar()), parentWidget(), TQT_SLOT(toggleMenuBar()) ); } } @@ -219,12 +219,12 @@ void KMixerWidget::setValueStyle( int vs ) /** * @todo : Is the view list already filled, when loadConfig() is called? */ -void KMixerWidget::loadConfig( KConfig *config, const QString &grp ) +void KMixerWidget::loadConfig( KConfig *config, const TQString &grp ) { for ( std::vector<ViewBase*>::iterator it = _views.begin(); it != _views.end(); it++) { ViewBase* mixerWidget = *it; - QString viewPrefix = "View."; + TQString viewPrefix = "View."; viewPrefix += mixerWidget->name(); KMixToolBox::loadConfig(mixerWidget->_mdws, config, grp, viewPrefix ); mixerWidget->configurationUpdate(); @@ -233,7 +233,7 @@ void KMixerWidget::loadConfig( KConfig *config, const QString &grp ) -void KMixerWidget::saveConfig( KConfig *config, const QString &grp ) +void KMixerWidget::saveConfig( KConfig *config, const TQString &grp ) { config->setGroup( grp ); // Write mixer name. It cannot be changed in the Mixer instance, @@ -242,7 +242,7 @@ void KMixerWidget::saveConfig( KConfig *config, const QString &grp ) for ( std::vector<ViewBase*>::iterator it = _views.begin(); it != _views.end(); it++) { ViewBase* mixerWidget = *it; - QString viewPrefix = "View."; + TQString viewPrefix = "View."; viewPrefix += mixerWidget->name(); KMixToolBox::saveConfig(mixerWidget->_mdws, config, grp, viewPrefix ); } // for all tabs @@ -257,7 +257,7 @@ void KMixerWidget::toggleMenuBarSlot() { // hack arround it before calling _mixer->setBalance() void KMixerWidget::balanceChanged(int balance) { - if (QApplication::reverseLayout()) + if (TQApplication::reverseLayout()) balance = -balance; _mixer->setBalance( balance ); |