author | zecke <zecke> | 2004-04-04 23:31:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-04 23:31:29 (UTC) |
commit | fb8ce053c0f08769d359fe4153785e3de72f83ea (patch) (side-by-side diff) | |
tree | 2f0081cf8739c6daba81c791ec77bde37cbbba1a | |
parent | f2da7b706fd5e0512222e11ce0d94d2750074fd1 (diff) | |
download | opie-fb8ce053c0f08769d359fe4153785e3de72f83ea.zip opie-fb8ce053c0f08769d359fe4153785e3de72f83ea.tar.gz opie-fb8ce053c0f08769d359fe4153785e3de72f83ea.tar.bz2 |
Comitting a fix is probably a good idea
use EXPORT_OPIE_APPLET_v1 instead of OTaskBarAppletWrapper directly
-rw-r--r-- | core/applets/cardmon/cardmon.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp index ed4bfc7..1ad8b55 100644 --- a/core/applets/cardmon/cardmon.cpp +++ b/core/applets/cardmon/cardmon.cpp @@ -375,53 +375,50 @@ bool CardMonitor::getStatusSd( int showPopUp ) { QString text = QString::null; QString what = QString::null; if ( cardInSd ) { text += "New card: SD/MMC"; what = "on"; } else { text += "Ejected: SD/MMC"; what = "off"; } //qDebug("TEXT: " + text ); #ifndef QT_NO_SOUND QSound::play( Resource::findSound( "cardmon/card" + what ) ); #endif popUp( text, "cardmon/ide" ); // XX add SD pic } #else #error "Not on Linux" #endif repaint( FALSE ); return ( ( cardWas == cardInSd ) ? FALSE : TRUE ); } void CardMonitor::paintEvent( QPaintEvent * ) { QPainter p( this ); if ( cardInPcmcia0 || cardInPcmcia1 || cardInSd ) { p.drawPixmap( 0, 0, pm ); show(); } else { //p.eraseRect(rect()); hide(); } } int CardMonitor::position() { return 7; } -Q_EXPORT_INTERFACE() -{ - Q_CREATE_INSTANCE( Opie::Ui::Private::OTaskbarAppletWrapper<CardMonitor> ); -} +EXPORT_OPIE_APPLET_v1( CardMonitor ) |