author | zecke <zecke> | 2004-11-14 22:21:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-11-14 22:21:49 (UTC) |
commit | 394b5b2ef56342a905e8a022b3f8ef4085f569ef (patch) (side-by-side diff) | |
tree | da0cacb6e04e43bc3a324e702a67af6f8cd87370 | |
parent | 1d709cf8ce04b49db03d0e0353f3b7a071dce619 (diff) | |
download | opie-394b5b2ef56342a905e8a022b3f8ef4085f569ef.zip opie-394b5b2ef56342a905e8a022b3f8ef4085f569ef.tar.gz opie-394b5b2ef56342a905e8a022b3f8ef4085f569ef.tar.bz2 |
Make Powerchord quicklaunchable
-rw-r--r-- | noncore/multimedia/powerchord/main.cpp | 12 | ||||
-rw-r--r-- | noncore/multimedia/powerchord/opie-powerchord.control | 2 | ||||
-rw-r--r-- | noncore/multimedia/powerchord/powerchord.h | 2 | ||||
-rw-r--r-- | noncore/multimedia/powerchord/powerchord.pro | 4 |
4 files changed, 6 insertions, 14 deletions
diff --git a/noncore/multimedia/powerchord/main.cpp b/noncore/multimedia/powerchord/main.cpp index 7fca87c..91afad7 100644 --- a/noncore/multimedia/powerchord/main.cpp +++ b/noncore/multimedia/powerchord/main.cpp @@ -1,12 +1,4 @@ #include "powerchord.h" -#include <qpe/qpeapplication.h> +#include <opie2/oapplicationfactory.h> -int main( int argc, char ** argv ) -{ - QPEApplication a( argc, argv ); - - PowerchordBase p; - a.showMainWidget( &p ); - - return a.exec(); -} +OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<Powerchord> ) diff --git a/noncore/multimedia/powerchord/opie-powerchord.control b/noncore/multimedia/powerchord/opie-powerchord.control index 13aff53..39d926b 100644 --- a/noncore/multimedia/powerchord/opie-powerchord.control +++ b/noncore/multimedia/powerchord/opie-powerchord.control @@ -1,10 +1,10 @@ -Files: bin/powerchord apps/Applications/powerchord.desktop pics/powerchord share/powerchord +Files: plugins/applications/libpowerchord.so* bin/powerchord apps/Applications/powerchord.desktop pics/powerchord share/powerchord Priority: optional Section: opie/multimedia Maintainer: Camilo Mesias <camilo@mesias.co.uk>, ljp <lpotter@trolltech.com> Architecture: arm Version: 0.0.8 Depends: task-opie-minimal Description: Guitar Chord generator application Allows naming of chords using base note and key. Fretboard diagrams are produced illustrating ways to play the chord. diff --git a/noncore/multimedia/powerchord/powerchord.h b/noncore/multimedia/powerchord/powerchord.h index 0793fd2..b737834 100644 --- a/noncore/multimedia/powerchord/powerchord.h +++ b/noncore/multimedia/powerchord/powerchord.h @@ -1,17 +1,19 @@ #ifndef POWERCHORD_H #define POWERCHORD_H #include "powerchordbase.h" class Powerchord : public PowerchordBase { Q_OBJECT public: Powerchord( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~Powerchord(); + + static QString appName() { return QString::fromLatin1("powerchord"); } private slots: void goodBye(); }; #endif // POWERCHORD_H diff --git a/noncore/multimedia/powerchord/powerchord.pro b/noncore/multimedia/powerchord/powerchord.pro index f7af6d6..aa80991 100644 --- a/noncore/multimedia/powerchord/powerchord.pro +++ b/noncore/multimedia/powerchord/powerchord.pro @@ -1,26 +1,24 @@ -TEMPLATE = app -CONFIG = qt warn_on +CONFIG = qt quick-app HEADERS = powerchord.h \ fretboard.h \ chordengine.h \ vumeter.h \ gs.h gt.h \ powerchordbase.h SOURCES = main.cpp \ powerchord.cpp \ fretboard.cpp \ chordengine.cpp \ vumeter.cpp \ gs.cpp gt.cpp \ powerchordbase.cpp INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe -lopiecore2 -DESTDIR = $(OPIEDIR)/bin TARGET = powerchord include ( $(OPIEDIR)/include.pro ) |