summaryrefslogtreecommitdiffstats
path: root/kmix/dialogviewconfiguration.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/dialogviewconfiguration.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/dialogviewconfiguration.cpp')
-rw-r--r--kmix/dialogviewconfiguration.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kmix/dialogviewconfiguration.cpp b/kmix/dialogviewconfiguration.cpp
index f6c035e9..09e88d23 100644
--- a/kmix/dialogviewconfiguration.cpp
+++ b/kmix/dialogviewconfiguration.cpp
@@ -19,10 +19,10 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qptrlist.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqptrlist.h>
#include <kdebug.h>
#include <kdialogbase.h>
@@ -33,25 +33,25 @@
#include "mixdevice.h"
-DialogViewConfiguration::DialogViewConfiguration( QWidget*, ViewBase& view)
+DialogViewConfiguration::DialogViewConfiguration( TQWidget*, ViewBase& view)
: KDialogBase( Plain, i18n( "Configure" ), Ok|Cancel, Ok ),
_view(view)
{
- QPtrList<QWidget> &mdws = view._mdws;
- _layout = new QVBoxLayout(plainPage(),0,-1, "_layout" );
+ TQPtrList<TQWidget> &mdws = view._mdws;
+ _layout = new TQVBoxLayout(plainPage(),0,-1, "_layout" );
// kdDebug(67100) << "DialogViewConfiguration::DialogViewConfiguration add header" << "\n";
- QLabel* qlb = new QLabel( i18n("Configure"), plainPage() );
- //QLabel* qlb = new QLabel( i18n("Show"), plainPage() );
+ TQLabel* qlb = new TQLabel( i18n("Configure"), plainPage() );
+ //TQLabel* qlb = new TQLabel( i18n("Show"), plainPage() );
_layout->addWidget(qlb);
- for ( QWidget *qw = mdws.first(); qw != 0; qw = mdws.next())
+ for ( TQWidget *qw = mdws.first(); qw != 0; qw = mdws.next())
{
if ( qw->inherits("MixDeviceWidget") ) {
MixDeviceWidget *mdw = static_cast<MixDeviceWidget*>(qw);
- QString mdName = mdw->mixDevice()->name();
- mdName.replace('&', "&&"); // Quoting the '&' needed, to prevent QCheckBox creating an accelerator
- QCheckBox* cb = new QCheckBox( mdName, plainPage() );
+ TQString mdName = mdw->mixDevice()->name();
+ mdName.replace('&', "&&"); // Quoting the '&' needed, to prevent TQCheckBox creating an accelerator
+ TQCheckBox* cb = new TQCheckBox( mdName, plainPage() );
_qEnabledCB.append(cb);
cb->setChecked( !mdw->isDisabled() ); //mdw->isVisible() );
_layout->addWidget(cb);
@@ -59,7 +59,7 @@ DialogViewConfiguration::DialogViewConfiguration( QWidget*, ViewBase& view)
}
_layout->activate();
resize(_layout->sizeHint() );
- connect( this, SIGNAL(okClicked()) , this, SLOT(apply()) );
+ connect( this, TQT_SIGNAL(okClicked()) , this, TQT_SLOT(apply()) );
}
DialogViewConfiguration::~DialogViewConfiguration()
@@ -68,13 +68,13 @@ DialogViewConfiguration::~DialogViewConfiguration()
void DialogViewConfiguration::apply()
{
- QPtrList<QWidget> &mdws = _view._mdws;
+ TQPtrList<TQWidget> &mdws = _view._mdws;
// --- 2-Step Apply ---
// --- Step 1: Show and Hide Widgets ---
- QCheckBox *cb = _qEnabledCB.first();
- for ( QWidget *qw = mdws.first(); qw != 0; qw = mdws.next())
+ TQCheckBox *cb = _qEnabledCB.first();
+ for ( TQWidget *qw = mdws.first(); qw != 0; qw = mdws.next())
{
if ( qw->inherits("MixDeviceWidget") ) {
MixDeviceWidget *mdw = static_cast<MixDeviceWidget*>(qw);
@@ -93,7 +93,7 @@ void DialogViewConfiguration::apply()
_view.configurationUpdate();
}
-QSize DialogViewConfiguration::sizeHint() const {
+TQSize DialogViewConfiguration::sizeHint() const {
// kdDebug(67100) << "DialogViewConfiguration::sizeHint() is (100,500)\n";
return _layout->sizeHint();
}