From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kontact/interfaces/summary.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kontact/interfaces/summary.cpp') diff --git a/kontact/interfaces/summary.cpp b/kontact/interfaces/summary.cpp index 86902ca0d..0f4c048cd 100644 --- a/kontact/interfaces/summary.cpp +++ b/kontact/interfaces/summary.cpp @@ -34,8 +34,8 @@ using namespace Kontact; -Summary::Summary( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) +Summary::Summary( TQWidget *tqparent, const char *name ) + : TQWidget( tqparent, name ) { setAcceptDrops( true ); } @@ -44,9 +44,9 @@ Summary::~Summary() { } -TQWidget* Summary::createHeader(TQWidget *parent, const TQPixmap& icon, const TQString& heading) +TQWidget* Summary::createHeader(TQWidget *tqparent, const TQPixmap& icon, const TQString& heading) { - TQHBox* hbox = new TQHBox( parent ); + TQHBox* hbox = new TQHBox( tqparent ); hbox->setMargin( 2 ); TQFont boldFont; @@ -93,7 +93,7 @@ void Summary::mouseMoveEvent( TQMouseEvent *event ) TQPainter painter; painter.begin( &pm ); - painter.setPen( Qt::gray ); + painter.setPen( TQt::gray ); painter.drawRect( 0, 0, pm.width(), pm.height() ); painter.end(); drag->setPixmap( pm ); @@ -109,7 +109,7 @@ void Summary::dragEnterEvent( TQDragEnterEvent *event ) void Summary::dropEvent( TQDropEvent *event ) { - int tqalignment = (event->pos().y() < (height() / 2) ? Qt::AlignTop : Qt::AlignBottom); + int tqalignment = (event->pos().y() < (height() / 2) ? TQt::AlignTop : TQt::AlignBottom); emit summaryWidgetDropped( this, event->source(), tqalignment ); } -- cgit v1.2.1