Re: [SailfishDevel] Harbour: Rejections clarify

2014-01-03 Thread Juha Kallioinen

On 03.01.2014 00:02, Mikael Hermansson wrote:


But It seems to me Required field in yaml file should not be used is 
that the case? Please clarify this?




No it can and should be used, but only with requirements that are 
allowed. I can't comment on whether the list of allowed dependencies is 
the correct at the moment. The list will be updated if something that 
should be allowed is missing.


Please also note that even if you don't declare Requires in your spec 
file, rpm will automatically add Requires to your package's metadata 
when it notices that your binary for example links to a library it is 
using. This feature is on by default and should in most cases not be 
turned off (by declaring AutoReqProv: no).



and what about line:

sailfishsilica-qt5 = 0.10.9 (not sure if I added this or if autoadded?)

now should this still be left in the reuquires? Because I remember 
first time I installed it on my phone(s) both n9(with sail) and my 
Jolla cried about missing libsailfishapp.so?




That package does not provide libsailfishapp.so. It comes from the 
package libsailfishapp.


The default template application yaml file declares:

PkgConfigBR:
- sailfishapp = 0.0.10

Which is converted to the spec file as:

BuildRequires:  pkgconfig(sailfishapp) = 0.0.10

(Notice that the name there is sailfishapp, which is the pkg-config 
name for the rpm package libsailfishapp-devel, which in turn depends 
on the package libsailfishapp).


If you have those lines in your yaml/spec and your application really 
does use libsailfishapp.so, rpm will notice it and will add it as an 
automatic requires dependency unless you have specified AutoReqProv: 
no in your spec file.


Now, if you choose to deploy your package as RPM to the device, then it 
will also install all other missing packages that are required by your 
package.


If you choose to deploy package as binaries in Qt Creator, then the 
RPM packaging is not built and any dependencies your package might have 
are also not handled. Either this deploy method or AutoReqProv: no 
might be the reason you got the missing libsailfishapp.so error 
originally.


As a hint, you should always deploy your package as RPM once and always 
if you add more Requires to it, so that its requirements are pulled into 
the target device. After that you can use deploy as binaries, which is 
a bit faster since it skips the RPM package creation step.


Best regards,
 Juha

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] API/Silica Module for Contacts

2014-01-03 Thread Timur Kristóf
Hi Sven,

I think there are some picker dialogs in Silica (you can look around in its
directory), but as far as I know only a few of them are part of the public
API.

If you look around here:
https://sailfishos.org/sailfish-silica/sailfish-silica-all.html
You can see that there's only a ColorPickerDialog, DatePickerDialog and
TimePickerDialog in the API now.

If you wish to have a contact picker, vote for this Together post:
https://together.jolla.com/question/9339/feature-request-silica-contact-picker-api/

Cheers,
Timur



Timur



On Thu, Jan 2, 2014 at 8:26 PM, Sven Putze sailfish...@hardcodes.de wrote:

 Hi there,

 I want to select the email addresses of contacts in one of my apps. But if
 possible I don't want to use QContacts for this task, I'd like to reuse the
 same dialog as is present in the email program. There is this +-button
 which leads to a complete (contact) selection dialog.
 Is there an API (description) available anywhere to use this module?
 Must I reinvent the wheel here and try to achieve the same with my own
 code?
 Or can I at least use the source code of this dialog and if yes from where?

 BR.
 Sven
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Check for OS in .PRO file

2014-01-03 Thread Timur Kristóf
Hi,

What Thomas said makes sense, I just want to add one more little thing. You
can, in the .spec file, add stuff to qmake, like this define. This would
make the necessary code shorter and as a bonus, it gives you something you
can even ifdef in C++.

# spec file
qmake DEFINES+=IS_SAILFISH_OS

# pro file
contains(DEFINES, IS_SAILFISH_OS) {
  ...
}

// C++ file
#if defined(IS_SAILFISH_OS)
  ...
#endif

Cheers,
Timur



Timur



On Thu, Jan 2, 2014 at 8:44 PM, Thomas Perl th.p...@gmail.com wrote:

 Hi,

 On 02 Jan 2014, at 20:25, Sven Putze sailfish...@hardcodes.de wrote:
  There are ways to check for the OS in QtCreator .PRO files, e.g. like
 
  unix:symbian{ # do stuff}
  unix:maemo5{ # do stuff}
  macx{ # do stuff}
  win32{ # do stuff}
 
  Is there a way to check (or control to be more precise) that some
 directives are only used when compiling on the MerSDL VM?
  Just checking for the presence of sailfishapp does not work, because
 that is defined for any OS.


 In general, it might just be easier (and more maintainable) to have a
 per-platform .pro file for your project and not litter your .pro file with
 lots of conditionals (been there, done that - it will become hard to read,
 understand and maintain as the number of platforms grows). If there’s a lot
 of common things that you need in each file, put that in a .pri file and
 include it in each platform-specific .pro file. Then, in the sailfish
 .spec, you can call qmake on the sailfish-specific project file, in the
 Maemo 5 debian/rules script, you call qmake on the maemo5 .pro file, etc…

 With that said, you can use packagesExist[1] to do sailfish-specific
 things if you are convinced that a single .pro file really is the way to go:

 packagesExist(sailfishapp) { .. do stuff .. }

 Alternatively, set an environment variable in the qmake call in the .spec
 file and check for that variable in the .pro file:

 # In the .spec file:
 IS_SAILFISH_OS=1 qmake

 # In the .pro file:
 IS_SAILFISH_OS = $$(IS_SAILFISH_OS)
 contains(IS_SAILFISH_OS, 1) {
 .. do stuff ..
 }


 HTH :)
 Thomas

 [1]
 http://qt-project.org/doc/qt-4.8/qmake-function-reference.html#packagesexist-packages
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to translate (lupdate) ?

2014-01-03 Thread Timur Kristóf
Hi,

You can use Qt Linguist, lupdate and other such tools from the regular
upstream Qt SDK, you don't need the Sailfish SDK to support it.

Cheers,
Timur


Timur



On Thu, Jan 2, 2014 at 6:36 PM, Franck Routier (perso) a...@mecadu.orgwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi,

 I would like to translate my QML application, now that it runs fine.
 I have used qsTr() for literal strings.

 Then I have tried to run 'lupdate' from tools/external/Linguist in the
 Sailfish SDK QtCreator, but it does not seem to do anything...

 Also, 'find . -name lupdate' in the sdk finds nothing... (it did in
 the Harmattan Qt SDK).

 How should I translate my application ? Is there a specific trick from
 within the SDK, or is this just a missing feature ?

 Secondary question: I have images that contain textual information. Is
 there a best way (standard API) to pick the right file, or should I
 play with suffix in a custom way ?

 Thanks in advance,

 Franck
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.14 (GNU/Linux)
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

 iQEcBAEBAgAGBQJSxaOOAAoJEGEvoAir78Ro19MH/2KUVc/fGFnVxcFhCc14MFXG
 vKNdSzFplRdhqdkhjX9XKf0TqiWEW3YF1eZrNi0UipNDQo91pVKVPhhno3w2ZjA0
 UG/o9ILl/nlw8J3m8NXQlW0FdZBAi33gN5TaU7cIvFC70FKtF6rsf39vJ9sqHJqO
 gAsM2HEAoCyiHaoaoxfFSfwHZ5Pd5c2k8tAXYrj1NkVFwzbWF5gSmj/B43fIJVfG
 nsDLd2aF5FZr1/w+Cp4qBQ8XdWr0P+1ADeGUnj4Lxd4olsUAkRdI2UJRCrp3q3Ef
 3fxe2v0VInUMExq8Px7nsFwfPokdazVXbpDwOKIpljc67ywDsZw3rrsNb3P+pKg=
 =NSoA
 -END PGP SIGNATURE-
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Undocumented Silica components

2014-01-03 Thread Timur Kristóf
Hi Luciano,

My guess is that since those components are part of Silica and their
imports are allowed in the harbour, it is OK to use them. I don't know
their actual official status but I guess they are simply not documented
because of a mistake, not because they are disallowed.

Would be nice to have someone from Jolla confirm, though.

Cheers,
Timur


Timur



On Thu, Jan 2, 2014 at 9:58 PM, Luciano Montanaro mikel...@gmail.comwrote:

 I don't know if this has been addresed already, but...

 In my application, I would like to use a few components that the
 componentgallery is demoing, but that are not documented in the
 reference documentation.
 Is it OK to use everything that works there?

 Specifically, I want to use

 * OpacityRampEffect for my coverpage
 * the busy property of the PullDownMenu while fetching status updates
 * possibly the GlassItem as an indicator of the train delay

 Since I would like for my application to eventually be distributed
 through the Harbour, I would like to know if it is OK to do so.

 Best regards,
 Luciano

 --
 Luciano Montanaro

 Anyone who is capable of getting themselves made President should on
 no account be allowed to do the job. -- Douglas Adams
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] API/Silica Module for Contacts

2014-01-03 Thread Timur Kristóf
Hey,

I forgot to mention that a file picker is also missing.
See https://together.jolla.com/question/321/file-picker-needed/

Timur


Timur



On Fri, Jan 3, 2014 at 12:17 PM, Timur Kristóf timur.kris...@gmail.comwrote:

 Hi Sven,

 I think there are some picker dialogs in Silica (you can look around in
 its directory), but as far as I know only a few of them are part of the
 public API.

 If you look around here:
 https://sailfishos.org/sailfish-silica/sailfish-silica-all.html
 You can see that there's only a ColorPickerDialog, DatePickerDialog and
 TimePickerDialog in the API now.

 If you wish to have a contact picker, vote for this Together post:

 https://together.jolla.com/question/9339/feature-request-silica-contact-picker-api/

 Cheers,
 Timur



 Timur



 On Thu, Jan 2, 2014 at 8:26 PM, Sven Putze sailfish...@hardcodes.dewrote:

 Hi there,

 I want to select the email addresses of contacts in one of my apps. But
 if possible I don't want to use QContacts for this task, I'd like to reuse
 the same dialog as is present in the email program. There is this +-button
 which leads to a complete (contact) selection dialog.
 Is there an API (description) available anywhere to use this module?
 Must I reinvent the wheel here and try to achieve the same with my own
 code?
 Or can I at least use the source code of this dialog and if yes from
 where?

 BR.
 Sven
 ___
 SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] API/Silica Module for Contacts

2014-01-03 Thread Andrey Kozhevnikov

Is it really missing? Or just not implemented?
Why you switching statement?

It will be handy to have built in pickers for everything, but well, you 
have contacts model and can create you own picker with favorite delegates.


I dont think it's really missing feature.

Really missing feature for example Haptics/Feedback effects on QML side, 
because its essential thing coming from hardware.


On 03.01.2014 17:35, Timur Kristóf wrote:

Hey,

I forgot to mention that a file picker is also missing.
See https://together.jolla.com/question/321/file-picker-needed/

Timur


Timur



On Fri, Jan 3, 2014 at 12:17 PM, Timur Kristóf 
timur.kris...@gmail.com mailto:timur.kris...@gmail.com wrote:


Hi Sven,

I think there are some picker dialogs in Silica (you can look
around in its directory), but as far as I know only a few of them
are part of the public API.

If you look around here:
https://sailfishos.org/sailfish-silica/sailfish-silica-all.html
You can see that there's only a ColorPickerDialog,
DatePickerDialog and TimePickerDialog in the API now.

If you wish to have a contact picker, vote for this Together post:

https://together.jolla.com/question/9339/feature-request-silica-contact-picker-api/

Cheers,
Timur



Timur



On Thu, Jan 2, 2014 at 8:26 PM, Sven Putze
sailfish...@hardcodes.de mailto:sailfish...@hardcodes.de wrote:

Hi there,

I want to select the email addresses of contacts in one of my
apps. But if possible I don't want to use QContacts for this
task, I'd like to reuse the same dialog as is present in the
email program. There is this +-button which leads to a
complete (contact) selection dialog.
Is there an API (description) available anywhere to use this
module?
Must I reinvent the wheel here and try to achieve the same
with my own code?
Or can I at least use the source code of this dialog and if
yes from where?

BR.
Sven
___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

[SailfishDevel] Notification icons guidelines

2014-01-03 Thread Andrey Kozhevnikov

Hello!

Can you provide info about images using in lipstick notification popups 
and in notifications view? Sizes, paths, etc.?

___
SailfishOS.org Devel mailing list


[SailfishDevel] ContextMenu with repeater

2014-01-03 Thread Andrey Kozhevnikov

Hello

I can't get context menu index if using repeater inside

ComboBox {
id: languageCombo
label: Language
currentIndex: 0
menu: ContextMenu {
id: languageMenu
Repeater {
width: parent.width
model: localeNames
delegate: MenuItem {
text: modelData
onClicked: {
console.log(selected:  + modelData)
console.log(selected:  + index)
}
}
}
onActiveChanged: {
console.log(index:  + languageCombo.currentIndex)
}
}
onCurrentIndexChanged: {
if (languageMenu.active) {
console.log(index:  + currentIndex)
}
}
}

No output is produced when i selecting item, but item in repeater changed.
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Harbour: Rejections clarify

2014-01-03 Thread Jarkko Lietolahti
Please add h264 support to SDK too.

Br,
 Jarkko


On Fri, Jan 3, 2014 at 1:10 PM, Juha Kallioinen
juha.kallioi...@jolla.comwrote:

  On 03.01.2014 00:02, Mikael Hermansson wrote:

 now I can understand that gst-plugins-good was rejected because its not on
 the list but the others? (Notice gst* was okey first version...) actually I
 think that lib is on the phone but not in emulator...


 Forgot to answer to this. We'll strive to provide an emulator that is more
 in line with the device content in upcoming SDK releases.

 Best regards,
  Juha


 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

[SailfishDevel] Adding files to RPM packages

2014-01-03 Thread Franck Routier (perso)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

still in the process of finishing my first application...

Now I have translation files (.ts and .qm), that are located in a
'languages' directory.

I have added them to the .pro file, and I have modified the yaml RPM
definition, but I must be missing something, as I get an RPM error
error:
File not found:
/home/deploy/installroot/usr/share/MkPokerPlanning/languages

Indeed, I can find my files on the mersdk VM in
/home/mersdk/devl/MkPokerPlanning/languages, but it does not make it
to /home/deploy/installroot/usr/share/MkPokerPlanning/...

Here is my yaml:

Name: MkPokerPlanning
Summary: Participate in a poker planning session and show off your Jolla
Version: 0.4
Release: 1
Group: Qt/Qt
URL: http://example.org/
License: GPLv3
Sources:
- - '%{name}-%{version}.tar.bz2'
Description: |-
  This app will let you choose your poker planning evaluation in a set
of cards, and show it to your scrum-mates in due time, and on your Jolla.
Configure: none
Builder: qtc5
PkgConfigBR:
- - Qt5Quick
- - Qt5Qml
- - Qt5Core
- - sailfishapp = 0.0.10
Requires:
- - sailfishsilica-qt5 = 0.10.9
Files:
- - '%{_bindir}'
- - '%{_datadir}/%{name}/qml'
- - '%{_datadir}/%{name}/languages'
- - '%{_datadir}/applications/%{name}.desktop'
- - '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png'
- - /usr/bin
- - /usr/share/MkPokerPlanning
- - /usr/share/MkPokerPlanning/languages
- - /usr/share/applications
- - /usr/share/icons/hicolor/86x86/apps
PkgBR: []

Can someone help me spot the problem ?

Thanks in advance,

Franck
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSxuPQAAoJEGEvoAir78Ro/GMH/29yqwvzuFSHX5afQlCIK/IY
H7lEZKoAvrbuPNzna+VffhFFuz2clz/ceFimpTykCqyHlXU/nV5Q9oNq/oEobjoL
l2A1n0KVcrZ50QBKe6/N4QWC265nuFi+MU05dR5sbrvjY8aa1Obq0DshY4EnoZwK
kWD6a+069FD3VgLFpDh7ZcGFdSq8Xwe4jW9nxImGVkkWJkkKP4zrgCEyvMp5L8tY
h5BAOxTLhaSi4xsZ6PhevVMjFmLMNTgmw+V/81NnY0Zd5Wv89EJHGHGxz/X3K1hK
Taz7TAxJt0w87jxp5rimej0j1ujh+erT2dMuM+zZ0nV4YWTQvP3zm/uiKfFd8pc=
=/qxx
-END PGP SIGNATURE-
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Adding files to RPM packages

2014-01-03 Thread Andrey Kozhevnikov

show pro file

On 03.01.2014 22:22, Franck Routier (perso) wrote:

Hi,

still in the process of finishing my first application...

Now I have translation files (.ts and .qm), that are located in a
'languages' directory.

I have added them to the .pro file, and I have modified the yaml RPM
definition, but I must be missing something, as I get an RPM error
error:
File not found:
/home/deploy/installroot/usr/share/MkPokerPlanning/languages

Indeed, I can find my files on the mersdk VM in
/home/mersdk/devl/MkPokerPlanning/languages, but it does not make it
to /home/deploy/installroot/usr/share/MkPokerPlanning/...

Here is my yaml:

Name: MkPokerPlanning
Summary: Participate in a poker planning session and show off your Jolla
Version: 0.4
Release: 1
Group: Qt/Qt
URL: http://example.org/
License: GPLv3
Sources:
- '%{name}-%{version}.tar.bz2'
Description: |-
   This app will let you choose your poker planning evaluation in a set
of cards, and show it to your scrum-mates in due time, and on your Jolla.
Configure: none
Builder: qtc5
PkgConfigBR:
- Qt5Quick
- Qt5Qml
- Qt5Core
- sailfishapp = 0.0.10
Requires:
- sailfishsilica-qt5 = 0.10.9
Files:
- '%{_bindir}'
- '%{_datadir}/%{name}/qml'
- '%{_datadir}/%{name}/languages'
- '%{_datadir}/applications/%{name}.desktop'
- '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png'
- /usr/bin
- /usr/share/MkPokerPlanning
- /usr/share/MkPokerPlanning/languages
- /usr/share/applications
- /usr/share/icons/hicolor/86x86/apps
PkgBR: []

Can someone help me spot the problem ?

Thanks in advance,

Franck
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Adding files to RPM packages

2014-01-03 Thread Franck Routier (perso)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

pro file is as follows:

# The name of your app.
# NOTICE: name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, following needs to be
# done to match new name:
# - corresponding QML filename must be changed
# - desktop icon filename must be changed
# - desktop filename must be changed
# - icon definition filename in desktop file must be changed
TARGET = MkPokerPlanning

CONFIG += sailfishapp

SOURCES += src/MkPokerPlanning.cpp

evil_hack_to_fool_lupdate {
SOURCES += \
qml/MkPokerPlanning.qml \
qml/cover/CoverPage.qml \
qml/pages/MainPage.qml \
qml/pages/Card.qml \
qml/pages/CardPage.qml \
qml/pages/About.qml \
qml/pages/CardDeckModel.qml \
qml/pages/AppSettings.qml \
qml/pages/SettingsPage.qml
}

OTHER_FILES += qml/MkPokerPlanning.qml \
qml/cover/CoverPage.qml \
rpm/MkPokerPlanning.spec \
rpm/MkPokerPlanning.yaml \
MkPokerPlanning.desktop \
qml/pages/MainPage.qml \
qml/pages/Card.qml \
qml/pages/CardPage.qml \
qml/pages/About.qml \
LICENSE.txt \
changelog \
qml/pages/CardDeckModel.qml \
qml/pages/AppSettings.qml \
qml/pages/SettingsPage.qml \
languages/mkpokerplanning_fr.ts \
languages/mkpokerplanning_fr.qm

RESOURCES += \
images.qrc

HEADERS +=

TRANSLATIONS = languages/mkpokerplanning_fr.ts

Le 03/01/2014 17:30, Andrey Kozhevnikov a écrit :
 show pro file
 
 On 03.01.2014 22:22, Franck Routier (perso) wrote:
 Hi,
 
 still in the process of finishing my first application...
 
 Now I have translation files (.ts and .qm), that are located in
 a 'languages' directory.
 
 I have added them to the .pro file, and I have modified the yaml
 RPM definition, but I must be missing something, as I get an RPM
 error error: File not found: 
 /home/deploy/installroot/usr/share/MkPokerPlanning/languages
 
 Indeed, I can find my files on the mersdk VM in 
 /home/mersdk/devl/MkPokerPlanning/languages, but it does not make
 it to /home/deploy/installroot/usr/share/MkPokerPlanning/...
 
 Here is my yaml:
 
 Name: MkPokerPlanning Summary: Participate in a poker planning
 session and show off your Jolla Version: 0.4 Release: 1 Group:
 Qt/Qt URL: http://example.org/ License: GPLv3 Sources: -
 '%{name}-%{version}.tar.bz2' Description: |- This app will let
 you choose your poker planning evaluation in a set of cards, and
 show it to your scrum-mates in due time, and on your Jolla. 
 Configure: none Builder: qtc5 PkgConfigBR: - Qt5Quick - Qt5Qml -
 Qt5Core - sailfishapp = 0.0.10 Requires: - sailfishsilica-qt5 =
 0.10.9 Files: - '%{_bindir}' - '%{_datadir}/%{name}/qml' -
 '%{_datadir}/%{name}/languages' -
 '%{_datadir}/applications/%{name}.desktop' -
 '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png' - /usr/bin -
 /usr/share/MkPokerPlanning -
 /usr/share/MkPokerPlanning/languages - /usr/share/applications -
 /usr/share/icons/hicolor/86x86/apps PkgBR: []
 
 Can someone help me spot the problem ?
 
 Thanks in advance,
 
 Franck ___ 
 SailfishOS.org Devel mailing list
 
 ___ SailfishOS.org
 Devel mailing list

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSxuadAAoJEGEvoAir78RoZRkIAIIEDJxgXdICX5nE9NMl798x
0Y6KXmu1+6oYPGTMzVdmVvHA1VWkyzuQNftq5DTtgxW/F6TCxQUS0RHa5wzvafyr
8ij79aoYRVW6HklG9m9YCyA7533QYwJegRtCRhn5e3gR0f1wckxxpTlKV0EA/Gy2
CD/X8FEUI9hOu5c4L86vVwTVwtbdNEicMfP3F6rGidv0eEBYmMcZiF8IkX1VSKbx
xmWm65TcbyI1G7zf5x7rtfhA9Y/s1ZlzyJ2A6+cRuJna1wvVpFsxAoKiQd9gyYi1
hkgeYkTEuOpdMMQvmwYf6lvmfpHn3BZCsfgd9jRTtKCBHkVeJlqVUC66ifL7o3Y=
=Eblp
-END PGP SIGNATURE-
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Adding files to RPM packages

2014-01-03 Thread Andrey Kozhevnikov

you need to add your translations to INSTALLS

On 03.01.2014 22:34, Franck Routier (perso) wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

pro file is as follows:

# The name of your app.
# NOTICE: name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, following needs to be
# done to match new name:
# - corresponding QML filename must be changed
# - desktop icon filename must be changed
# - desktop filename must be changed
# - icon definition filename in desktop file must be changed
TARGET = MkPokerPlanning

CONFIG += sailfishapp

SOURCES += src/MkPokerPlanning.cpp

evil_hack_to_fool_lupdate {
 SOURCES += \
 qml/MkPokerPlanning.qml \
 qml/cover/CoverPage.qml \
 qml/pages/MainPage.qml \
 qml/pages/Card.qml \
 qml/pages/CardPage.qml \
 qml/pages/About.qml \
 qml/pages/CardDeckModel.qml \
 qml/pages/AppSettings.qml \
 qml/pages/SettingsPage.qml
}

OTHER_FILES += qml/MkPokerPlanning.qml \
 qml/cover/CoverPage.qml \
 rpm/MkPokerPlanning.spec \
 rpm/MkPokerPlanning.yaml \
 MkPokerPlanning.desktop \
 qml/pages/MainPage.qml \
 qml/pages/Card.qml \
 qml/pages/CardPage.qml \
 qml/pages/About.qml \
 LICENSE.txt \
 changelog \
 qml/pages/CardDeckModel.qml \
 qml/pages/AppSettings.qml \
 qml/pages/SettingsPage.qml \
 languages/mkpokerplanning_fr.ts \
 languages/mkpokerplanning_fr.qm

RESOURCES += \
 images.qrc

HEADERS +=

TRANSLATIONS = languages/mkpokerplanning_fr.ts

Le 03/01/2014 17:30, Andrey Kozhevnikov a écrit :

show pro file

On 03.01.2014 22:22, Franck Routier (perso) wrote:

Hi,

still in the process of finishing my first application...

Now I have translation files (.ts and .qm), that are located in
a 'languages' directory.

I have added them to the .pro file, and I have modified the yaml
RPM definition, but I must be missing something, as I get an RPM
error error: File not found:
/home/deploy/installroot/usr/share/MkPokerPlanning/languages

Indeed, I can find my files on the mersdk VM in
/home/mersdk/devl/MkPokerPlanning/languages, but it does not make
it to /home/deploy/installroot/usr/share/MkPokerPlanning/...

Here is my yaml:

Name: MkPokerPlanning Summary: Participate in a poker planning
session and show off your Jolla Version: 0.4 Release: 1 Group:
Qt/Qt URL: http://example.org/ License: GPLv3 Sources: -
'%{name}-%{version}.tar.bz2' Description: |- This app will let
you choose your poker planning evaluation in a set of cards, and
show it to your scrum-mates in due time, and on your Jolla.
Configure: none Builder: qtc5 PkgConfigBR: - Qt5Quick - Qt5Qml -
Qt5Core - sailfishapp = 0.0.10 Requires: - sailfishsilica-qt5 =
0.10.9 Files: - '%{_bindir}' - '%{_datadir}/%{name}/qml' -
'%{_datadir}/%{name}/languages' -
'%{_datadir}/applications/%{name}.desktop' -
'%{_datadir}/icons/hicolor/86x86/apps/%{name}.png' - /usr/bin -
/usr/share/MkPokerPlanning -
/usr/share/MkPokerPlanning/languages - /usr/share/applications -
/usr/share/icons/hicolor/86x86/apps PkgBR: []

Can someone help me spot the problem ?

Thanks in advance,

Franck ___
SailfishOS.org Devel mailing list

___ SailfishOS.org
Devel mailing list

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSxuadAAoJEGEvoAir78RoZRkIAIIEDJxgXdICX5nE9NMl798x
0Y6KXmu1+6oYPGTMzVdmVvHA1VWkyzuQNftq5DTtgxW/F6TCxQUS0RHa5wzvafyr
8ij79aoYRVW6HklG9m9YCyA7533QYwJegRtCRhn5e3gR0f1wckxxpTlKV0EA/Gy2
CD/X8FEUI9hOu5c4L86vVwTVwtbdNEicMfP3F6rGidv0eEBYmMcZiF8IkX1VSKbx
xmWm65TcbyI1G7zf5x7rtfhA9Y/s1ZlzyJ2A6+cRuJna1wvVpFsxAoKiQd9gyYi1
hkgeYkTEuOpdMMQvmwYf6lvmfpHn3BZCsfgd9jRTtKCBHkVeJlqVUC66ifL7o3Y=
=Eblp
-END PGP SIGNATURE-
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


[SailfishDevel] Brazillian?

2014-01-03 Thread Javier Ferreira
Have Some Brazilian developer for teacher me?
Em 02/01/2014 19:27, Sven Putze sailfish...@hardcodes.de escreveu:

Hi there,

with the OS comes artwork and to be more specific: there come icons. What
is the intended way to reuse those icons in own apps? Yes they are in the
filesystem somewhere, I could read them from there. But what if their
filename or location changes? This would break my app. I could copy them
over to my app. This can [*] be a copyright problem, this would lead to
duplicates everywhere.
Is there an API to access those OS specific icons? If no, is there anything
planned? Or did I simply miss it in the SailfishOS documentation?

BR.
Sven

[*] Haven't checked that in detail
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list

[SailfishDevel] SmoothedAnimation and Segmentation Fault

2014-01-03 Thread Kimmo Lindholm
Hi,

I'm having issues with SmoothedAnimation giving Segmentation Fault sometimes.

Googling shows that I'm not alone, but could not find any recorded workarounds
I changed it to NumberAnimation and no segv anymore...

Should this be reported somewhere? or waht?

-kimmo

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SmoothedAnimation and Segmentation Fault

2014-01-03 Thread Timur Kristóf
Hi Kimmo,

I suggest reporting it on together.jolla.com :)

Cheers,
Timur


Timur



On Fri, Jan 3, 2014 at 9:38 PM, Kimmo Lindholm kimmo.lindh...@eke.fiwrote:

  Hi,

 I’m having issues with SmoothedAnimation giving Segmentation Fault
 sometimes.

 Googling shows that I’m not alone, but could not find any recorded
 workarounds
 I changed it to NumberAnimation and no segv anymore…

 Should this be reported somewhere? or waht?

 -kimmo


 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list