summaryrefslogtreecommitdiffstats
path: root/src/splashscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/splashscreen.cpp')
-rw-r--r--src/splashscreen.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/splashscreen.cpp b/src/splashscreen.cpp
index 0c7ac7f2..25a4c811 100644
--- a/src/splashscreen.cpp
+++ b/src/splashscreen.cpp
@@ -4,16 +4,16 @@
#include <config.h>
-#include <qtimer.h>
-#include <qfont.h>
+#include <tqtimer.h>
+#include <tqfont.h>
#include <klocale.h>
#include <kglobalsettings.h>
-KDevSplashScreen::KDevSplashScreen(const QPixmap& pixmap, WFlags f) : QSplashScreen(pixmap, f)
+KDevSplashScreen::KDevSplashScreen(const TQPixmap& pixmap, WFlags f) : TQSplashScreen(pixmap, f)
{
- QTimer *timer = new QTimer( this );
- QObject::connect(timer, SIGNAL(timeout()), this, SLOT(animate()));
+ TQTimer *timer = new TQTimer( this );
+ TQObject::connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(animate()));
timer->start(150);
state = 0;
@@ -33,46 +33,46 @@ void KDevSplashScreen::animate()
}
-void KDevSplashScreen::message( const QString &str, int flags, const QColor &color)
+void KDevSplashScreen::message( const TQString &str, int flags, const TQColor &color)
{
- QSplashScreen::message(str,flags,color);
+ TQSplashScreen::message(str,flags,color);
animate();
m_string = str;
}
-void KDevSplashScreen::drawContents (QPainter* painter)
+void KDevSplashScreen::drawContents (TQPainter* painter)
{
int position;
- QColor base_color (201,229,165); // Base green color
+ TQColor base_color (201,229,165); // Base green color
// Draw background circles
painter->setPen(NoPen);
- painter->setBrush(QColor(215,234,181));
+ painter->setBrush(TQColor(215,234,181));
painter->drawEllipse(51,7,9,9);
painter->drawEllipse(62,7,9,9);
painter->drawEllipse(73,7,9,9);
// Draw animated circles, increments are chosen
// to get close to background's color
- // (didn't work well with QColor::light function)
+ // (didn't work well with TQColor::light function)
for (int i=0; i < progress_bar_size; i++)
{
position = (state+i)%(2*progress_bar_size-1);
- painter->setBrush(QColor(base_color.red()-18*i,
+ painter->setBrush(TQColor(base_color.red()-18*i,
base_color.green()-10*i,
base_color.blue()-28*i));
if (position < 3) painter->drawEllipse(51+position*11,7,9,9);
}
- painter->setPen(QColor(74,112,18));
- QFont fnt(KGlobalSettings::generalFont());
+ painter->setPen(TQColor(74,112,18));
+ TQFont fnt(KGlobalSettings::generalFont());
fnt.setPointSize(8);
painter->setFont(fnt);
// Draw version number
- QRect r = rect();
+ TQRect r = rect();
r.setRect(r.x() + 5, r.y() + 5, r.width() - 10, r.height() - 10);
painter->drawText(r, Qt::AlignRight, i18n("Version %1").arg( VERSION ));