Re: [SailfishDevel] QML IconButton in SFOS 3.1

2019-08-13 Thread rinigus
Hi,

it would be good to get some kind of official position on QML IconButton
issue. Is it considered for fixing or it will stay as it is? Slava's
suggestion didn't work since color member is available on older versions of
SFOS as well.

Rinigus

On Wed, Aug 7, 2019 at 2:29 PM rinigus  wrote:

> Hi,
>
> any ideas on how to fix this IconButton issue? Is there a way to query
> SFOS version and make an ugly fix on the basis of that...
>
> Cheers,
>
> Rinigus
>
> On Sat, Aug 3, 2019 at 6:06 PM rinigus  wrote:
>
>> Slava,
>>
>> unfortunately, it doesn't work. IconButton property icon has color
>> subpropery defined in earlier SFOS versions as well. So,
>>
>> IconButton {
>>
>> id: image
>>
>> [...]
>>
>> Component.onCompleted: {
>>
>> if ("color" in image.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
>>
>> On Sat, Aug 3, 2019 at 5:33 PM Slava Monich 
>> wrote:
>>
>>> 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"
>>> Component.onCompleted: {
>>> if ("icon" in clipboardNotification) {
>>> clipboardNotification.icon = "icon-s-clipboard"
>>> }
>>> }
>>> }
>>>
>>> Cheers,
>>>
>>> -Slava
>>>
>>> Hi,
>>>
>>> due to the changes in handling of icon coloring of IconButton in SFOS
>>> 3.1, I am getting a steady stream of EA users complaining about the absence
>>> of icons in Pure Maps - as in
>>> http://talk.maemo.org/showpost.php?p=1558483=773 . The issue
>>> has been described well in
>>> https://together.jolla.com/question/209315/bug-31011-qml-iconbutton-problems/
>>> without any response from Jolla devs. Let's see if we can get this response
>>> over here.
>>>
>>> In Pure Maps, icons are expected to be drawn according to the styling
>>> given by map, not by ambience. I was told that I can set icon.color:
>>> undefined as a property. However, when doing it for SFOS versions <3.1,
>>> this leads to lots of warning messages on stdout. What's an official way
>>> that I am expected to use when I want to support earlier SFOS versions as
>>> well?
>>>
>>> Cheers,
>>>
>>> Rinigus
>>>
>>>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] SyncML: Can not edit calendar events created on the PC

2019-08-13 Thread Chris Adams
Hi,

I'm not sure if this is what you're seeing or not, but some applications are 
members of the privileged group, which allows them to access data under 
/home/nemo/.local/share/system/privileged/ directory, which includes the mkcal 
database etc.

You can modify the packaging for the appropriate syncml server process to 
ensure it installs a config file to the mapplauncherd's privileges directory 
(see e.g. 
https://git.merproject.org/mer-core/buteo-syncfw/blob/master/rpm/buteo-syncfw-qt5.privileges
 for msyncd) - although if it is a child process of msyncd it shouldn't need 
anything extra as it should inherit egid from parent process IIRC.

If the issue you're seeing is unrelated to that, it might be that at some point 
in the sync process a particular notebook (i.e. calendar) is being set as 
read-only in the database.  The mKCal::Notebook::setIsReadOnly() method causes 
the FLAG_IS_READONLY to be set into the Flags column for that notebook when it 
is stored.  A read-only notebook is considered invalid for writes (i.e. it can 
be used to archive an old notebook which is no longer valid for reads/writes).

If it's unrelated to these, then I'm not sure what the issue might be.

Best regards,
Chris.



From: Devel [devel-boun...@lists.sailfishos.org] on behalf of deloptes 
[delop...@gmail.com]
Sent: Sunday, August 11, 2019 3:08 AM
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] SyncML: Can not edit calendar events created on
the PC

Tone Kastlunger wrote:

> Sounds more like a permission issue to me?
> Could be the user of the SyncML (server?) is not authorized to modify but
> just to add entries?
>

I don't know where to look at. This is why I am asking.
At the end it is stored in a sqlite DB. How am I supposed to understand
where these permissions are set.

I found one article describing calendar in Sailfis
https://weekly-geekly.github.io/articles/329692/index.html

But still not clear where this is set. I hope someone here can give me a
hint.

BTW: I am using the sync on daily bases already, like I did with N9.

regards

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org