summaryrefslogtreecommitdiffstats
path: root/src/projects/k3bfillstatusdisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/projects/k3bfillstatusdisplay.cpp')
-rw-r--r--src/projects/k3bfillstatusdisplay.cpp220
1 files changed, 110 insertions, 110 deletions
diff --git a/src/projects/k3bfillstatusdisplay.cpp b/src/projects/k3bfillstatusdisplay.cpp
index 2d39bc7..b52782c 100644
--- a/src/projects/k3bfillstatusdisplay.cpp
+++ b/src/projects/k3bfillstatusdisplay.cpp
@@ -26,18 +26,18 @@
#include <k3bradioaction.h>
#include <k3bmediacache.h>
-#include <qevent.h>
-#include <qpainter.h>
-#include <qcolor.h>
-#include <qrect.h>
-#include <qfont.h>
-#include <qfontmetrics.h>
-#include <qvalidator.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
-#include <qtimer.h>
+#include <tqevent.h>
+#include <tqpainter.h>
+#include <tqcolor.h>
+#include <tqrect.h>
+#include <tqfont.h>
+#include <tqfontmetrics.h>
+#include <tqvalidator.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kpopupmenu.h>
@@ -67,12 +67,12 @@ public:
};
-K3bFillStatusDisplayWidget::K3bFillStatusDisplayWidget( K3bDoc* doc, QWidget* parent )
- : QWidget( parent, 0, WRepaintNoErase )
+K3bFillStatusDisplayWidget::K3bFillStatusDisplayWidget( K3bDoc* doc, TQWidget* tqparent )
+ : TQWidget( tqparent, 0, WRepaintNoErase )
{
d = new Private();
d->doc = doc;
- setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Preferred ) );
+ tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Preferred ) );
}
@@ -102,35 +102,35 @@ void K3bFillStatusDisplayWidget::setCdSize( const K3b::Msf& size )
}
-QSize K3bFillStatusDisplayWidget::sizeHint() const
+TQSize K3bFillStatusDisplayWidget::tqsizeHint() const
{
- return minimumSizeHint();
+ return tqminimumSizeHint();
}
-QSize K3bFillStatusDisplayWidget::minimumSizeHint() const
+TQSize K3bFillStatusDisplayWidget::tqminimumSizeHint() const
{
int margin = 2;
- QFontMetrics fm( font() );
- return QSize( -1, fm.height() + 2 * margin );
+ TQFontMetrics fm( font() );
+ return TQSize( -1, fm.height() + 2 * margin );
}
-void K3bFillStatusDisplayWidget::mousePressEvent( QMouseEvent* e )
+void K3bFillStatusDisplayWidget::mousePressEvent( TQMouseEvent* e )
{
if( e->button() == Qt::RightButton )
emit contextMenu( e->globalPos() );
}
-void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
+void K3bFillStatusDisplayWidget::paintEvent( TQPaintEvent* )
{
// double buffer
- QPixmap buffer( size() );
- buffer.fill( colorGroup().base() );
- QPainter p;
- p.begin( &buffer, this );
- p.setPen( Qt::black ); // we use a fixed bar color (which is not very nice btw, so we also fix the text color)
+ TQPixmap buffer( size() );
+ buffer.fill( tqcolorGroup().base() );
+ TQPainter p;
+ p.tqbegin( &buffer, TQT_TQOBJECT(this) );
+ p.setPen( TQt::black ); // we use a fixed bar color (which is not very nice btw, so we also fix the text color)
long long docSize;
long long cdSize;
@@ -152,19 +152,19 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// so split width() in maxValue pieces
double one = (double)rect().width() / (double)maxValue;
- QRect crect( rect() );
+ TQRect crect( rect() );
crect.setWidth( (int)(one*(double)docSize) );
p.setClipping(true);
p.setClipRect(crect);
- p.fillRect( crect, Qt::green );
+ p.fillRect( crect, TQt::green );
- QRect oversizeRect(crect);
+ TQRect oversizeRect(crect);
// draw yellow if cdSize - tolerance < docSize
if( docSize > cdSize - tolerance ) {
oversizeRect.setLeft( oversizeRect.left() + (int)(one * (cdSize - tolerance)) );
- p.fillRect( oversizeRect, Qt::yellow );
+ p.fillRect( oversizeRect, TQt::yellow );
KPixmap pix;
pix.resize( rect().height()*2, rect().height() );
KPixmapEffect::gradient( pix, green, yellow, KPixmapEffect::HorizontalGradient, 0 );
@@ -174,7 +174,7 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// draw red if docSize > cdSize + tolerance
if( docSize > cdSize + tolerance ) {
oversizeRect.setLeft( oversizeRect.left() + (int)(one * tolerance*2) );
- p.fillRect( oversizeRect, Qt::red );
+ p.fillRect( oversizeRect, TQt::red );
KPixmap pix;
pix.resize( rect().height()*2, rect().height() );
KPixmapEffect::gradient( pix, yellow, red, KPixmapEffect::HorizontalGradient, 0 );
@@ -190,25 +190,25 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// first we determine the text to display
// ====================================================================================
- QString docSizeText;
+ TQString docSizeText;
if( d->showTime )
docSizeText = d->doc->length().toString(false) + " " + i18n("min");
else
docSizeText = KIO::convertSize( d->doc->size() );
- QString overSizeText;
+ TQString overSizeText;
if( d->cdSize.mode1Bytes() >= d->doc->size() )
overSizeText = i18n("Available: %1 of %2")
- .arg( d->showTime
- ? i18n("%1 min").arg((K3b::Msf( cdSize*60*75 ) - d->doc->length()).toString(false))
- : KIO::convertSize( QMAX( (cdSize * 1024LL * 1024LL) - (long long)d->doc->size(), 0LL ) ) )
- .arg( d->showTime
- ? i18n("%1 min").arg(K3b::Msf( cdSize*60*75 ).toString(false))
+ .tqarg( d->showTime
+ ? i18n("%1 min").tqarg((K3b::Msf( cdSize*60*75 ) - d->doc->length()).toString(false))
+ : KIO::convertSize( TQMAX( (cdSize * 1024LL * 1024LL) - (long long)d->doc->size(), 0LL ) ) )
+ .tqarg( d->showTime
+ ? i18n("%1 min").tqarg(K3b::Msf( cdSize*60*75 ).toString(false))
: KIO::convertSizeFromKB( cdSize * 1024 ) );
else
overSizeText = i18n("Capacity exceeded by %1")
- .arg( d->showTime
- ? i18n("%1 min").arg( (d->doc->length() - K3b::Msf( cdSize*60*75 ) ).toString(false))
+ .tqarg( d->showTime
+ ? i18n("%1 min").tqarg( (d->doc->length() - K3b::Msf( cdSize*60*75 ) ).toString(false))
: KIO::convertSize( (long long)d->doc->size() - (cdSize * 1024LL * 1024LL) ) );
// ====================================================================================
@@ -234,18 +234,18 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// make sure the text does not cross the medium size marker
if( docSizeTextPos <= mediumSizeMarkerPos && mediumSizeMarkerPos <= docSizeTextPos + docSizeTextLength )
- docSizeTextPos = QMAX( crect.left() + 5, mediumSizeMarkerPos - docSizeTextLength - 5 );
+ docSizeTextPos = TQMAX( crect.left() + 5, mediumSizeMarkerPos - docSizeTextLength - 5 );
}
// ====================================================================================
// draw the over size text
// ====================================================================================
- QFont fnt(font());
- fnt.setPointSize( QMAX( 8, fnt.pointSize()-4 ) );
+ TQFont fnt(font());
+ fnt.setPointSize( TQMAX( 8, fnt.pointSize()-4 ) );
fnt.setBold(false);
- QRect overSizeTextRect( rect() );
- int overSizeTextLength = QFontMetrics(fnt).width(overSizeText);
+ TQRect overSizeTextRect( rect() );
+ int overSizeTextLength = TQFontMetrics(fnt).width(overSizeText);
if( overSizeTextLength + 5 > overSizeTextRect.width() - (int)(one*cdSize) ) {
// we don't have enough space on the right, so we paint to the left of the line
overSizeTextRect.setLeft( (int)(one*cdSize) - overSizeTextLength - 5 );
@@ -256,14 +256,14 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// make sure the two text do not overlap (this does not cover all cases though)
if( overSizeTextRect.left() < docSizeTextPos + docSizeTextLength )
- docSizeTextPos = QMAX( crect.left() + 5, QMIN( overSizeTextRect.left() - docSizeTextLength - 5, mediumSizeMarkerPos - docSizeTextLength - 5 ) );
+ docSizeTextPos = TQMAX( crect.left() + 5, TQMIN( overSizeTextRect.left() - docSizeTextLength - 5, mediumSizeMarkerPos - docSizeTextLength - 5 ) );
- QRect docTextRect( rect() );
+ TQRect docTextRect( rect() );
docTextRect.setLeft( docSizeTextPos );
- p.drawText( docTextRect, Qt::AlignLeft | Qt::AlignVCenter, docSizeText );
+ p.drawText( docTextRect, TQt::AlignLeft | TQt::AlignVCenter, docSizeText );
p.setFont(fnt);
- p.drawText( overSizeTextRect, Qt::AlignLeft | Qt::AlignVCenter, overSizeText );
+ p.drawText( overSizeTextRect, TQt::AlignLeft | TQt::AlignVCenter, overSizeText );
// ====================================================================================
p.end();
@@ -276,16 +276,16 @@ void K3bFillStatusDisplayWidget::paintEvent( QPaintEvent* )
// ----------------------------------------------------------------------------------------------------
-class K3bFillStatusDisplay::ToolTip : public QToolTip
+class K3bFillStatusDisplay::ToolTip : public TQToolTip
{
public:
- ToolTip( K3bDoc* doc, QWidget* parent )
- : QToolTip( parent, 0 ),
+ ToolTip( K3bDoc* doc, TQWidget* tqparent )
+ : TQToolTip( tqparent, 0 ),
m_doc(doc) {
}
- void maybeTip( const QPoint& ) {
- tip( parentWidget()->rect(),
+ void maybeTip( const TQPoint& ) {
+ tip( tqparentWidget()->rect(),
KIO::convertSize( m_doc->size() ) +
" (" + KGlobal::locale()->formatNumber( m_doc->size(), 0 ) + "), " +
m_doc->length().toString(false) + " " + i18n("min") +
@@ -316,7 +316,7 @@ public:
KPopupMenu* popup;
KPopupMenu* dvdPopup;
- QToolButton* buttonMenu;
+ TQToolButton* buttonMenu;
K3bFillStatusDisplayWidget* displayWidget;
@@ -325,12 +325,12 @@ public:
K3bDoc* doc;
- QTimer updateTimer;
+ TQTimer updateTimer;
};
-K3bFillStatusDisplay::K3bFillStatusDisplay( K3bDoc* doc, QWidget *parent, const char *name )
- : QFrame(parent,name)
+K3bFillStatusDisplay::K3bFillStatusDisplay( K3bDoc* doc, TQWidget *tqparent, const char *name )
+ : TQFrame(tqparent,name)
{
d = new Private;
d->doc = doc;
@@ -340,27 +340,27 @@ K3bFillStatusDisplay::K3bFillStatusDisplay( K3bDoc* doc, QWidget *parent, const
setFrameStyle( Panel | Sunken );
d->displayWidget = new K3bFillStatusDisplayWidget( doc, this );
-// d->buttonMenu = new QToolButton( this );
+// d->buttonMenu = new TQToolButton( this );
// d->buttonMenu->setIconSet( SmallIconSet("cdrom_unmount") );
// d->buttonMenu->setAutoRaise(true);
-// QToolTip::add( d->buttonMenu, i18n("Fill display properties") );
-// connect( d->buttonMenu, SIGNAL(clicked()), this, SLOT(slotMenuButtonClicked()) );
+// TQToolTip::add( d->buttonMenu, i18n("Fill display properties") );
+// connect( d->buttonMenu, TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(slotMenuButtonClicked()) );
- QGridLayout* layout = new QGridLayout( this );
- layout->setSpacing(5);
- layout->setMargin(frameWidth());
- layout->addWidget( d->displayWidget, 0, 0 );
- // layout->addWidget( d->buttonMenu, 0, 1 );
- layout->setColStretch( 0, 1 );
+ TQGridLayout* tqlayout = new TQGridLayout( this );
+ tqlayout->setSpacing(5);
+ tqlayout->setMargin(frameWidth());
+ tqlayout->addWidget( d->displayWidget, 0, 0 );
+ // tqlayout->addWidget( d->buttonMenu, 0, 1 );
+ tqlayout->setColStretch( 0, 1 );
setupPopupMenu();
showDvdSizes( false );
- connect( d->doc, SIGNAL(changed()), this, SLOT(slotDocChanged()) );
- connect( &d->updateTimer, SIGNAL(timeout()), this, SLOT(slotUpdateDisplay()) );
- connect( k3bappcore->mediaCache(), SIGNAL(mediumChanged(K3bDevice::Device*)),
- this, SLOT(slotMediumChanged(K3bDevice::Device*)) );
+ connect( d->doc, TQT_SIGNAL(changed()), TQT_TQOBJECT(this), TQT_SLOT(slotDocChanged()) );
+ connect( &d->updateTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(slotUpdateDisplay()) );
+ connect( k3bappcore->mediaCache(), TQT_SIGNAL(mediumChanged(K3bDevice::Device*)),
+ this, TQT_SLOT(slotMediumChanged(K3bDevice::Device*)) );
}
K3bFillStatusDisplay::~K3bFillStatusDisplay()
@@ -378,32 +378,32 @@ void K3bFillStatusDisplay::setupPopupMenu()
d->popup = new KPopupMenu( this, "popup" );
d->dvdPopup = new KPopupMenu( this, "dvdpopup" );
- d->actionShowMinutes = new KRadioAction( i18n("Minutes"), 0, this, SLOT(showTime()),
+ d->actionShowMinutes = new KRadioAction( i18n("Minutes"), 0, TQT_TQOBJECT(this), TQT_SLOT(showTime()),
d->actionCollection, "fillstatus_show_minutes" );
- d->actionShowMegs = new KRadioAction( i18n("Megabytes"), 0, this, SLOT(showSize()),
+ d->actionShowMegs = new KRadioAction( i18n("Megabytes"), 0, TQT_TQOBJECT(this), TQT_SLOT(showSize()),
d->actionCollection, "fillstatus_show_megabytes" );
d->actionShowMegs->setExclusiveGroup( "show_size_in" );
d->actionShowMinutes->setExclusiveGroup( "show_size_in" );
- d->actionAuto = new KRadioAction( i18n("Auto"), 0, this, SLOT(slotAutoSize()),
+ d->actionAuto = new KRadioAction( i18n("Auto"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotAutoSize()),
d->actionCollection, "fillstatus_auto" );
- d->action74Min = new KRadioAction( i18n("%1 MB").arg(650), 0, this, SLOT(slot74Minutes()),
+ d->action74Min = new KRadioAction( i18n("%1 MB").tqarg(650), 0, TQT_TQOBJECT(this), TQT_SLOT(slot74Minutes()),
d->actionCollection, "fillstatus_74minutes" );
- d->action80Min = new KRadioAction( i18n("%1 MB").arg(700), 0, this, SLOT(slot80Minutes()),
+ d->action80Min = new KRadioAction( i18n("%1 MB").tqarg(700), 0, TQT_TQOBJECT(this), TQT_SLOT(slot80Minutes()),
d->actionCollection, "fillstatus_80minutes" );
- d->action100Min = new KRadioAction( i18n("%1 MB").arg(880), 0, this, SLOT(slot100Minutes()),
+ d->action100Min = new KRadioAction( i18n("%1 MB").tqarg(880), 0, TQT_TQOBJECT(this), TQT_SLOT(slot100Minutes()),
d->actionCollection, "fillstatus_100minutes" );
- d->actionDvd4_7GB = new KRadioAction( KIO::convertSizeFromKB((int)(4.4*1024.0*1024.0)), 0, this, SLOT(slotDvd4_7GB()),
+ d->actionDvd4_7GB = new KRadioAction( KIO::convertSizeFromKB((int)(4.4*1024.0*1024.0)), 0, TQT_TQOBJECT(this), TQT_SLOT(slotDvd4_7GB()),
d->actionCollection, "fillstatus_dvd_4_7gb" );
d->actionDvdDoubleLayer = new KRadioAction( KIO::convertSizeFromKB((int)(8.0*1024.0*1024.0)),
- 0, this, SLOT(slotDvdDoubleLayer()),
+ 0, TQT_TQOBJECT(this), TQT_SLOT(slotDvdDoubleLayer()),
d->actionCollection, "fillstatus_dvd_double_layer" );
- d->actionCustomSize = new K3bRadioAction( i18n("Custom..."), 0, this, SLOT(slotCustomSize()),
+ d->actionCustomSize = new K3bRadioAction( i18n("Custom..."), 0, TQT_TQOBJECT(this), TQT_SLOT(slotCustomSize()),
d->actionCollection, "fillstatus_custom_size" );
d->actionCustomSize->setAlwaysEmitActivated(true);
d->actionDetermineSize = new K3bRadioAction( i18n("From Medium..."), "cdrom_unmount", 0,
- this, SLOT(slotDetermineSize()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotDetermineSize()),
d->actionCollection, "fillstatus_size_from_disk" );
d->actionDetermineSize->setAlwaysEmitActivated(true);
@@ -417,14 +417,14 @@ void K3bFillStatusDisplay::setupPopupMenu()
d->actionDetermineSize->setExclusiveGroup( "cd_size" );
d->actionLoadUserDefaults = new KAction( i18n("User Defaults"), "", 0,
- this, SLOT(slotLoadUserDefaults()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotLoadUserDefaults()),
d->actionCollection, "load_user_defaults" );
d->actionSaveUserDefaults = new KAction( i18n("Save User Defaults"), "", 0,
- this, SLOT(slotSaveUserDefaults()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotSaveUserDefaults()),
d->actionCollection, "save_user_defaults" );
KAction* dvdSizeInfoAction = new KAction( i18n("Why 4.4 instead of 4.7?"), "", 0,
- this, SLOT(slotWhy44()),
+ TQT_TQOBJECT(this), TQT_SLOT(slotWhy44()),
d->actionCollection, "why_44_gb" );
d->popup->insertTitle( i18n("Show Size In") );
@@ -452,7 +452,7 @@ void K3bFillStatusDisplay::setupPopupMenu()
d->actionLoadUserDefaults->plug( d->dvdPopup );
d->actionSaveUserDefaults->plug( d->dvdPopup );
- connect( d->displayWidget, SIGNAL(contextMenu(const QPoint&)), this, SLOT(slotPopupMenu(const QPoint&)) );
+ connect( d->displayWidget, TQT_SIGNAL(contextMenu(const TQPoint&)), TQT_TQOBJECT(this), TQT_SLOT(slotPopupMenu(const TQPoint&)) );
}
@@ -460,9 +460,9 @@ void K3bFillStatusDisplay::showSize()
{
d->actionShowMegs->setChecked( true );
- d->action74Min->setText( i18n("%1 MB").arg(650) );
- d->action80Min->setText( i18n("%1 MB").arg(700) );
- d->action100Min->setText( i18n("%1 MB").arg(880) );
+ d->action74Min->setText( i18n("%1 MB").tqarg(650) );
+ d->action80Min->setText( i18n("%1 MB").tqarg(700) );
+ d->action100Min->setText( i18n("%1 MB").tqarg(880) );
d->showTime = false;
d->displayWidget->setShowTime(false);
@@ -526,7 +526,7 @@ void K3bFillStatusDisplay::slotDvdDoubleLayer()
void K3bFillStatusDisplay::slotWhy44()
{
- QWhatsThis::display( i18n("<p><b>Why does K3b offer 4.4 GB and 8.0 GB instead of 4.7 and 8.5 like "
+ TQWhatsThis::display( i18n("<p><b>Why does K3b offer 4.4 GB and 8.0 GB instead of 4.7 and 8.5 like "
"it says on the media?</b>"
"<p>A single layer DVD media has a capacity of approximately "
"4.4 GB which equals 4.4*1024<sup>3</sup> bytes. Media producers just "
@@ -538,29 +538,29 @@ void K3bFillStatusDisplay::slotWhy44()
void K3bFillStatusDisplay::slotCustomSize()
{
// allow the units to be translated
- QString gbS = i18n("gb");
- QString mbS = i18n("mb");
- QString minS = i18n("min");
+ TQString gbS = i18n("gb");
+ TQString mbS = i18n("mb");
+ TQString minS = i18n("min");
- QRegExp rx( "(\\d+\\" + KGlobal::locale()->decimalSymbol() + "?\\d*)(" + gbS + "|" + mbS + "|" + minS + ")?" );
+ TQRegExp rx( "(\\d+\\" + KGlobal::locale()->decimalSymbol() + "?\\d*)(" + gbS + "|" + mbS + "|" + minS + ")?" );
bool ok;
- QString size = KInputDialog::getText( i18n("Custom Size"),
+ TQString size = KInputDialog::getText( i18n("Custom Size"),
i18n("<p>Please specify the size of the media. Use suffixes <b>gb</b>,<b>mb</b>, "
"and <b>min</b> for <em>gigabytes</em>, <em>megabytes</em>, and <em>minutes</em>"
" respectively."),
- d->showDvdSizes ? QString("4%14%2").arg(KGlobal::locale()->decimalSymbol()).arg(gbS) :
- (d->showTime ? QString("74")+minS : QString("650")+mbS),
+ d->showDvdSizes ? TQString("4%14%2").tqarg(KGlobal::locale()->decimalSymbol()).tqarg(gbS) :
+ (d->showTime ? TQString("74")+minS : TQString("650")+mbS),
&ok, this, (const char*)0,
- new QRegExpValidator( rx, this ) );
+ new TQRegExpValidator( rx, TQT_TQOBJECT(this) ) );
if( ok ) {
// determine size
if( rx.exactMatch( size ) ) {
- QString valStr = rx.cap(1);
+ TQString valStr = rx.cap(1);
if( valStr.endsWith( KGlobal::locale()->decimalSymbol() ) )
valStr += "0";
double val = KGlobal::locale()->readNumber( valStr, &ok );
if( ok ) {
- QString s = rx.cap(2);
+ TQString s = rx.cap(2);
if( s == gbS || (s.isEmpty() && d->showDvdSizes) )
val *= 1024*512;
else if( s == mbS || (s.isEmpty() && !d->showTime) )
@@ -577,13 +577,13 @@ void K3bFillStatusDisplay::slotCustomSize()
void K3bFillStatusDisplay::slotMenuButtonClicked()
{
- QSize size = d->showDvdSizes ? d->dvdPopup->sizeHint() : d->popup->sizeHint();
- slotPopupMenu( d->buttonMenu->mapToGlobal(QPoint(d->buttonMenu->width(), 0)) +
- QPoint(-1*size.width(), -1*size.height()) );
+ TQSize size = d->showDvdSizes ? d->dvdPopup->tqsizeHint() : d->popup->tqsizeHint();
+ slotPopupMenu( d->buttonMenu->mapToGlobal(TQPoint(d->buttonMenu->width(), 0)) +
+ TQPoint(-1*size.width(), -1*size.height()) );
}
-void K3bFillStatusDisplay::slotPopupMenu( const QPoint& p )
+void K3bFillStatusDisplay::slotPopupMenu( const TQPoint& p )
{
if( d->showDvdSizes )
d->dvdPopup->popup(p);
@@ -597,8 +597,8 @@ void K3bFillStatusDisplay::slotDetermineSize()
bool canceled = false;
K3bDevice::Device* dev = K3bMediaSelectionDialog::selectMedium( d->showDvdSizes ? K3bDevice::MEDIA_WRITABLE_DVD : K3bDevice::MEDIA_WRITABLE_CD,
K3bDevice::STATE_EMPTY|K3bDevice::STATE_INCOMPLETE,
- parentWidget(),
- QString::null, QString::null, &canceled );
+ tqparentWidget(),
+ TQString(), TQString(), &canceled );
if( dev ) {
K3b::Msf size = k3bappcore->mediaCache()->diskInfo( dev ).capacity();
@@ -608,10 +608,10 @@ void K3bFillStatusDisplay::slotDetermineSize()
update();
}
else
- KMessageBox::error( parentWidget(), i18n("Medium is not empty.") );
+ KMessageBox::error( tqparentWidget(), i18n("Medium is not empty.") );
}
else if( !canceled )
- KMessageBox::error( parentWidget(), i18n("No usable medium found.") );
+ KMessageBox::error( tqparentWidget(), i18n("No usable medium found.") );
}
@@ -673,13 +673,13 @@ void K3bFillStatusDisplay::slotMediumChanged( K3bDevice::Device* )
// TODO: once we have only one data project we need to change this to handle both
K3bDevice::Device* dev = 0;
- QPtrList<K3bDevice::Device> devs;
+ TQPtrList<K3bDevice::Device> devs;
if( d->showDvdSizes )
devs = k3bcore->deviceManager()->dvdWriter();
else
devs = k3bcore->deviceManager()->cdWriter();
- for( QPtrListIterator<K3bDevice::Device> it( devs ); *it; ++it ) {
+ for( TQPtrListIterator<K3bDevice::Device> it( devs ); *it; ++it ) {
const K3bMedium& medium = k3bappcore->mediaCache()->medium( *it );
if( ( medium.diskInfo().empty() ||