The Following User Says Thank You to flotron For This Useful Post: | ||
|
2013-01-28
, 20:42
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#2
|
#include "qdeclarativesettings.h" #include <qdeclarative.h> // you might not need this depending on your existing #includes qmlRegisterType<QDeclarativeProcess>("com.components.processes", 1, 0, "Process"); qmlRegisterUncreatableType<QDeclarativeProcessEnums>("com.components.processes", 1, 0, "Processes");
import com.components.processes 1.0 Process { id: process command: // command to launch the script. } Button { id: button text: "Launch script" onClicked: process.start() }
The Following 3 Users Say Thank You to marxian For This Useful Post: | ||
Tags |
debian, package, qml components, qt creator, theme |
|
The script is attached.
How to package with the script only (Themes packaging example):
1- Must have installed binutils on n9 (apt-get install binutils)
2- Must have the folder structure of your theme like: /themename/usr/share/themes/themename/meegotouch/etc...
3- inside the first structure (/themename) must be another folder called "DEBIAN", so it will be /themename/DEBIAN
4- Inside DEBIAN must be file called "control" with this inside:
Package: themename
Name: themename
Version: 0.1
Architecture: armel
Description: themename
Maintainer: you <you@hotmail.com>
Author: you <you@hotmail.com>
Section: user/Utilities+
5- Copy folder structure to /home/user and "make-deb.sh" script file to /home/user/Mydocs
6- From phone terminal write this: sh /home/user/MyDocs/make-deb.sh /home/user/themename
Bigger Icons (MetroUI)
Charging Indicator
s60.com.ar
Last edited by flotron; 2013-01-28 at 20:10.