Replaced various '#define' with actual strings - part 3

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/33/head
Michele Calgaro 1 year ago
parent b423aa0ce3
commit a505e95cbf
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -82,7 +82,7 @@ bool K3bIntMapComboBox::insertItem( int value, const TQString& text, const TQStr
index = KComboBox::count(); index = KComboBox::count();
d->valueIndexMap[value] = index; d->valueIndexMap[value] = index;
d->indexValueDescriptionMap[index] = tqMakePair<int, TQString>( value, description ); d->indexValueDescriptionMap[index] = qMakePair<int, TQString>( value, description );
KComboBox::insertItem( text ); KComboBox::insertItem( text );

@ -226,7 +226,7 @@ bool K3bLibDvdCss::crackAllKeys()
const K3bIso9660File* file = dynamic_cast<const K3bIso9660File*>( dir->entry( filename ) ); const K3bIso9660File* file = dynamic_cast<const K3bIso9660File*>( dir->entry( filename ) );
if( file && file->size() > 0 ) { if( file && file->size() > 0 ) {
d->titleOffsets.append( tqMakePair( (int)file->startSector(), (int)(file->size() / 2048U) ) ); d->titleOffsets.append( qMakePair( (int)file->startSector(), (int)(file->size() / 2048U) ) );
kdDebug() << "(K3bLibDvdCss) Get key for /" << filename << " at " << file->startSector() << endl; kdDebug() << "(K3bLibDvdCss) Get key for /" << filename << " at " << file->startSector() << endl;
if( seek( (int)file->startSector(), DVDCSS_SEEK_KEY ) < 0 ) { if( seek( (int)file->startSector(), DVDCSS_SEEK_KEY ) < 0 ) {
kdDebug() << "(K3bLibDvdCss) unable to seek to " << file->startSector() << endl; kdDebug() << "(K3bLibDvdCss) unable to seek to " << file->startSector() << endl;

@ -520,7 +520,7 @@ void K3bCheckListViewItem::paintK3bCell( TQPainter* p, const TQColorGroup& cg, i
else else
flags |= TQStyle::Style_Off; flags |= TQStyle::Style_Off;
listView()->style().tqdrawPrimitive( TQStyle::PE_CheckMark, p, r, cg, flags ); listView()->style().drawPrimitive( TQStyle::PE_CheckMark, p, r, cg, flags );
} }
} }
} }

@ -60,7 +60,7 @@ TQSize K3bMsfEdit::sizeHint() const
int w = fm.width( "00:00:00" ); int w = fm.width( "00:00:00" );
int wx = fm.width( ' ' )*2; int wx = fm.width( ' ' )*2;
int frame = style().pixelMetric( TQStyle::PM_SpinBoxFrameWidth ); int frame = style().pixelMetric( TQStyle::PM_SpinBoxFrameWidth );
return style().tqsizeFromContents(TQStyle::CT_SpinBox, this, return style().sizeFromContents(TQStyle::CT_SpinBox, this,
TQSize( w + wx + downRect().width() + frame*2, TQSize( w + wx + downRect().width() + frame*2,
h + frame*2). h + frame*2).
expandedTo( TQApplication::globalStrut() )); expandedTo( TQApplication::globalStrut() ));

@ -71,7 +71,7 @@ void K3bToolBoxSeparator::paintEvent( TQPaintEvent* )
TQPainter p( this ); TQPainter p( this );
TQStyle::SFlags flags = TQStyle::Style_Default|TQStyle::Style_Horizontal; TQStyle::SFlags flags = TQStyle::Style_Default|TQStyle::Style_Horizontal;
style().tqdrawPrimitive( TQStyle::PE_DockWindowSeparator, &p, rect(), style().drawPrimitive( TQStyle::PE_DockWindowSeparator, &p, rect(),
colorGroup(), flags ); colorGroup(), flags );
} }

@ -68,7 +68,7 @@ void K3bToolButton::drawButton( TQPainter* p )
if( isEnabled() ) if( isEnabled() )
arrowFlags |= TQStyle::Style_Enabled; arrowFlags |= TQStyle::Style_Enabled;
style().tqdrawPrimitive(TQStyle::PE_ArrowDown, p, style().drawPrimitive(TQStyle::PE_ArrowDown, p,
TQRect(width()-7, height()-7, 7, 7), colorGroup(), TQRect(width()-7, height()-7, 7, 7), colorGroup(),
arrowFlags, TQStyleOption() ); arrowFlags, TQStyleOption() );
} }

@ -215,7 +215,7 @@ void K3bAudioMetainfoRenamerPluginWidget::scanDir( K3bDirItem* dir, TQListViewIt
TQCheckListItem::CheckBox ); TQCheckListItem::CheckBox );
fileViewItem->setText(1, item->k3bName() ); fileViewItem->setText(1, item->k3bName() );
fileViewItem->setOn(true); fileViewItem->setOn(true);
d->renamableItems.append( tqMakePair( (K3bFileItem*)item, fileViewItem ) ); d->renamableItems.append( qMakePair( (K3bFileItem*)item, fileViewItem ) );
} }
} }

@ -141,7 +141,7 @@ int K3bDataUrlAddingDialog::addUrls( const KURL::List& urls,
K3bDataUrlAddingDialog dlg( dir->doc(), parent ); K3bDataUrlAddingDialog dlg( dir->doc(), parent );
dlg.m_urls = urls; dlg.m_urls = urls;
for( KURL::List::ConstIterator it = urls.begin(); it != urls.end(); ++it ) for( KURL::List::ConstIterator it = urls.begin(); it != urls.end(); ++it )
dlg.m_urlQueue.append( tqMakePair( K3b::convertToLocalUrl(*it), dir ) ); dlg.m_urlQueue.append( qMakePair( K3b::convertToLocalUrl(*it), dir ) );
dlg.slotAddUrls(); dlg.slotAddUrls();
int ret = TQDialog::Accepted; int ret = TQDialog::Accepted;
@ -226,7 +226,7 @@ int K3bDataUrlAddingDialog::copyMoveItems( const TQValueList<K3bDataItem*>& item
dlg.m_copyItems = copy; dlg.m_copyItems = copy;
for( TQValueList<K3bDataItem*>::const_iterator it = items.begin(); it != items.end(); ++it ) { for( TQValueList<K3bDataItem*>::const_iterator it = items.begin(); it != items.end(); ++it ) {
dlg.m_items.append( tqMakePair( *it, dir ) ); dlg.m_items.append( qMakePair( *it, dir ) );
++dlg.m_totalFiles; ++dlg.m_totalFiles;
if( (*it)->isDir() ) { if( (*it)->isDir() ) {
dlg.m_totalFiles += static_cast<K3bDirItem*>( *it )->numFiles(); dlg.m_totalFiles += static_cast<K3bDirItem*>( *it )->numFiles();
@ -568,7 +568,7 @@ void K3bDataUrlAddingDialog::slotAddUrls()
dlist.remove( dotdot ); dlist.remove( dotdot );
for( TQStringList::Iterator it = dlist.begin(); it != dlist.end(); ++it ) { for( TQStringList::Iterator it = dlist.begin(); it != dlist.end(); ++it ) {
m_urlQueue.append( tqMakePair( KURL::fromPathOrURL(absFilePath + '/' + *it), newDirItem ) ); m_urlQueue.append( qMakePair( KURL::fromPathOrURL(absFilePath + '/' + *it), newDirItem ) );
} }
} }
else { else {
@ -625,7 +625,7 @@ void K3bDataUrlAddingDialog::slotCopyMoveItems()
if( oldItem->isDir() && item->isDir() ) { if( oldItem->isDir() && item->isDir() ) {
const TQPtrList<K3bDataItem>& cl = dynamic_cast<K3bDirItem*>( item )->children(); const TQPtrList<K3bDataItem>& cl = dynamic_cast<K3bDirItem*>( item )->children();
for( TQPtrListIterator<K3bDataItem> it( cl ); *it; ++it ) for( TQPtrListIterator<K3bDataItem> it( cl ); *it; ++it )
m_items.append( tqMakePair( *it, dynamic_cast<K3bDirItem*>( oldItem ) ) ); m_items.append( qMakePair( *it, dynamic_cast<K3bDirItem*>( oldItem ) ) );
// FIXME: we need to remove the old dir item // FIXME: we need to remove the old dir item
} }

@ -175,7 +175,7 @@ void K3bAudioProjectConvertingDialog::slotStartClicked()
int i = 0; int i = 0;
K3bAudioTrack* track = m_doc->firstTrack(); K3bAudioTrack* track = m_doc->firstTrack();
while( track ) { while( track ) {
tracksToRip.append( tqMakePair( i+1, d->filenames[(m_optionWidget->createSingleFile() ? 0 : i)] ) ); tracksToRip.append( qMakePair( i+1, d->filenames[(m_optionWidget->createSingleFile() ? 0 : i)] ) );
++i; ++i;
track = track->next(); track = track->next();
} }

@ -250,7 +250,7 @@ void K3bAudioRippingDialog::slotStartClicked()
unsigned int i = 0; unsigned int i = 0;
for( TQValueList<int>::const_iterator trackIt = m_trackNumbers.begin(); for( TQValueList<int>::const_iterator trackIt = m_trackNumbers.begin();
trackIt != m_trackNumbers.end(); ++trackIt ) { trackIt != m_trackNumbers.end(); ++trackIt ) {
tracksToRip.append( tqMakePair( *trackIt, d->filenames[(m_optionWidget->createSingleFile() ? 0 : i)] ) ); tracksToRip.append( qMakePair( *trackIt, d->filenames[(m_optionWidget->createSingleFile() ? 0 : i)] ) );
++i; ++i;
} }

Loading…
Cancel
Save