summaryrefslogtreecommitdiffstats
path: root/ksplashml
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-28 03:25:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-28 03:25:47 +0000
commit0c7d4bb71f9bb7ec47eccd57523c38dac41abed1 (patch)
tree3823b6cafc980efc7c54e923a092eb779407fd6d /ksplashml
parentf1fdec42303ca53d085302ea2af9110cd1d79570 (diff)
downloadtdebase-0c7d4bb71f9bb7ec47eccd57523c38dac41abed1.tar.gz
tdebase-0c7d4bb71f9bb7ec47eccd57523c38dac41abed1.zip
Fix the following problems under Qt4:
* Konsole compilation failure * ksplash exit failure * kicker rounded tip masking behaviour * kwin auto-exit issue git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1223001 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksplashml')
-rw-r--r--ksplashml/wndmain.cpp3
-rw-r--r--ksplashml/wndmain.h15
2 files changed, 16 insertions, 2 deletions
diff --git a/ksplashml/wndmain.cpp b/ksplashml/wndmain.cpp
index f382ba7a6..c037438ab 100644
--- a/ksplashml/wndmain.cpp
+++ b/ksplashml/wndmain.cpp
@@ -311,6 +311,9 @@ void KSplash::startupComplete()
void KSplash::close()
{
TQWidget::close();
+#ifdef USE_QT4
+ exit(0);
+#endif // USE_QT4
}
void KSplash::hide()
diff --git a/ksplashml/wndmain.h b/ksplashml/wndmain.h
index c1fa4ae45..40457ad0d 100644
--- a/ksplashml/wndmain.h
+++ b/ksplashml/wndmain.h
@@ -39,6 +39,7 @@ class KConfig;
class KSplash: public TQWidget, virtual public KSplashIface
{
Q_OBJECT
+ TQ_OBJECT
public:
KSplash(const char *name = "ksplash");
@@ -53,9 +54,19 @@ public:
ASYNC setStartupItemCount( int count );
ASYNC programStarted( TQString programIcon, TQString programName, TQString description );
ASYNC startupComplete();
- ASYNC close();
- ASYNC hide();
ASYNC show();
+ ASYNC hide();
+
+ // [FIXME] How can I more easily let Qt know about these slots? moc-tqt perhaps?
+ // More importantly, how was this code even running under Qt3?
+ // Was it somehow running the TQWidget::close() slot instead of the KSplash::close() non-slot method?
+ // Either way it looks like accidental/undefined behaviour to me...
+#ifndef Q_MOC_RUN
+ ASYNC close();
+#else // Q_MOC_RUN
+public slots:
+ void close();
+#endif // Q_MOC_RUN
signals:
void stepsChanged(int);