diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /buildtools/autotools/kimporticonview.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ); } } |