diff options
Diffstat (limited to 'buildtools/autotools/kimporticonview.cpp')
-rw-r--r-- | buildtools/autotools/kimporticonview.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/buildtools/autotools/kimporticonview.cpp b/buildtools/autotools/kimporticonview.cpp index 9b64d3ee..3634886a 100644 --- a/buildtools/autotools/kimporticonview.cpp +++ b/buildtools/autotools/kimporticonview.cpp @@ -14,10 +14,10 @@ * * ***************************************************************************/ -#include <qfontmetrics.h> -#include <qpainter.h> -#include <qrect.h> -#include <qwidget.h> +#include <tqfontmetrics.h> +#include <tqpainter.h> +#include <tqrect.h> +#include <tqwidget.h> #include <kglobalsettings.h> #include <klocale.h> @@ -26,7 +26,7 @@ #include "kimporticonview.h" -KImportIconView::KImportIconView(const QString& strIntro, QWidget *parent, const char *name) +KImportIconView::KImportIconView(const TQString& strIntro, TQWidget *parent, const char *name) : KFileDnDIconView(parent, name) { m_strIntro = strIntro; @@ -40,22 +40,22 @@ KImportIconView::~KImportIconView() { } -void KImportIconView::drawContents ( QPainter *p, int cx, int cy, int cw, int ch ) +void KImportIconView::drawContents ( TQPainter *p, int cx, int cy, int cw, int ch ) { if ( !m_bDropped) { - QIconView::drawContents ( p, cx, cy, cw, ch ); + TQIconView::drawContents ( p, cx, cy, cw, ch ); p->save(); - QFont font ( p->font() ); + TQFont font ( p->font() ); font.setBold ( true ); font.setFamily ( "Helvetica [Adobe]" ); font.setPointSize ( 10 ); p->setFont ( font ); - p->setPen ( QPen ( KGlobalSettings::highlightColor() ) ); + p->setPen ( TQPen ( KGlobalSettings::highlightColor() ) ); - QRect rect = frameRect(); - QFontMetrics fm ( p->font() ); + TQRect rect = frameRect(); + TQFontMetrics fm ( p->font() ); rect.setLeft ( rect.left() + 30 ); rect.setRight ( rect.right() - 30 ); @@ -65,8 +65,8 @@ void KImportIconView::drawContents ( QPainter *p, int cx, int cy, int cw, int ch KWordWrap* wordWrap1 = KWordWrap::formatText( fm, rect, AlignHCenter | WordBreak, m_strIntro ); KWordWrap* wordWrap2 = KWordWrap::formatText( fm, rect, AlignHCenter | WordBreak, i18n("Or just use the buttons.") ); - QRect introRect1 = wordWrap1->boundingRect(); - QRect introRect2 = wordWrap2->boundingRect(); + TQRect introRect1 = wordWrap1->boundingRect(); + TQRect introRect2 = wordWrap2->boundingRect(); wordWrap1->drawText ( p, ( ( frameRect().right() - introRect1.right() ) / 2 ), ( ( frameRect().bottom() - introRect1.bottom() ) / 2 ) - 20, AlignHCenter | AlignVCenter ); wordWrap2->drawText ( p, ( ( frameRect().right() - introRect2.right() ) / 2 ), ( ( frameRect().bottom() - introRect2.bottom() ) / 2 ) + introRect1.bottom(), AlignHCenter | AlignVCenter ); @@ -75,7 +75,7 @@ void KImportIconView::drawContents ( QPainter *p, int cx, int cy, int cw, int ch } else { - QIconView::drawContents ( p, cx, cy, cw, ch ); + TQIconView::drawContents ( p, cx, cy, cw, ch ); } } |