Editing QtComponents/Miniature
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 1: | Line 1: | ||
'''Miniature''' is a chess game currently maintained by Michael Hasselmann and Quim Gil and targeted to Harmattan devices. See more about it on [[Miniature]] page. | '''Miniature''' is a chess game currently maintained by Michael Hasselmann and Quim Gil and targeted to Harmattan devices. See more about it on [[Miniature]] page. | ||
- | I'm going to make | + | I'm going to make this project as an example of the required changes to get it working on Fremantle |
== Fetch sources == | == Fetch sources == | ||
Line 22: | Line 22: | ||
|} | |} | ||
- | === Change meego | + | === Change meego namesapce by fremantle one === |
There is a simple script to do this task located at [https://qt.gitorious.org/~inean/qt-components/ineans-qt-components/blobs/fremantle-1.0/src/fremantle/migrateTo gitorious]. invoke inside miniature directory as: | There is a simple script to do this task located at [https://qt.gitorious.org/~inean/qt-components/ineans-qt-components/blobs/fremantle-1.0/src/fremantle/migrateTo gitorious]. invoke inside miniature directory as: | ||
Line 35: | Line 35: | ||
== Handle Close events == | == Handle Close events == | ||
- | QtComponents uses | + | QtComponents uses qt.qui() event to notify application backends that user has requested to close window. Miniature doens't handle this event on it's own so, we need to add it. |
First, lookup for a DeclarativeView or 'show' call inside miniature directory. A '''grep''' command point us to miniature.cc file. We add a close Slot to deal with Qt.quit() event. | First, lookup for a DeclarativeView or 'show' call inside miniature directory. A '''grep''' command point us to miniature.cc file. We add a close Slot to deal with Qt.quit() event. | ||
Line 167: | Line 167: | ||
and copy generated files into debian/patches directory. | and copy generated files into debian/patches directory. | ||
- | + | modify rules to merge this patches at '''config-stamp''' rule with | |
<syntaxhighlight lang="make">for p in debian/patches/*; do patch -p1 < $$p; done | <syntaxhighlight lang="make">for p in debian/patches/*; do patch -p1 < $$p; done | ||
</syntaxhighlight> | </syntaxhighlight> | ||
- | And thats all. You have upstream ''' | + | And thats all. You have upstream '''minuature''' working on Maemo5 |
Learn more about Contributing to the wiki.