From d8cc8bdfa7fa624a526d5aa1626974e1444cb799 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 19:21:21 +0000 Subject: 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 --- src/k3bmediaselectiondialog.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/k3bmediaselectiondialog.cpp') 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 -#include -#include +#include +#include -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" -- cgit v1.2.1