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/misc/k3bdvdformattingdialog.cpp | 56 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'src/misc/k3bdvdformattingdialog.cpp') diff --git a/src/misc/k3bdvdformattingdialog.cpp b/src/misc/k3bdvdformattingdialog.cpp index d84c4fc..5289089 100644 --- a/src/misc/k3bdvdformattingdialog.cpp +++ b/src/misc/k3bdvdformattingdialog.cpp @@ -29,25 +29,25 @@ #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include -K3bDvdFormattingDialog::K3bDvdFormattingDialog( QWidget* parent, const char* name, bool modal ) - : K3bInteractionDialog( parent, name, +K3bDvdFormattingDialog::K3bDvdFormattingDialog( TQWidget* tqparent, const char* name, bool modal ) + : K3bInteractionDialog( tqparent, name, i18n("DVD Formatting"), - i18n("DVD%1RW").arg("±"), + i18n("DVD%1RW").tqarg("�"), START_BUTTON|CANCEL_BUTTON, START_BUTTON, "DVD Formatting", // config group modal ) { - QWidget* frame = mainWidget(); + TQWidget* frame = mainWidget(); m_writerSelectionWidget = new K3bWriterSelectionWidget( frame ); m_writerSelectionWidget->setWantedMediumType( K3bDevice::MEDIA_REWRITABLE_DVD ); @@ -58,20 +58,20 @@ K3bDvdFormattingDialog::K3bDvdFormattingDialog( QWidget* parent, const char* nam m_writerSelectionWidget->setSupportedWritingApps( K3b::DVD_RW_FORMAT ); m_writerSelectionWidget->setForceAutoSpeed(true); - QGroupBox* groupWritingMode = new QGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), frame ); - groupWritingMode->layout()->setMargin( marginHint() ); - groupWritingMode->layout()->setSpacing( spacingHint() ); + TQGroupBox* groupWritingMode = new TQGroupBox( 1, Qt::Vertical, i18n("Writing Mode"), frame ); + groupWritingMode->tqlayout()->setMargin( marginHint() ); + groupWritingMode->tqlayout()->setSpacing( spacingHint() ); m_writingModeWidget = new K3bWritingModeWidget( K3b::WRITING_MODE_INCR_SEQ|K3b::WRITING_MODE_RES_OVWR, groupWritingMode ); - QGroupBox* groupOptions = new QGroupBox( 2, Qt::Vertical, i18n("Settings"), frame ); - groupOptions->layout()->setMargin( marginHint() ); - groupOptions->layout()->setSpacing( spacingHint() ); - m_checkForce = new QCheckBox( i18n("Force"), groupOptions ); - m_checkQuickFormat = new QCheckBox( i18n("Quick format"), groupOptions ); + TQGroupBox* groupOptions = new TQGroupBox( 2, Qt::Vertical, i18n("Settings"), frame ); + groupOptions->tqlayout()->setMargin( marginHint() ); + groupOptions->tqlayout()->setSpacing( spacingHint() ); + m_checkForce = new TQCheckBox( i18n("Force"), groupOptions ); + m_checkQuickFormat = new TQCheckBox( i18n("Quick format"), groupOptions ); - QGridLayout* grid = new QGridLayout( frame ); + TQGridLayout* grid = new TQGridLayout( frame ); grid->setMargin( 0 ); grid->setSpacing( spacingHint() ); @@ -81,8 +81,8 @@ K3bDvdFormattingDialog::K3bDvdFormattingDialog( QWidget* parent, const char* nam grid->setRowStretch( 1, 1 ); - QToolTip::add( m_checkForce, i18n("Force formatting of empty DVDs") ); - QWhatsThis::add( m_checkForce, i18n("

If this option is checked K3b will format a " + TQToolTip::add( m_checkForce, i18n("Force formatting of empty DVDs") ); + TQWhatsThis::add( m_checkForce, i18n("

If this option is checked K3b will format a " "DVD-RW even if it is empty. It may also be used to " "force K3b to format a DVD+RW or a DVD-RW in restricted " "overwrite mode." @@ -92,16 +92,16 @@ K3bDvdFormattingDialog::K3bDvdFormattingDialog( QWidget* parent, const char* nam "just needs to be overwritten. The same applies to DVD-RW in " "restricted overwrite mode.") ); - QToolTip::add( m_checkQuickFormat, i18n("Try to perform quick formatting") ); - QWhatsThis::add( m_checkQuickFormat, i18n("

If this option is checked K3b will tell the writer " + TQToolTip::add( m_checkQuickFormat, i18n("Try to perform quick formatting") ); + TQWhatsThis::add( m_checkQuickFormat, i18n("

If this option is checked K3b will tell the writer " "to perform a quick format." "

Formatting a DVD-RW completely can take a very long " "time and some DVD writers perform a full format even if " "quick format is enabled." ) ); - connect( m_writerSelectionWidget, SIGNAL(writerChanged()), this, SLOT(slotWriterChanged()) ); - connect( m_writerSelectionWidget, SIGNAL(writerChanged(K3bDevice::Device*)), - m_writingModeWidget, SLOT(determineSupportedModesFromMedium(K3bDevice::Device*)) ); + connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged()), this, TQT_SLOT(slotWriterChanged()) ); + connect( m_writerSelectionWidget, TQT_SIGNAL(writerChanged(K3bDevice::Device*)), + m_writingModeWidget, TQT_SLOT(determineSupportedModesFromMedium(K3bDevice::Device*)) ); slotWriterChanged(); } @@ -128,7 +128,7 @@ void K3bDvdFormattingDialog::slotStartClicked() K3bJobProgressDialog d( kapp->mainWidget(), "formattingProgress", false ); - K3bDvdFormattingJob* job = new K3bDvdFormattingJob( &d, this ); + K3bDvdFormattingJob* job = new K3bDvdFormattingJob( &d, TQT_TQOBJECT(this) ); job->setDevice( m_writerSelectionWidget->writerDevice() ); job->setMode( m_writingModeWidget->writingMode() ); job->setForce( m_checkForce->isChecked() ); -- cgit v1.2.1