Editing QtComponents/Butaca
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 29: | Line 29: | ||
- QApplication *app = MDeclarativeCache::qApplication(argc, argv); | - QApplication *app = MDeclarativeCache::qApplication(argc, argv); | ||
- QDeclarativeView *view = MDeclarativeCache::qDeclarativeView(); | - QDeclarativeView *view = MDeclarativeCache::qDeclarativeView(); | ||
- | + QApplication app(argc, argv); | + | + QApplication app = QApplication(argc, argv); |
- | + QDeclarativeView view; | + | + QDeclarativeView view = QDeclarativeView(); |
- QDeclarativeContext *context = view->rootContext(); | - QDeclarativeContext *context = view->rootContext(); | ||
Line 41: | Line 41: | ||
+ view.showFullScreen(); | + view.showFullScreen(); | ||
- | + | int result = app->exec(); | |
- | + | ||
delete controller; | delete controller; | ||
Line 101: | Line 100: | ||
Right now, we are going to support for this library (By the way, it seems portable to maemo5 without LMT. Any volunteers ?). Butacas defines a ButacaController class to share user preferences with others. So, we follow a 2 step approach | Right now, we are going to support for this library (By the way, it seems portable to maemo5 without LMT. Any volunteers ?). Butacas defines a ButacaController class to share user preferences with others. So, we follow a 2 step approach | ||
- | + | === Hide ShareUI from C++ Code === | |
Easy. we Just use Q_WS_MAEMO_5 and Q_WS_SIMULATOR to get this code compilable on Maemo5 and QtSimulator. | Easy. we Just use Q_WS_MAEMO_5 and Q_WS_SIMULATOR to get this code compilable on Maemo5 and QtSimulator. | ||
Line 160: | Line 159: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
- | + | === Disable functionality on QML land === | |
Disable share button on butaca toolbar | Disable share button on butaca toolbar | ||
Line 182: | Line 181: | ||
== Refactor QML files == | == Refactor QML files == | ||
- | As on [QtComponents/Miniature], we need to replace namespace by the fremantle one. In this case we need to go a bit further. | + | As on [QtComponents/Miniature], we need to replace namespace by the fremantle one. In this case we need to go a bit further use [[migrateTo]] for this task. |
- | === Update | + | === Update hardcoded paths === |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
=== Remove QtQuick 1.1 code === | === Remove QtQuick 1.1 code === | ||
- | |||
- | + | commit. | |
- | + | ||
- | + | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
== Handle Close events == | == Handle Close events == | ||
Line 226: | Line 194: | ||
<syntaxhighlight lang="diff"> | <syntaxhighlight lang="diff"> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 245: | Line 201: | ||
Some changes on how '''Butaca''' is deployed are needed to match Fremantle requirements. | Some changes on how '''Butaca''' is deployed are needed to match Fremantle requirements. | ||
- | === | + | === Optify code === |
- | + | ||
- | === | + | === Update Desktop file === |
- | + | And finally, update desktop file. There's no applauncerd on fremantle, so remove invoker from Exec. With this action we loose splash-screen. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
commit | commit | ||
Line 297: | Line 213: | ||
and copy generated files into debian/patches directory. | and copy generated files into debian/patches directory. | ||
- | Finally, modify rules file at debian directory to merge patches. At | + | Finally, modify rules file at debian directory to merge patches. At '''config-stamp''' rule add: |
- | <syntaxhighlight lang="make"> | + | <syntaxhighlight lang="make">for p in debian/patches/*; do patch -p1 < $$p; done |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | - | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</syntaxhighlight> | </syntaxhighlight> | ||
And thats all. You have '''Butaca''' working on Maemo5 | And thats all. You have '''Butaca''' working on Maemo5 |
Learn more about Contributing to the wiki.