summaryrefslogtreecommitdiffstats
path: root/tdeui/kjanuswidget.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-13 20:33:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-15 23:44:25 +0900
commitc8ece3630d4d21acaf1749fc2cf660a0463070c3 (patch)
treebae3d3c70886ceeffd914cac031dfeab532a607a /tdeui/kjanuswidget.cpp
parent419c185be746df8bba59fe5de991b4a2b3977897 (diff)
downloadtdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.tar.gz
tdelibs-c8ece3630d4d21acaf1749fc2cf660a0463070c3.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeui/kjanuswidget.cpp')
-rw-r--r--tdeui/kjanuswidget.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tdeui/kjanuswidget.cpp b/tdeui/kjanuswidget.cpp
index dceb2e745..703c8f030 100644
--- a/tdeui/kjanuswidget.cpp
+++ b/tdeui/kjanuswidget.cpp
@@ -1110,14 +1110,14 @@ const TQPixmap &KJanusWidget::IconListItem::defaultPixmap()
pix = new TQPixmap( 32, 32 );
TQPainter p( pix );
p.eraseRect( 0, 0, pix->width(), pix->height() );
- p.setPen( Qt::red );
+ p.setPen( TQt::red );
p.drawRect ( 0, 0, pix->width(), pix->height() );
p.end();
TQBitmap mask( pix->width(), pix->height(), true );
- mask.fill( Qt::black );
+ mask.fill( TQt::black );
p.begin( &mask );
- p.setPen( Qt::white );
+ p.setPen( TQt::white );
p.drawRect ( 0, 0, pix->width(), pix->height() );
p.end();
@@ -1149,14 +1149,14 @@ void KJanusWidget::IconListItem::paint( TQPainter *painter )
void KJanusWidget::IconListItem::paintContents( TQPainter *painter )
{
TQFontMetrics fm = painter->fontMetrics();
- int ht = fm.boundingRect( 0, 0, 0, 0, Qt::AlignCenter, text() ).height();
+ int ht = fm.boundingRect( 0, 0, 0, 0, TQt::AlignCenter, text() ).height();
int wp = mPixmap.width();
int hp = mPixmap.height();
painter->drawPixmap( (mMinimumWidth - wp) / 2, 5, mPixmap );
if( !text().isEmpty() )
{
- painter->drawText( 1, hp + 7, mMinimumWidth - 2, ht, Qt::AlignCenter, text() );
+ painter->drawText( 1, hp + 7, mMinimumWidth - 2, ht, TQt::AlignCenter, text() );
}
}
@@ -1168,7 +1168,7 @@ int KJanusWidget::IconListItem::height( const TQListBox *lb ) const
}
else
{
- int ht = lb->fontMetrics().boundingRect( 0, 0, 0, 0, Qt::AlignCenter, text() ).height();
+ int ht = lb->fontMetrics().boundingRect( 0, 0, 0, 0, TQt::AlignCenter, text() ).height();
return (mPixmap.height() + ht + 10);
}
}
@@ -1176,7 +1176,7 @@ int KJanusWidget::IconListItem::height( const TQListBox *lb ) const
int KJanusWidget::IconListItem::width( const TQListBox *lb ) const
{
- int wt = lb->fontMetrics().boundingRect( 0, 0, 0, 0, Qt::AlignCenter, text() ).width() + 10;
+ int wt = lb->fontMetrics().boundingRect( 0, 0, 0, 0, TQt::AlignCenter, text() ).width() + 10;
int wp = mPixmap.width() + 10;
int w = TQMAX( wt, wp );
return TQMAX( w, mMinimumWidth );