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
v3.5.13-sru
tpearson 13 years ago
parent f1fdec4230
commit 0c7d4bb71f

@ -120,6 +120,9 @@ void PanelKMenu::hideMenu()
{ {
hide(); hide();
#ifdef USE_QT4
// The hacks below aren't needed any more because Qt4 supports true transparency for the fading logout screen
#else // USE_QT4
// Try to redraw the area under the menu // Try to redraw the area under the menu
// Qt makes this surprisingly difficult to do in a timely fashion! // Qt makes this surprisingly difficult to do in a timely fashion!
while (isShown() == true) while (isShown() == true)
@ -143,6 +146,7 @@ void PanelKMenu::hideMenu()
delaytimer->start( 100, TRUE ); // Wait for 100 milliseconds delaytimer->start( 100, TRUE ); // Wait for 100 milliseconds
while (windowTimerTimedOut == false) while (windowTimerTimedOut == false)
kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput, 1000); kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput, 1000);
#endif // USE_QT4
} }
void PanelKMenu::windowClearTimeout() void PanelKMenu::windowClearTimeout()

@ -283,9 +283,9 @@ void KickerTip::plainMask()
{ {
TQPainter maskPainter(&m_mask); TQPainter maskPainter(&m_mask);
m_mask.fill(Qt::black); m_mask.fill(Qt::color0);
maskPainter.setBrush(Qt::white); maskPainter.setBrush(Qt::color1);
maskPainter.setPen(Qt::NoPen); maskPainter.setPen(Qt::NoPen);
//maskPainter.drawRoundRect(m_mask.rect(), 1600 / m_mask.rect().width(), 1600 / m_mask.rect().height()); //maskPainter.drawRoundRect(m_mask.rect(), 1600 / m_mask.rect().width(), 1600 / m_mask.rect().height());
drawRoundRect(maskPainter, m_mask.rect()); drawRoundRect(maskPainter, m_mask.rect());
@ -297,9 +297,9 @@ void KickerTip::dissolveMask()
{ {
TQPainter maskPainter(&m_mask); TQPainter maskPainter(&m_mask);
m_mask.fill(Qt::black); m_mask.fill(Qt::color0);
maskPainter.setBrush(Qt::white); maskPainter.setBrush(Qt::color1);
maskPainter.setPen(Qt::NoPen); maskPainter.setPen(Qt::NoPen);
//maskPainter.drawRoundRect(m_mask.rect(), 1600 / m_mask.rect().width(), 1600 / m_mask.rect().height()); //maskPainter.drawRoundRect(m_mask.rect(), 1600 / m_mask.rect().width(), 1600 / m_mask.rect().height());
drawRoundRect(maskPainter, m_mask.rect()); drawRoundRect(maskPainter, m_mask.rect());
@ -450,7 +450,7 @@ bool KickerTip::isTippingFor(const TQWidget* w) const
void KickerTip::tipperDestroyed(TQObject* o) void KickerTip::tipperDestroyed(TQObject* o)
{ {
// we can't do a dynamic cast because we are in the process of dieing // we can't do a dynamic cast because we are in the process of dying
// so static it is. // so static it is.
untipFor(TQT_TQWIDGET(o)); untipFor(TQT_TQWIDGET(o));
} }

@ -189,7 +189,7 @@ public:
{ return TQPtrList<ColorSchema>::at(i); } ; { return TQPtrList<ColorSchema>::at(i); } ;
#ifdef USE_QT4 #ifdef USE_QT4
const ColorSchema *tqat(unsigned int i) const ColorSchema *tqat(unsigned int i)
{ return at(i); ; { return at(i); } ;
#endif // USE_QT4 #endif // USE_QT4
void sort() {TQPtrList<ColorSchema>::sort();}; void sort() {TQPtrList<ColorSchema>::sort();};

@ -311,6 +311,9 @@ void KSplash::startupComplete()
void KSplash::close() void KSplash::close()
{ {
TQWidget::close(); TQWidget::close();
#ifdef USE_QT4
exit(0);
#endif // USE_QT4
} }
void KSplash::hide() void KSplash::hide()

@ -39,6 +39,7 @@ class KConfig;
class KSplash: public TQWidget, virtual public KSplashIface class KSplash: public TQWidget, virtual public KSplashIface
{ {
Q_OBJECT Q_OBJECT
TQ_OBJECT
public: public:
KSplash(const char *name = "ksplash"); KSplash(const char *name = "ksplash");
@ -53,9 +54,19 @@ public:
ASYNC setStartupItemCount( int count ); ASYNC setStartupItemCount( int count );
ASYNC programStarted( TQString programIcon, TQString programName, TQString description ); ASYNC programStarted( TQString programIcon, TQString programName, TQString description );
ASYNC startupComplete(); ASYNC startupComplete();
ASYNC close();
ASYNC hide();
ASYNC show(); 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: signals:
void stepsChanged(int); void stepsChanged(int);

@ -86,6 +86,10 @@ int x11ErrorHandler(Display *d, XErrorEvent *e)
Application::Application( ) Application::Application( )
: KApplication( ), owner( screen_number ) : KApplication( ), owner( screen_number )
{ {
#ifdef USE_QT4
// I'm special...
setQuitOnLastWindowClosed(false);
#endif // USE_QT4
KCmdLineArgs* args = KCmdLineArgs::parsedArgs(); KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
if (!config()->isImmutable() && args->isSet("lock")) if (!config()->isImmutable() && args->isSet("lock"))
{ {

Loading…
Cancel
Save