summaryrefslogtreecommitdiffstats
path: root/kalzium/src/eqresult.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kalzium/src/eqresult.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/eqresult.cpp')
-rw-r--r--kalzium/src/eqresult.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kalzium/src/eqresult.cpp b/kalzium/src/eqresult.cpp
index c128c93e..a4aad576 100644
--- a/kalzium/src/eqresult.cpp
+++ b/kalzium/src/eqresult.cpp
@@ -47,7 +47,7 @@ TQListBoxItem ( listBox )
void QuestionItem::paint( TQPainter* painter )
{
- int tf = Qt::NoAccel | Qt::SingleLine | Qt::AlignVCenter;
+ int tf = TQt::NoAccel | TQt::SingleLine | TQt::AlignVCenter;
TQRect r ( 0, 0, listBox()->contentsWidth(), height( listBox() ) );
painter->fillRect( r, m_bgcolor );
@@ -61,7 +61,7 @@ void AnswerItem::paint( TQPainter* painter )
TQRect r ( 0, 0, listBox()->contentsWidth(), height( listBox() ) );
painter->fillRect( r, m_bgcolor );
- TQColorGroup cg = listBox()->colorGroup();
+ TQColorGroup cg = listBox()->tqcolorGroup();
cg.setColor( TQColorGroup::Background, m_bgcolor );
m_richtext->draw(painter, 0, 0, r, cg );
@@ -89,7 +89,7 @@ void AnswerItem::checkSize()
m_richtext->setWidth( (t1>t2)?t1:t2 );
}
-EqResult::EqResult(TQWidget *parent) : TQListBox(parent)
+EqResult::EqResult(TQWidget *tqparent) : TQListBox(tqparent)
{
m_alternate_color = false;
setMinimumWidth(140);
@@ -101,7 +101,7 @@ EqResult::~EqResult()
void EqResult::add(const TQString & question, const TQString & answer)
{
- TQColor bgcolor = colorGroup().base();
+ TQColor bgcolor = tqcolorGroup().base();
if ( m_alternate_color )
bgcolor = bgcolor.dark( 120 );