From 0a80cfd57d271dd44221467efb426675fa470356 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 18:31:12 +0000 Subject: TQt4 port kvirc This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/modules/notifier/notifierwindowprogressbar.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/notifier/notifierwindowprogressbar.cpp') diff --git a/src/modules/notifier/notifierwindowprogressbar.cpp b/src/modules/notifier/notifierwindowprogressbar.cpp index 72bbdecf..f4f77b01 100644 --- a/src/modules/notifier/notifierwindowprogressbar.cpp +++ b/src/modules/notifier/notifierwindowprogressbar.cpp @@ -24,7 +24,7 @@ #include "notifierwindowprogressbar.h" -KviNotifierWindowProgressBar::KviNotifierWindowProgressBar(QRect r) +KviNotifierWindowProgressBar::KviNotifierWindowProgressBar(TQRect r) : m_rect(r) { @@ -35,17 +35,17 @@ KviNotifierWindowProgressBar::~KviNotifierWindowProgressBar() m_dProgress = 0; } -void KviNotifierWindowProgressBar::draw(QPainter *p) +void KviNotifierWindowProgressBar::draw(TQPainter *p) { - p->fillRect(m_rect, QColor(236, 233, 216)); + p->fillRect(m_rect, TQColor(236, 233, 216)); p->fillRect( - QRect( + TQRect( m_rect.x()+1, m_rect.y()+1 + m_rect.height() * (1 - m_dProgress), m_rect.width() - 2, (m_rect.height() - 2) * m_dProgress ), - QColor(175, 28, 95) + TQColor(175, 28, 95) ); p->drawRect(m_rect); } -- cgit v1.2.1