diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 19:21:21 +0000 |
commit | d8cc8bdfa7fa624a526d5aa1626974e1444cb799 (patch) | |
tree | f295f1c545b319963d5357af79fe08991d8141d9 /src/k3bmediaselectiondialog.cpp | |
parent | 2a39a080579fb52a2599c02b2939795385b89093 (diff) | |
download | k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.tar.gz k3b-d8cc8bdfa7fa624a526d5aa1626974e1444cb799.zip |
TQt4 port k3b
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/k3bmediaselectiondialog.cpp')
-rw-r--r-- | src/k3bmediaselectiondialog.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/k3bmediaselectiondialog.cpp b/src/k3bmediaselectiondialog.cpp index 3607297..d4aacf5 100644 --- a/src/k3bmediaselectiondialog.cpp +++ b/src/k3bmediaselectiondialog.cpp @@ -20,25 +20,25 @@ #include <klocale.h> -#include <qlayout.h> -#include <qlabel.h> +#include <tqlayout.h> +#include <tqlabel.h> -K3bMediaSelectionDialog::K3bMediaSelectionDialog( QWidget* parent, - const QString& title, - const QString& text, +K3bMediaSelectionDialog::K3bMediaSelectionDialog( TQWidget* tqparent, + const TQString& title, + const TQString& text, bool modal ) : KDialogBase( KDialogBase::Plain, title.isEmpty() ? i18n("Medium Selection") : title, Ok|Cancel, Ok, - parent, + tqparent, 0, modal ) { - QGridLayout* lay = new QGridLayout( plainPage() ); + TQGridLayout* lay = new TQGridLayout( plainPage() ); - QLabel* label = new QLabel( text.isEmpty() ? i18n("Please select a medium:") : text, plainPage() ); + TQLabel* label = new TQLabel( text.isEmpty() ? i18n("Please select a medium:") : text, plainPage() ); m_combo = new K3bMediaSelectionComboBox( plainPage() ); // lay->setMargin( marginHint() ); @@ -47,8 +47,8 @@ K3bMediaSelectionDialog::K3bMediaSelectionDialog( QWidget* parent, lay->addWidget( m_combo, 1, 0 ); lay->setRowStretch( 2, 1 ); - connect( m_combo, SIGNAL(selectionChanged(K3bDevice::Device*)), - this, SLOT(slotSelectionChanged(K3bDevice::Device*)) ); + connect( m_combo, TQT_SIGNAL(selectionChanged(K3bDevice::Device*)), + this, TQT_SLOT(slotSelectionChanged(K3bDevice::Device*)) ); slotSelectionChanged( m_combo->selectedDevice() ); } @@ -90,11 +90,11 @@ void K3bMediaSelectionDialog::slotSelectionChanged( K3bDevice::Device* dev ) K3bDevice::Device* K3bMediaSelectionDialog::selectMedium( int type, int state, int content, - QWidget* parent, - const QString& title, const QString& text, + TQWidget* tqparent, + const TQString& title, const TQString& text, bool* canceled ) { - K3bMediaSelectionDialog dlg( parent, title, text ); + K3bMediaSelectionDialog dlg( tqparent, title, text ); dlg.setWantedMediumType( type ); dlg.setWantedMediumState( state ); dlg.setWantedMediumContent( content ); @@ -117,11 +117,11 @@ K3bDevice::Device* K3bMediaSelectionDialog::selectMedium( int type, int state, i K3bDevice::Device* K3bMediaSelectionDialog::selectMedium( int type, int state, - QWidget* parent, - const QString& title, const QString& text, + TQWidget* tqparent, + const TQString& title, const TQString& text, bool* canceled ) { - return selectMedium( type, state, K3bMedium::CONTENT_ALL, parent, title, text, canceled ); + return selectMedium( type, state, K3bMedium::CONTENT_ALL, tqparent, title, text, canceled ); } #include "k3bmediaselectiondialog.moc" |