Summary: | One error left behind the splash screen | ||
---|---|---|---|
Product: | [Unmaintained] quanta | Reporter: | Melvyn Sopacua <melvyn> |
Component: | general | Assignee: | András Manţia <amantia> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Melvyn Sopacua
2004-05-22 17:47:59 UTC
CVS commit by amantia: Unconditionally hide the splash screen after 10 seconds. CCMAIL: 82013-done@bugs.kde.org CCMAIL: 80086-done@bugs.kde.org M +1 -0 ChangeLog 1.205.2.39 M +15 -0 quanta/kqapp.cpp 1.43.2.6 M +3 -3 quanta/kqapp.h 1.10.4.1 --- quanta/ChangeLog #1.205.2.38:1.205.2.39 @@ -23,4 +23,5 @@ - don't be confused by quotation marks inside a script area which is inside a tag value (like <a href="<? echo "foo" ?>">) [#80683] + - unconditionally hide the splash screen after 10 seconds [#80086, #82013] - improvements: --- quanta/quanta/kqapp.cpp #1.43.2.5:1.43.2.6 @@ -86,4 +86,5 @@ KQApplication::KQApplication() splash = new KSplash(); connect(quantaApp, SIGNAL(showSplash(bool)), splash, SLOT(setShown(bool))); + QTimer::singleShot(10*1000, this, SLOT(slotSplashTimeout())); } setMainWidget(quantaApp); @@ -101,4 +102,9 @@ KQApplication::~KQApplication() } +void KQApplication::slotSplashTimeout() +{ + delete splash; + splash = 0L; +} KQUniqueApplication::KQUniqueApplication() @@ -141,4 +147,5 @@ int KQUniqueApplication::newInstance() splash = new KSplash(); connect(quantaApp, SIGNAL(showSplash(bool)), splash, SLOT(setShown(bool))); + QTimer::singleShot(10*1000, this, SLOT(slotSplashTimeout())); } setMainWidget(quantaApp); @@ -154,4 +161,11 @@ void KQUniqueApplication::slotInit() } +void KQUniqueApplication::slotSplashTimeout() +{ + delete splash; + splash = 0L; +} + + void KQApplicationPrivate::init() { @@ -186,4 +200,5 @@ void KQApplicationPrivate::init() args->clear(); delete splash; + splash = 0L; } --- quanta/quanta/kqapp.h #1.10:1.10.4.1 @@ -36,5 +36,5 @@ class KQApplicationPrivate { public: - KQApplicationPrivate() {}; + KQApplicationPrivate():splash(0L){}; ~KQApplicationPrivate() {}; @@ -56,5 +56,5 @@ class KQApplication : public KApplicatio /** No descriptions */ void slotInit(); - + void slotSplashTimeout(); }; @@ -73,5 +73,5 @@ class KQUniqueApplication : public KUniq /** No descriptions */ void slotInit(); - + void slotSplashTimeout(); }; |