summaryrefslogtreecommitdiffstats
path: root/src/gui/kdeext/KStartupLogo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
commit458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch)
tree624583f2873febe23770bee3fa94b5c24bd59f4f /src/gui/kdeext/KStartupLogo.cpp
parent747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff)
downloadrosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz
rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/kdeext/KStartupLogo.cpp')
-rw-r--r--src/gui/kdeext/KStartupLogo.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/gui/kdeext/KStartupLogo.cpp b/src/gui/kdeext/KStartupLogo.cpp
index 821ebb1..e3edd9d 100644
--- a/src/gui/kdeext/KStartupLogo.cpp
+++ b/src/gui/kdeext/KStartupLogo.cpp
@@ -36,14 +36,10 @@
#include "KStartupLogo.h"
#include "misc/Debug.h"
-KStartupLogo::KStartupLogo(TQWidget * parent, const char *name)
- : TQWidget(parent, name,
+KStartupLogo::KStartupLogo(TQWidget * tqparent, const char *name)
+ : TQWidget(tqparent, name,
WStyle_Customize |
-#if QT_VERSION >= 0x030100
WStyle_Splash
-#else
- WStyle_NoBorder | WStyle_StaysOnTop | WStyle_Tool | WX11BypassWM | WWinOwnDC
-#endif
),
m_readyToHide(false),
m_showTip(true)
@@ -88,15 +84,15 @@ void KStartupLogo::paintEvent(TQPaintEvent*)
paint.drawRect(TQRect(m_pixmap.width() - 220, m_pixmap.height() - 43,
220, (y + 8) - (m_pixmap.height() - 43)));
- // paint.setPen(Qt::black);
- // paint.setBrush(Qt::black);
- paint.setPen(Qt::white);
- paint.setBrush(Qt::white);
+ // paint.setPen(TQt::black);
+ // paint.setBrush(TQt::black);
+ paint.setPen(TQt::white);
+ paint.setBrush(TQt::white);
//TQString version(VERSION);
- //int sepIdx = version.find("-");
+ //int sepIdx = version.tqfind("-");
TQString versionLabel(VERSION);
- //TQString("R%1 v%2").arg(version.left(sepIdx)).arg(version.mid(sepIdx + 1));
+ //TQString("R%1 v%2").tqarg(version.left(sepIdx)).tqarg(version.mid(sepIdx + 1));
int versionWidth = metrics.width(versionLabel);
paint.drawText(m_pixmap.width() - versionWidth - 18,