From 394b5b2ef56342a905e8a022b3f8ef4085f569ef Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 14 Nov 2004 22:21:49 +0000 Subject: Make Powerchord quicklaunchable --- (limited to 'noncore/multimedia/powerchord') 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 +#include -int main( int argc, char ** argv ) -{ - QPEApplication a( argc, argv ); - - PowerchordBase p; - a.showMainWidget( &p ); - - return a.exec(); -} +OPIE_EXPORT_APP( Opie::Core::OApplicationFactory ) 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,4 +1,4 @@ -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 , ljp 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 @@ -9,6 +9,8 @@ class Powerchord : public PowerchordBase public: Powerchord( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~Powerchord(); + + static QString appName() { return QString::fromLatin1("powerchord"); } private slots: void goodBye(); 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,5 +1,4 @@ -TEMPLATE = app -CONFIG = qt warn_on +CONFIG = qt quick-app HEADERS = powerchord.h \ fretboard.h \ @@ -19,7 +18,6 @@ SOURCES = main.cpp \ INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe -lopiecore2 -DESTDIR = $(OPIEDIR)/bin TARGET = powerchord include ( $(OPIEDIR)/include.pro ) -- cgit v0.9.0.2