|
|
|
@ -80,7 +80,7 @@ void AcqStatus::Item::setStatus( const std::string &s, int i )
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AcqStatus::Item::paintCell (TQPainter *p, const TQColorGroup &cg,
|
|
|
|
|
int column, int width, int tqalignment )
|
|
|
|
|
int column, int width, int alignment )
|
|
|
|
|
{
|
|
|
|
|
TQColorGroup _cg( cg );
|
|
|
|
|
TQColor c = _cg.text();
|
|
|
|
@ -95,7 +95,7 @@ void AcqStatus::Item::paintCell (TQPainter *p, const TQColorGroup &cg,
|
|
|
|
|
TQPixmap pm( width, height() );
|
|
|
|
|
TQPainter _p( &pm );
|
|
|
|
|
_cg.setColor( TQColorGroup::Text, c );
|
|
|
|
|
KListViewItem::paintCell( &_p, _cg, column, width, tqalignment );
|
|
|
|
|
KListViewItem::paintCell( &_p, _cg, column, width, alignment );
|
|
|
|
|
p->drawPixmap( 0, 0, pm );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -230,7 +230,7 @@ bool AcqStatus::Pulse(pkgAcquire *Owner)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
triggerUpdate ();
|
|
|
|
|
// tqrepaint ();
|
|
|
|
|
// repaint ();
|
|
|
|
|
|
|
|
|
|
if (TotalBytes > 0)
|
|
|
|
|
emit totalProgress(
|
|
|
|
@ -253,8 +253,8 @@ bool AcqStatus::MediaChange(string Media,string Drive)
|
|
|
|
|
int res = KMessageBox::warningContinueCancel(
|
|
|
|
|
this, i18n( "Please insert the disc "
|
|
|
|
|
"labeled '%1' in the drive "
|
|
|
|
|
"'%2' and press enter" ).tqarg(
|
|
|
|
|
u8( Media ) ).tqarg( u8( Drive ) ),
|
|
|
|
|
"'%2' and press enter" ).arg(
|
|
|
|
|
u8( Media ) ).arg( u8( Drive ) ),
|
|
|
|
|
i18n( "Media Change" ) );
|
|
|
|
|
if ( res == KMessageBox::Cancel )
|
|
|
|
|
cancel();
|
|
|
|
|