Re: [SailfishDevel] Patch: Clock on actdead charging UI

2016-07-27 Thread Slava Monich
You better use Format.formatDate (provided by Silica) to format the time, like this component does: /usr/lib/qt5/qml/com/jolla/settings/system/CurrentDateSettingDisplay.qml Cheers, -Slava Hi, Some time ago I proposed to add a clock to the actdead charging UI in TJC since it would allow a

Re: [SailfishDevel] SQLite linking

2017-01-18 Thread Slava Monich
I believe rpm automatically detects the dependencies, even if they are not in the spec. Removing the dependency from the spec might not help. There may be some hackish ways of removing a dependency from the rpm headers but I don't think that it would be a good idea. Better to spend time on

Re: [SailfishDevel] [Minutes] Sailfish OS Open Source Community Collaboration Meeting, 5th of September 2016

2016-09-07 Thread Slava Monich
Hi Andrew, To make matters worse, the plugin requirements may change over time, meaning that a system upgrade may break the app because the app didn't request access to some features required by the updated plugins. Application shouldn't know/care about how does plugin work. Plugins are

Re: [SailfishDevel] [Minutes] Sailfish OS Open Source Community Collaboration Meeting, 5th of September 2016

2016-09-07 Thread Slava Monich
) is not a very user friendly solution, and asking Jolla to hand verify all apps in the store isn't very scalable either. On Wed, Sep 7, 2016 at 11:23 AM, Slava Monich <slava.mon...@jolla.com <mailto:slava.mon...@jolla.com>> wrote: I feel a bit sceptical. If the system supports

Re: [SailfishDevel] problem with libpng

2016-11-07 Thread Slava Monich
Regarding power consumption. I doubt that you need to run you RNG or whatever when the screen is locked and the display is switched off. That's one direction in which you can optimize your code, i.e. pause the game when the screen is locked and the display is off and resume it when the

Re: [SailfishDevel] SilicaWebView, google sign-in button and app authorization

2016-10-16 Thread Slava Monich
Please excuse my ignorance but how can the server possibly tell the difference between the browser and a webview sending exactly the same HTTP requests? Just curious. Cheers, -Slava There is no working solution because google prohibited oauth authorization via webviews 2016-10-16 15:02

Re: [SailfishDevel] QtLocation | Qt 5.6

2017-01-03 Thread Slava Monich
As far as I understand, QtLocation license terms have changed and that prevents it from being upgraded to 5.6 which is its first stable release. That's why it's not allowed and won't be allowed even after the rest of Qt is upgraded to 5.6. Qt 5.6 is coming with the next update. Those modules

Re: [SailfishDevel] QtLocation | Qt 5.6

2017-01-03 Thread Slava Monich
e situation would change in future? I wonder whether all platforms are hit by it or whether Ubuntu Touch complies with the new terms and, as a result, has an advantage when compared to SFOS in this case. Best wishes, Rinigus On Tue Jan 3 10:20

Re: [SailfishDevel] lock JP01 on 4G, is it possible?

2017-04-21 Thread Slava Monich
of the merge request patch still gives you useful feedback? Date: Thu, 20 Apr 2017 18:41:49 +0300 From: Slava Monich <slava.mon...@jolla.com> To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] lock JP01

Re: [SailfishDevel] lock JP01 on 4G, is it possible?

2017-04-20 Thread Slava Monich
, it strictly allows only 3G)? Thank you Claudio Message: 1 Date: Fri, 14 Apr 2017 20:36:50 +0300 From: Slava Monich <slava.mon...@jolla.com> To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] lock JP01

Re: [SailfishDevel] Qt Network: "Network access is disabled" after network change

2017-04-23 Thread Slava Monich
Network status detection in Qt 5.6 is unreliable when the system is switching between wifi and mobile data. That results in QNetworkAccessManager sometimes thinking that network access is disabled when in fact the device is online. At some point I attempted to fix it

Re: [SailfishDevel] SQLite linking

2017-03-06 Thread Slava Monich
On 06/03/17 10:49, Martin Kampas wrote: Hi Rinigus, Did you consider this recommendation? "To simplify matters, SQLite is also available as a pre-packaged amalgamation source code file: sqlite3.c. The amalgamation is a single file of ANSI-C code that implements the entire SQLite library. The

Re: [SailfishDevel] lock JP01 on 4G, is it possible?

2017-04-14 Thread Slava Monich
Hi all, This should allow to force the use of the particular cellular technology: https://git.merproject.org/mer-core/ofono/merge_requests/112 Obviously, there's no UI for this option and there won't be any time soon, but once this patch is merged, you will be able to enable it from the

Re: [SailfishDevel] lock JP01 on 4G, is it possible?

2017-04-24 Thread Slava Monich
? Date: Thu, 20 Apr 2017 18:41:49 +0300 From: Slava Monich <slava.mon...@jolla.com> To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] lock JP01 on 4G, is it possible? Message-ID: <719e202b-892a-29d7-404f-

Re: [SailfishDevel] Nemo DBus typedCall

2017-06-11 Thread Slava Monich
Yes, in that respect the changes are backward compatible. Whatever you are getting from GetProperties can be monitored by handling the PropertyChanged signals. You just need to be prepared that SetProperty and other calls (Connect, Disconnect etc.) may respond with

Re: [SailfishDevel] Nemo DBus typedCall

2017-06-11 Thread Slava Monich
And keep in mind that starting with Sailfish OS 2.1.1 non-privileged processes won't be able to set this property (as well as do a few other connman things, e.g. manipulate the services). In order to be able to use the restricted D-Bus APIs you would have to ask the launcher to run your app

Re: [SailfishDevel] Qt Network: "Network access is disabled" after network change

2017-05-01 Thread Slava Monich
it differently but we have what we have. Cheers, -Slava Thanks for the quick reply; I was actually hoping to collect some more background intel on this issue. On Sun, Apr 30, 2017 at 10:56 PM, Slava Monich <slava.mon...@jolla.com <mailto:slava.mon...@jolla.com>> wrote: U

Re: [SailfishDevel] Qt Network: "Network access is disabled" after network change

2017-04-30 Thread Slava Monich
, 2017 at 11:33 AM, Slava Monich <slava.mon...@jolla.com <mailto:slava.mon...@jolla.com>> wrote: Network status detection in Qt 5.6 is unreliable when the system is switching between wifi and mobile data. That results in QNetworkAccessManager sometimes thinking that ne

Re: [SailfishDevel] Missing /usr/bin/sailfish-qml on the phone

2017-10-18 Thread Slava Monich
Hi Harri, You need to install libsailfishapp-launcher package on your phone. Add "Requires: libsailfishapp-launcher" to your .spec file so that this package gets installed automatically together with your app. Here is the source for the launcher, for your reference:

Re: [SailfishDevel] OS version limits

2018-06-15 Thread Slava Monich
You need to build against old SDK to keep your binary compatible with older releases of Sailfish OS. Mer OBS still has 1.0.5 target available for armv7 (and 1.1.something for i486), use that to build your rpms. And generally, use OBS to build rpms for the store :) Cheers, -Slava Hi, When I

Re: [SailfishDevel] Missing /usr/bin/sailfish-qml on the phone

2017-10-20 Thread Slava Monich
, 2017, at 00:41, Slava Monich wrote: ... but you can install an rpm by somehow transferring it to the phone (e.g. by downloading it with the browser) and then tapping it in Settings -> Transfers. You would have to allow installing untrusted software first on the Settings -> Untrusted softwar

Re: [SailfishDevel] Missing /usr/bin/sailfish-qml on the phone

2017-10-19 Thread Slava Monich
n maybe: why aren't the repositories up-to-date by default? Thanks! *De :* Devel <devel-boun...@lists.sailfishos.org> de la part de Slava Monich <slava.mon...@jolla.com> *Envoyé :* mercredi 18 octobre 2017 08:

Re: [SailfishDevel] Missing /usr/bin/sailfish-qml on the phone

2017-10-20 Thread Slava Monich
could the behaviour be changed? *De :* Devel <devel-boun...@lists.sailfishos.org> de la part de Slava Monich <slava.mon...@jolla.com> *Envoyé :* vendredi 20 octobre 2017 09:46 *À :* devel@lists.sailfishos.org *Obje

Re: [SailfishDevel] Looking for IOCTL commands to check phone credit

2018-01-25 Thread Slava Monich
Hi Laurent, It's connman who maintains the data counters - and those are shown on Settings -> Data counters page. They are fairly accurate, although not 100%. Besides, some operators may exclude some traffic from their data usage calculation, the device can't possibly know anything about

Re: [SailfishDevel] DBus events for incoming call statuses

2018-07-17 Thread Slava Monich
There's also ofono D-Bus interface (the original source of pretty much everything related to telephony) and libqofono library: https://git.merproject.org/mer-core/libqofono Harbour apps can't link to it though but there's nothing wrong with compiling bits of it into your app. Cheers, -Slava

Re: [SailfishDevel] app hangs on shutdown

2018-09-09 Thread Slava Monich
Have you tried debugging with a debugger (run the app under gdb and examine the backtrace when it gets stuck)? That seems to be the obvious first step to me. Cheers, -Slava We debugged a failure to initiate destruction further. As suggested by @wdehoog, I added Connections {

Re: [SailfishDevel] app hangs on shutdown

2018-09-09 Thread Slava Monich
app, so it is not clear what I should attach the debugger to. sailfish-qml? Rinigus On Sun, Sep 9, 2018 at 12:35 PM Slava Monich <mailto:slava.mon...@jolla.com>> wrote: Have you tried debugging with a debugger (run the app under gdb and examine the backtrace when it gets stuck)? That see

Re: [SailfishDevel] Mer PIM build questions

2018-01-18 Thread Slava Monich
On 18/01/18 17:35, Lukáš Karas wrote: Timed is required by mKCal, see: https://git.merproject.org/mer-core/mkcal/blob/master/src/src.pro#L44 I do something wrong probably, I already have iodata in image: https://github.com/Karry/mer-devel/blob/master/pim-docker/Dockerfile I'm not quite sure

Re: [SailfishDevel] ListView , Image with large height and EGL errors (AL13N)

2019-05-31 Thread Slava Monich
Those who don't like the idea of hardcoding 3264 (or any other number) in their code, can query GL_MAX_TEXTURE_SIZE instead: https://github.com/monich/harbour-foilpics/blob/master/src/FoilPicsImageProvider.cpp#L57 Cheers, -Slava when i use Image with big images, i use code like this:|

Re: [SailfishDevel] SyncML topic revived

2019-06-08 Thread Slava Monich
Hi, Hi, thank you for answering. I see both available in the SDK (I still have 3.0.2.28) kf5bluezqt-bluez5-5.24.0+git15-1.3.2.jolla.i486 libbluez-qt5-0.1.26-1.3.2.jolla.i486 but I can not find source for libbluez-qt5 on mer. I find a note in Changelog for SFOS 2.2.1 Can someone point to the

Re: [SailfishDevel] SyncML topic revived

2019-06-22 Thread Slava Monich
On 22/06/2019 23:39, Tone Kastlunger wrote: Looks like merproject is closed. Hmm? Havent heard of this; it's available at git.sailfishos.org ; Yeah, don't panic! It's just a re-branding :) AFAIK old merproject.org credentials should work at sailfishos.org. At least mine did. Cheers,

Re: [SailfishDevel] SyncML topic revived

2019-07-10 Thread Slava Monich
On 22/06/2019 23:39, Tone Kastlunger wrote: Looks like merproject is closed. Hmm? Havent heard of this; it's available at git.sailfishos.org ; Yeah, don't panic! It's just a re-branding :) AFAIK old merproject.org credentials should work at sailfishos.org. At least mine did. Cheers,

Re: [SailfishDevel] SyncML profile Nokia Services what is the difference

2019-07-12 Thread Slava Monich
https://git.sailfishos.org/mer-core/libmce-qt/blob/master/lib/include/qmcebatterystatus.h On 13/07/2019 00:30, Tone Kastlunger wrote: Btw, your patch is not building on my sdk: Where does the #include come from? As you can see, I should have everything installed in the target for it to build;

Re: [SailfishDevel] QML IconButton in SFOS 3.1

2019-08-14 Thread Slava Monich
on.color = undefined : file:///... Error: Cannot assign [undefined] to QColor So, it seems that this property was introduced before 3.1.x, but not used in 3.0.3. Rinigus On Wed, Aug 14, 2019 at 1:07 PM Slava Monich <mailto:slava.mon...@jolla.com>> wrote: Hi Rinigus, AFAI

Re: [SailfishDevel] QML IconButton in SFOS 3.1

2019-08-03 Thread Slava Monich
I don't think there's an "official" way of maintaining backward compatibility but I'd humbly suggest something like if ("color" in icon) ... e.g. I do this kind of thing to notifications:     Notification {     id: clipboardNotification     previewBody: "Copied to clipboard"    

Re: [SailfishDevel] QML IconButton in SFOS 3.1

2019-08-14 Thread Slava Monich
age.icon) image.icon.color=undefined; } } results in lots of warnings (Cannot assigned [undefined] to QColor). Maybe there is some var I can check in QML to state that SFOS version is >= 3.1.0.0? Rinigus

Re: [SailfishDevel] SDK versioning

2019-07-26 Thread Slava Monich
ted in separate builds for current and older Sfos versions (not sure its SFOS to blame here, though). So, targeting older versions of Sfos will not work if you hit these cases. Cheers, Rinigus On Friday, 26 July 2019, Slava Monich wrote: Even though it's not directly related to the original quest

Re: [SailfishDevel] SDK versioning

2019-07-25 Thread Slava Monich
Even though it's not directly related to the original question but IMO there's isn't much sense in building Harbour apps against the latest available SDK. That would almost certainly make your app incompatible with older releases of SFOS. I build my Harbour (and OpenRepos) apps against the

Re: [SailfishDevel] Harbour icon templates

2019-11-08 Thread Slava Monich
You need to download Sailfish-Apps-icon-template.zip (by pressing Download zip button), it has those templates in all kinds of vector formats too. Cheers, -Slava Hi, The icon templates in https://sailfishos.org/design/icons/ are offered in 86x86 only (the pngs at least), while expected

Re: [SailfishDevel] How to make a theme related icon

2019-12-10 Thread Slava Monich
I use this image provider in my Jolla store apps to colorize grayscale svgs according to the theme: https://github.com/monich/harbour-lib/blob/master/src/HarbourImageProvider.cpp Sample usage: https://github.com/monich/harbour-matkakortti/blob/master/qml/MainPage.qml#L11 and registration:

Re: [SailfishDevel] Get current SSID?

2019-12-01 Thread Slava Monich
Hi Anton, I would say the easiest way is to find a connman service which matches the following criteria: 1. "Type" property value is "wifi" 2. "State" property value is "online" or "ready" Then the value of its "Name" property would be SSID of the AP you're connected to, converted to text

Re: [SailfishDevel] symbol lookup error from syncemail-client (undefined symbol: _ZN5Buteo13PluginManagerC1Ev)

2020-01-03 Thread Slava Monich
_ZN5Buteo13PluginManagerC1Ev is Buteo::PluginManager::PluginManager() $ c++filt _ZN5Buteo13PluginManagerC1Ev Buteo::PluginManager::PluginManager() There's no such thing: https://git.sailfishos.org/deloptes/buteo-syncfw/blob/master/libbuteosyncfw/pluginmgr/PluginManager.h#L96 These are

Re: [SailfishDevel] Dialog/ListView/Menu/Search

2020-01-04 Thread Slava Monich
How about this? Dialog { SilicaListView { anchors.fill: parent PullDownMenu { /* MenuItems */ } header: Column { width: parent.width DialogHeader { title: "Title" } SearchField { width:

Re: [SailfishDevel] Error on upload to harbour

2019-12-30 Thread Slava Monich
Most likely, Harbour isn't set up (yet) to handle 3.2.0 specific packages. The most recent version in "OS version limit" drop-down is 3.0.3.* Does your app really require SFOS 3.2.0? I personally prefer building applications compatible with SFOS all the way down to (at least) 2.0, to cover

Re: [SailfishDevel] Lipstick not launching app

2020-04-14 Thread Slava Monich
Just so you know, boosters may have to go because of this change in glibc:    https://sourceware.org/bugzilla/show_bug.cgi?id=24323 It has been reverted in Sailfish OS: https://git.sailfishos.org/mer-core/glibc/commit/df05690 but at some point boosters may get replaced with simple fork()