author | zecke <zecke> | 2004-10-11 19:00:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-11 19:00:29 (UTC) |
commit | 75fb192e17a3e55dc0c631dbd62b42796714b0dc (patch) (side-by-side diff) | |
tree | c7551ec51368d1504e654a2fb3b2d6cbba747364 /core/applets/aboutapplet/about.cpp | |
parent | d3da21c01659c68dc2cf1dfff1608649977b6e05 (diff) | |
download | opie-75fb192e17a3e55dc0c631dbd62b42796714b0dc.zip opie-75fb192e17a3e55dc0c631dbd62b42796714b0dc.tar.gz opie-75fb192e17a3e55dc0c631dbd62b42796714b0dc.tar.bz2 |
-Remove AboutDialog
-Add the former AboutDialog as AboutWidget
-Update .cvsignore to ingore widget.h and widget.cpp
-Better way to show the Widget and create it delayed and onyl once
-Remove the Opie Logo
Diffstat (limited to 'core/applets/aboutapplet/about.cpp') (more/less context) (show 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,22 +1,23 @@ #include "about.h" -#include "dialog.h" +#include "widget.h" #include <qpe/qpeapplication.h> #include <qpe/resource.h> #include <qpe/qcopenvelope_qws.h> -#include <qapplication.h> #include <qlabel.h> AboutApplet::AboutApplet ( ) - : QObject ( 0, "AboutApplet" ) + : QObject ( 0, "AboutApplet" ), m_ad( 0l ) {} AboutApplet::~AboutApplet ( ) -{} +{ + delete m_ad; +} int AboutApplet::position ( ) const { return 1; } @@ -54,19 +55,16 @@ QPopupMenu *AboutApplet::popup ( QWidget * ) const { return 0; } void AboutApplet::activated() { - AboutDialog* d = new AboutDialog( qApp->mainWidget(), "aboutDialog", true ); - if ( qApp->desktop()->width() == 240 ) - { - d->logo->hide(); - d->showMaximized(); - } - d->exec(); + if ( !m_ad ) + m_ad = new AboutWidget( 0, "aboutDialog" ); + + QPEApplication::showWidget( m_ad ); } QRESULT AboutApplet::queryInterface ( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) |