View Single Post
Posts: 434 | Thanked: 325 times | Joined on Sep 2009
#29
Originally Posted by danielwilms View Post
hope this helped and sorry for the delay.

Daniel
Thanks a lot. I finally got a shortcut!

Now if I only would get the icon working too..

Here is what I've done:
Code:
QT += phonon
TARGET = countdowntimer
TEMPLATE = app
SOURCES += qtmain.cpp \
    settings.cpp \
    form.cpp 
HEADERS += settings.h \
    form.h 
FORMS += settings.ui \
    form.ui 
PREFIX = ../debian/countdowntimer/usr

unix {
BINDIR = $$PREFIX/bin
DATADIR =$$PREFIX/share

DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\"

#MAKE INSTALL

INSTALLS += target desktop

  target.path =$$BINDIR

  desktop.path = $$DATADIR/applications/hildon
  desktop.files += countdowntimer.desktop

  icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  icon64.files += ../data/64x64/$${TARGET}.png

}
I got the countdowntimer.png in <app root>\data\64x64\ directory. But I only get the default blue icon.

Anyway, here is the Debian package with the shortcut:
Attached Files
File Type: deb countdowntimer_0.2-1_armel.deb (295.1 KB, 125 views)