diff options
Diffstat (limited to 'libk3b/tools')
-rw-r--r-- | libk3b/tools/k3blistview.cpp | 20 | ||||
-rw-r--r-- | libk3b/tools/k3bmd5job.cpp | 12 | ||||
-rw-r--r-- | libk3b/tools/k3btitlelabel.cpp | 14 | ||||
-rw-r--r-- | libk3b/tools/k3btitlelabel.h | 2 |
4 files changed, 24 insertions, 24 deletions
diff --git a/libk3b/tools/k3blistview.cpp b/libk3b/tools/k3blistview.cpp index d5a893c..b998cf5 100644 --- a/libk3b/tools/k3blistview.cpp +++ b/libk3b/tools/k3blistview.cpp @@ -272,7 +272,7 @@ void K3bListViewItem::setBackgroundColor( int col, const TQColor& c ) ColumnInfo* info = getColumnInfo( col ); info->backgroundColorSet = true; info->backgroundColor = c; - tqrepaint(); + repaint(); } @@ -281,7 +281,7 @@ void K3bListViewItem::setForegroundColor( int col, const TQColor& c ) ColumnInfo* info = getColumnInfo( col ); info->foregroundColorSet = true; info->foregroundColor = c; - tqrepaint(); + repaint(); } @@ -299,7 +299,7 @@ void K3bListViewItem::setProgress( int col, int p ) setDisplayProgressBar( col, true ); if( info->progressValue != p ) { info->progressValue = p; - tqrepaint(); + repaint(); } } @@ -309,7 +309,7 @@ void K3bListViewItem::setTotalSteps( int col, int steps ) ColumnInfo* info = getColumnInfo( col ); info->totalProgressSteps = steps; - tqrepaint(); + repaint(); } @@ -318,14 +318,14 @@ void K3bListViewItem::setMarginHorizontal( int col, int margin ) ColumnInfo* info = getColumnInfo( col ); info->margin = margin; - tqrepaint(); + repaint(); } void K3bListViewItem::setMarginVertical( int margin ) { m_vMargin = margin; - tqrepaint(); + repaint(); } @@ -364,7 +364,7 @@ void K3bListViewItem::paintCell( TQPainter* p, const TQColorGroup& cg, int col, if( info->backgroundColorSet ) cgh.setColor( TQColorGroup::Base, info->backgroundColor ); - // in case this is the selected row has a margin we need to tqrepaint the selection bar + // in case this is the selected row has a margin we need to repaint the selection bar if( isSelected() && (col == 0 || listView()->allColumnsShowFocus()) && info->margin > 0 ) { @@ -445,7 +445,7 @@ void K3bListViewItem::paintProgressBar( TQPainter* p, const TQColorGroup& cgh, i s_dummyProgressBar->setTotalSteps( info->totalProgressSteps ); s_dummyProgressBar->setProgress( info->progressValue ); - // some styles use the widget's tqgeometry + // some styles use the widget's geometry s_dummyProgressBar->setGeometry( r ); listView()->tqstyle().drawControl(TQStyle::CE_ProgressBarContents, &dbPainter, s_dummyProgressBar, r, cgh, flags ); @@ -498,7 +498,7 @@ bool K3bCheckListViewItem::isChecked() const void K3bCheckListViewItem::setChecked( bool checked ) { m_checked = checked; - tqrepaint(); + repaint(); } @@ -1142,7 +1142,7 @@ bool K3bListView::eventFilter( TQObject* o, TQEvent* e ) TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(d->msfEditLineEdit) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(d->spinBoxLineEdit) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_editorComboBox) ) { - // make sure we did not lose the focus to one of the edit widgets' tqchildren + // make sure we did not lose the focus to one of the edit widgets' children if( !tqApp->focusWidget() || TQT_BASE_OBJECT(tqApp->focusWidget()->parentWidget()) != TQT_BASE_OBJECT(o) ) { doRename(); hideEditor(); diff --git a/libk3b/tools/k3bmd5job.cpp b/libk3b/tools/k3bmd5job.cpp index a04c9a0..7c20a05 100644 --- a/libk3b/tools/k3bmd5job.cpp +++ b/libk3b/tools/k3bmd5job.cpp @@ -97,14 +97,14 @@ void K3bMd5Job::start() } else if( !d->filename.isEmpty() ) { if( !TQFile::exists( d->filename ) ) { - emit infoMessage( i18n("Could not find file %1").tqarg(d->filename), ERROR ); + emit infoMessage( i18n("Could not find file %1").arg(d->filename), ERROR ); jobFinished(false); return; } d->file.setName( d->filename ); if( !d->file.open( IO_ReadOnly ) ) { - emit infoMessage( i18n("Could not open file %1").tqarg(d->filename), ERROR ); + emit infoMessage( i18n("Could not open file %1").arg(d->filename), ERROR ); jobFinished(false); return; } @@ -204,7 +204,7 @@ void K3bMd5Job::slotUpdate() if( readSize <= 0 ) { // kdDebug() << "(K3bMd5Job) reached max size of " << d->maxSize << ". Stopping." << endl; - emit debuggingOutput( "K3bMd5Job", TQString("Reached max read of %1. Stopping after %2 bytes.").tqarg(d->maxSize).tqarg(d->readData) ); + emit debuggingOutput( "K3bMd5Job", TQString("Reached max read of %1. Stopping after %2 bytes.").arg(d->maxSize).arg(d->readData) ); stopAll(); emit percent( 100 ); jobFinished(true); @@ -252,13 +252,13 @@ void K3bMd5Job::slotUpdate() } if( read < 0 ) { - emit infoMessage( i18n("Error while reading from file %1").tqarg(d->filename), ERROR ); + emit infoMessage( i18n("Error while reading from file %1").arg(d->filename), ERROR ); stopAll(); jobFinished(false); } else if( read == 0 ) { // kdDebug() << "(K3bMd5Job) read all data. Total size: " << d->readData << ". Stopping." << endl; - emit debuggingOutput( "K3bMd5Job", TQString("All data read. Stopping after %1 bytes.").tqarg(d->readData) ); + emit debuggingOutput( "K3bMd5Job", TQString("All data read. Stopping after %1 bytes.").arg(d->readData) ); stopAll(); emit percent( 100 ); jobFinished(true); @@ -303,7 +303,7 @@ TQCString K3bMd5Job::base64Digest() void K3bMd5Job::stop() { - emit debuggingOutput( "K3bMd5Job", TQString("Stopped manually after %1 bytes.").tqarg(d->readData) ); + emit debuggingOutput( "K3bMd5Job", TQString("Stopped manually after %1 bytes.").arg(d->readData) ); stopAll(); jobFinished( true ); } diff --git a/libk3b/tools/k3btitlelabel.cpp b/libk3b/tools/k3btitlelabel.cpp index f243693..0d4f37b 100644 --- a/libk3b/tools/k3btitlelabel.cpp +++ b/libk3b/tools/k3btitlelabel.cpp @@ -30,7 +30,7 @@ public: Private() { titleLength = subTitleLength = 0; margin = 2; - tqalignment = TQt::AlignLeft; + alignment = TQt::AlignLeft; cachedMinimumWidth = 0; titleBaseLine = 0; } @@ -41,7 +41,7 @@ public: TQString displayTitle; TQString displaySubTitle; - int tqalignment; + int alignment; int titleLength; int subTitleLength; @@ -71,9 +71,9 @@ public: neededWidth += m_label->d->displaySubTitleLength + 5; int startPos = 0; - if( m_label->d->tqalignment & TQt::AlignHCenter ) + if( m_label->d->alignment & TQt::AlignHCenter ) startPos = r.left() + ( r.width() - 2*m_label->d->margin - neededWidth ) / 2; - else if( m_label->d->tqalignment & TQt::AlignRight ) + else if( m_label->d->alignment & TQt::AlignRight ) startPos = r.right() - m_label->d->margin - neededWidth; else startPos = r.left() + m_label->d->margin; @@ -128,7 +128,7 @@ void K3bTitleLabel::setSubTitle( const TQString& subTitle ) void K3bTitleLabel::setAlignment( int align ) { - d->tqalignment = align; + d->alignment = align; update(); } @@ -168,9 +168,9 @@ void K3bTitleLabel::drawContents( TQPainter* p ) neededWidth += d->displaySubTitleLength + 5; int startPos = 0; - if( d->tqalignment & TQt::AlignHCenter ) + if( d->alignment & TQt::AlignHCenter ) startPos = r.left() + ( r.width() - 2*d->margin - neededWidth ) / 2; - else if( d->tqalignment & TQt::AlignRight ) + else if( d->alignment & TQt::AlignRight ) startPos = r.right() - d->margin - neededWidth; else startPos = r.left() + d->margin; diff --git a/libk3b/tools/k3btitlelabel.h b/libk3b/tools/k3btitlelabel.h index beaa5e9..5e99e59 100644 --- a/libk3b/tools/k3btitlelabel.h +++ b/libk3b/tools/k3btitlelabel.h @@ -47,7 +47,7 @@ class LIBK3B_EXPORT K3bTitleLabel : public TQFrame /** * The title label only supports alignments left, hcenter, and right * - * Default tqalignment is left. + * Default alignment is left. */ // FIXME: honor right-to-left languages void setAlignment( int align ); |