Diffstat (limited to 'core/applets/aboutapplet/about.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/aboutapplet/about.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/core/applets/aboutapplet/about.cpp b/core/applets/aboutapplet/about.cpp index 3952d0a..1dbd4c4 100644 --- a/core/applets/aboutapplet/about.cpp +++ b/core/applets/aboutapplet/about.cpp | |||
@@ -1,3 +1,3 @@ | |||
1 | #include "about.h" | 1 | #include "about.h" |
2 | #include "dialog.h" | 2 | #include "widget.h" |
3 | 3 | ||
@@ -7,3 +7,2 @@ | |||
7 | 7 | ||
8 | #include <qapplication.h> | ||
9 | #include <qlabel.h> | 8 | #include <qlabel.h> |
@@ -11,3 +10,3 @@ | |||
11 | AboutApplet::AboutApplet ( ) | 10 | AboutApplet::AboutApplet ( ) |
12 | : QObject ( 0, "AboutApplet" ) | 11 | : QObject ( 0, "AboutApplet" ), m_ad( 0l ) |
13 | {} | 12 | {} |
@@ -15,3 +14,5 @@ AboutApplet::AboutApplet ( ) | |||
15 | AboutApplet::~AboutApplet ( ) | 14 | AboutApplet::~AboutApplet ( ) |
16 | {} | 15 | { |
16 | delete m_ad; | ||
17 | } | ||
17 | 18 | ||
@@ -59,9 +60,6 @@ void AboutApplet::activated() | |||
59 | { | 60 | { |
60 | AboutDialog* d = new AboutDialog( qApp->mainWidget(), "aboutDialog", true ); | 61 | if ( !m_ad ) |
61 | if ( qApp->desktop()->width() == 240 ) | 62 | m_ad = new AboutWidget( 0, "aboutDialog" ); |
62 | { | 63 | |
63 | d->logo->hide(); | 64 | QPEApplication::showWidget( m_ad ); |
64 | d->showMaximized(); | ||
65 | } | ||
66 | d->exec(); | ||
67 | } | 65 | } |