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 --- kalarm/lib/colourcombo.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kalarm/lib/colourcombo.cpp') diff --git a/kalarm/lib/colourcombo.cpp b/kalarm/lib/colourcombo.cpp index 0345104e0..769e6518b 100644 --- a/kalarm/lib/colourcombo.cpp +++ b/kalarm/lib/colourcombo.cpp @@ -30,8 +30,8 @@ #include "colourcombo.moc" -ColourCombo::ColourCombo(TQWidget* parent, const char* name, const TQColor& defaultColour) - : TQComboBox(parent, name), +ColourCombo::ColourCombo(TQWidget* tqparent, const char* name, const TQColor& defaultColour) + : TQComboBox(tqparent, name), mColourList(Preferences::messageColours()), mSelectedColour(defaultColour), mCustomColour(255, 255, 255), @@ -169,9 +169,9 @@ void ColourCombo::drawCustomItem(TQRect& rect, bool insert) { TQPen pen; if (tqGray(mCustomColour.rgb()) < 128) - pen.setColor(Qt::white); + pen.setColor(TQt::white); else - pen.setColor(Qt::black); + pen.setColor(TQt::black); TQPainter painter; TQFontMetrics fm = TQFontMetrics(painter.font()); @@ -208,7 +208,7 @@ void ColourCombo::mousePressEvent(TQMouseEvent* e) if (mReadOnly) { // Swallow up the event if it's the left button - if (e->button() == Qt::LeftButton) + if (e->button() == TQt::LeftButton) return; } TQComboBox::mousePressEvent(e); @@ -228,7 +228,7 @@ void ColourCombo::mouseMoveEvent(TQMouseEvent* e) void ColourCombo::keyPressEvent(TQKeyEvent* e) { - if (!mReadOnly || e->key() == Qt::Key_Escape) + if (!mReadOnly || e->key() == TQt::Key_Escape) TQComboBox::keyPressEvent(e); } -- cgit v1.2.1