diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-31 21:46:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-31 21:46:40 -0600 |
commit | acf699af8244896500e654cccdc8aae7e5b545db (patch) | |
tree | 9ddbc02f8dfa15b0f6090b909322b8ebde91e3bd /src/gui/kdeext | |
parent | 1d53865a04b4bcbab61f730bcbcc5452e9d04ce7 (diff) | |
download | rosegarden-acf699af8244896500e654cccdc8aae7e5b545db.tar.gz rosegarden-acf699af8244896500e654cccdc8aae7e5b545db.zip |
Rename KStartup for enhanced compatibility with KDE4
Diffstat (limited to 'src/gui/kdeext')
-rw-r--r-- | src/gui/kdeext/TDEStartupLogo.cpp (renamed from src/gui/kdeext/KStartupLogo.cpp) | 28 | ||||
-rw-r--r-- | src/gui/kdeext/TDEStartupLogo.h (renamed from src/gui/kdeext/KStartupLogo.h) | 10 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/gui/kdeext/KStartupLogo.cpp b/src/gui/kdeext/TDEStartupLogo.cpp index da473e9..6e57e2f 100644 --- a/src/gui/kdeext/KStartupLogo.cpp +++ b/src/gui/kdeext/TDEStartupLogo.cpp @@ -33,10 +33,10 @@ #include <tdeconfig.h> #include <ktip.h> -#include "KStartupLogo.h" +#include "TDEStartupLogo.h" #include "misc/Debug.h" -KStartupLogo::KStartupLogo(TQWidget * parent, const char *name) +TDEStartupLogo::TDEStartupLogo(TQWidget * parent, const char *name) : TQWidget(parent, name, WStyle_Customize | WStyle_Splash @@ -54,13 +54,13 @@ KStartupLogo::KStartupLogo(TQWidget * parent, const char *name) m_pixmap.width(), m_pixmap.height()); } -KStartupLogo::~KStartupLogo() +TDEStartupLogo::~TDEStartupLogo() { m_wasClosed = true; m_instance = 0; } -void KStartupLogo::paintEvent(TQPaintEvent*) +void TDEStartupLogo::paintEvent(TQPaintEvent*) { // Print version number TQPainter paint(this); @@ -102,19 +102,19 @@ void KStartupLogo::paintEvent(TQPaintEvent*) paint.drawText(m_pixmap.width() - (width + 10), y, m_statusMessage); } -void KStartupLogo::slotShowStatusMessage(TQString message) +void TDEStartupLogo::slotShowStatusMessage(TQString message) { m_statusMessage = message; paintEvent(0); TQApplication::flushX(); } -void KStartupLogo::close() +void TDEStartupLogo::close() { if (!m_wasClosed && isVisible()) { if (m_showTip) { - RG_DEBUG << "KStartupLogo::close: Showing Tips\n"; + RG_DEBUG << "TDEStartupLogo::close: Showing Tips\n"; KTipDialog::showTip(locate("data", "rosegarden/tips")); } } @@ -123,25 +123,25 @@ void KStartupLogo::close() } -void KStartupLogo::mousePressEvent(TQMouseEvent*) +void TDEStartupLogo::mousePressEvent(TQMouseEvent*) { // for the haters of raising startlogos if (m_readyToHide) hide(); // don't close, main() sets up a TQTimer for that } -KStartupLogo* KStartupLogo::getInstance() +TDEStartupLogo* TDEStartupLogo::getInstance() { if (m_wasClosed) return 0; if (!m_instance) - m_instance = new KStartupLogo; + m_instance = new TDEStartupLogo; return m_instance; } -void KStartupLogo::hideIfStillThere() +void TDEStartupLogo::hideIfStillThere() { if (m_instance) m_instance->hide(); @@ -149,7 +149,7 @@ void KStartupLogo::hideIfStillThere() } -KStartupLogo* KStartupLogo::m_instance = 0; -bool KStartupLogo::m_wasClosed = false; +TDEStartupLogo* TDEStartupLogo::m_instance = 0; +bool TDEStartupLogo::m_wasClosed = false; -#include "KStartupLogo.moc" +#include "TDEStartupLogo.moc" diff --git a/src/gui/kdeext/KStartupLogo.h b/src/gui/kdeext/TDEStartupLogo.h index c8bd627..7e6e586 100644 --- a/src/gui/kdeext/KStartupLogo.h +++ b/src/gui/kdeext/TDEStartupLogo.h @@ -28,13 +28,13 @@ #include <tqwidget.h> #include <tqpixmap.h> -class KStartupLogo : public TQWidget +class TDEStartupLogo : public TQWidget { Q_OBJECT public: - static KStartupLogo* getInstance(); + static TDEStartupLogo* getInstance(); static void hideIfStillThere(); @@ -47,8 +47,8 @@ public slots: protected: - KStartupLogo(TQWidget *parent=0, const char *name=0); - ~KStartupLogo(); + TDEStartupLogo(TQWidget *parent=0, const char *name=0); + ~TDEStartupLogo(); virtual void paintEvent(TQPaintEvent*); virtual void mousePressEvent( TQMouseEvent*); @@ -58,7 +58,7 @@ protected: TQPixmap m_pixmap; - static KStartupLogo* m_instance; + static TDEStartupLogo* m_instance; static bool m_wasClosed; TQString m_statusMessage; }; |