[SailfishDevel] Hardware RNG

2014-02-26 Thread Benoît HERVIER

Hi Sailor,

I notice there is a /dev/hwrng file. Which hardware parts/chipset is 
involved for generating the pseudo random number ?


Regards,
--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Does sailfish run wine?

2014-02-11 Thread Benoît HERVIER

Or Windows x86 application if you run Sailfish on x86 cpu. :p

In fact, no. Currently,  wine depends on libx11. So i don't think even 
arm application will run.


---
Benoît HERVIER - http://khertan.net/

Le 2014-02-11 12:42, Andrey Kozhevnikov a écrit :

Yes. Windows ARM applications :D
And please don't use developer mailing list for not relevant questions 
:)


On 11.02.2014 17:38, David Jensen wrote:
Since Sailfish is Linux, does Wine, and therefore Windows programs run 
on it?






David Jensen

  ___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] [Sailfish IDE] Can't run app in Debug mode anymore

2014-01-21 Thread Benoît HERVIER

It was working in Alpha2 SDK, and is broken in Alpha3 SDK ... :)

---
Benoît HERVIER - http://khertan.net/

Le 2014-01-21 16:14, winfried.do...@xmsnet.nl a écrit :
Are you sure it worked some weeks ago? Because as far as I know, 
debugging

has so far never worked, not on the emulator nor on the target.

I recently encountered the same issue and on IRC some sailors replied 
that

it's currently a known issue that will be fixed in a future SDK update.

regards,

Winfried









Hello,
This week-end, I wanted to investigate some segfault (easily 
reproducible,

see here:
https://lists.sailfishos.org/pipermail/devel/2013-December/001707.html 
)
And for some reason, I found out that I am not able to run an app in 
Debug

anymore :/
Few weeks ago it worked, but now, the Run Debug command just get stuck
forever at the Lauching stage (after deployment)You can find below 
the
last lines of the debug logs (I don't know why copy/past add a d at 
the
beginning of each line)As anybody encountered the same issue? Any idea 
of

what I can do?

ps: I tried to uninstall/reinstall the SDK and recreate an application
from scratch, but it doesn't help.pps: If you want the very simple
segfaulting application described in the link above, I've put it here:
http://sthocs.free.fr/sailfish/Hello-0.1-1.armv7hl.rpm. Click on any 
Item

to go to the second page and pull back to the first page: segfault.

Thank you,Sylvain.


dState changed from DebuggerNotReady(0) to EngineSetupRequested(1)
dQUEUE: SETUP ENGINE
dNOTE: REQUEST REMOTE SETUP
dCALL: SETUP ENGINE
dEXAMINING
C:/Users/Sylvain/Sailfish/build-Hello-MerSDK_SailfishOS_i486_x86-Debug/Hello
dELF SECTIONS:  .interp .note.ABI-tag .note.gnu.build-id .gnu.hash 
.dynsym

.dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text
.fini .rodata .eh_frame_hdr .eh_frame .init_array .ctors .dtors .jcr
.dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info
.debug_abbrev .debug_line .debug_str .debug_ranges .debug_types 
.gdb_index

.shstrtab .symtab .strtab
dNOTE: REQUEST REMOTE SETUP
dCALL: SETUP ENGINE
dEXAMINING
C:/Users/Sylvain/Sailfish/build-Hello-MerSDK_SailfishOS_i486_x86-Debug/Hello
dELF SECTIONS:  .interp .note.ABI-tag .note.gnu.build-id .gnu.hash 
.dynsym

.dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text
.fini .rodata .eh_frame_hdr .eh_frame .init_array .ctors .dtors .jcr
.dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info
.debug_abbrev .debug_line .debug_str .debug_ranges .debug_types 
.gdb_index

.shstrtab .symtab .strtab
dTRYING TO START ADAPTER
dNOTE: REQUEST REMOTE SETUP


  
___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Harbour QA process...

2014-01-10 Thread Benoît HERVIER

Hi all !

I'm also waiting that using python interpreter as a dependancy are 
accepted in Harbour.
Also some tips suggest that s will be Python 3 ... but SailfishOS still 
have py2.7.


While i'm waiting to submit them to harbour, some of my Apps are already 
running on my device, and some are already available on OpenRepos.net 
which have now a client for Sailfish (beta).


So i suggest you to submit your apps to openrepos.net too. Harbour isn't 
anymore the only store for SailfishOS native apps.


Regards,

---
Benoît HERVIER - http://khertan.net/

Le 2014-01-10 10:28, Andreas Enbacka a écrit :

Thanks for the support :)

I will develop QSpot for SailfishOS, timetable however depends on when
certain libs will be whitelisted / allowed. I could also consider
publishing an alpha for testing somewhere else. I hope that the QA
process will be improved and eased, and possible more automation
added. Having submitted apps to several app stores, e.g., WP Store and
Google Play, I would stay Google Play is a good example how it should
work.

//Andreas

2014/1/10 Andreas Enbacka aenba...@gmail.com:
I would like to agree with Franck on this. I have also partly held 
off
developing for SailfishOS due to e.g., the Harbour process, as well 
as due

to APIs my apps need to are not allowed.

This seems backwards; if no cool apps exist for SailfishOS that use
certain API's, what's the incentive for Jolla to allow them in
Harbour?

Please please do develop for SailfishOS and *make* Jolla beg and
promise anything to get your superb app submitted to Harbour! ;)

  Kalle




___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Harbour QA process...

2014-01-10 Thread Benoît HERVIER
 

Indeed, we should suggest it to his author. But that s a beta, i didn't
think he want to push it now. 

Regards, 

---
Benoît HERVIER - http://khertan.net/

Le 2014-01-10 12:06, Gabriel Böhme a écrit : 

 What about pushing the WareHouse app to Jolla Store?! So everyone can find 
 it. :) 
 
 Don't know if possible, just an idea. 
 
 -- 
 
 Von meinem Nokia N9 gesendet 
 
 Benoît HERVIER schrieb am 10.01.14 11:53: 
 Hi all !
 
 I'm also waiting that using python interpreter as a dependancy are accepted 
 in Harbour.
 Also some tips suggest that s will be Python 3 ... but SailfishOS still have 
 py2.7.
 
 While i'm waiting to submit them to harbour, some of my Apps are already 
 running on my device, and some are already available on OpenRepos.net which 
 have now a client for Sailfish (beta).
 
 So i suggest you to submit your apps to openrepos.net [1] too. Harbour isn't 
 anymore the only store for SailfishOS native apps.
 
 Regards,
 
 ---
 Benoît HERVIER - http://khertan.net/ [2]
 
 Le 2014-01-10 10:28, Andreas Enbacka a écrit :
 Thanks for the support :)
 
 I will develop QSpot for SailfishOS, timetable however depends on when
 certain libs will be whitelisted / allowed. I could also consider
 publishing an alpha for testing somewhere else. I hope that the QA
 process will be improved and eased, and possible more automation
 added. Having submitted apps to several app stores, e.g., WP Store and
 Google Play, I would stay Google Play is a good example how it should
 work.
 
 //Andreas
 2014/1/10 Andreas Enbacka aenba...@gmail.com:
 I would like to agree with Franck on this. I have also partly held off
 developing for SailfishOS due to e.g., the Harbour process, as well as due
 to APIs my apps need to are not allowed. This seems backwards; if no cool 
 apps exist for SailfishOS that use
 certain API's, what's the incentive for Jolla to allow them in
 Harbour?
 
 Please please do develop for SailfishOS and *make* Jolla beg and
 promise anything to get your superb app submitted to Harbour! ;)
 
 Kalle

 ___
 SailfishOS.org Devel mailing list
___
 SailfishOS.org Devel mailing list 

Links:
--
[1] http://openrepos.net
[2] http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Benoît HERVIER

Hi,

Great news.

I take the opportunity to ask if there will be a service to test apps 
remotely on real device in the future.
Currently ownNotes is working fine in the emulator, but someone report 
me that my app complains about missing libc.so.6 on a real device.


Thanks,
Regards

Le 2013-11-06 12:06, Karl Granström a écrit :

Ahoy all,

Today we're launching Jolla Harbour harbour.jolla.com, the portal
for submitting applications to the Jolla Store.
You can submit and manage your applications. Consumers will be able
to install them directly from their Jolla phones.

Here are some details about Jolla Harbour:

Joining and logging into Jolla Harbour:
Joining is free! You can create a Jolla account from the Jolla
Harbour landing page (harbour.jolla.com) or if you have pre-ordered
your Jolla phone, you have everything you need to get started. To
manage your account details, please visit account.jolla.com.

Support for Sailfish and Android™ applications:
You can submit both Sailfish and Android™ applications to Jolla
Harbour. The submission process is the same.

Start with free applications:
At launch, the Jolla Harbour and Jolla Store will support only free
applications. We are working hard to enable payment solutions and we
will keep you posted about these capabilities as they develop.

Binary package naming:
You will receive naming guidelines when you upload the binary package
to Jolla Harbour. You can also find guidelines on versioning at
http://semver.org.

Preparing your metadata:
Jolla Harbour needs to know a few things about your app:
 - An app icon for the Store  (86x86px, png) (Current SDK supports
90x90px images; more details to follow soon)
 - 1-3 screenshots (540x960px, png or jpg)
 - An optional Cover image for your Store page (516x252px, png or jpg)

Submission process:
To submit your application to Jolla Harbour, fill in the metadata for
it and upload the binary and required images. After you have submitted
your app, Jolla will start Quality Assurance testing.

Quality Assurance testing:
Jolla will perform QA testing on your applications on real Jolla
devices. We will get back to you with feedback on your app within a
few days. You will be notified on the QA results via the email address
you have registered to your Jolla account.


If you encounter any issues, please contact us by email,
developer-c...@jolla.com, or report them to the Sailfish developers
mailing list at devel at lists.sailfishos.org.

Happy hacking!
The Jolla Store Team


___
SailfishOS.org Devel mailing list


--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Benoît HERVIER
 with feedback on your app within a
  few days. You will
be notified on the QA results via the email
  address you have
registered to your Jolla account.
  If you encounter any issues,
please contact us by email,  [17]developer-c...@jolla.com, or report
them to the Sailfish
  developers mailing list at devel at
[18]lists.sailfishos.org [4].
 
 Happy hacking!
  The Jolla
Store Team
  ___
 
SailfishOS.org Devel mailing list
 
 
___
  SailfishOS.org
Devel mailing list
 
___
  SailfishOS.org
Devel mailing list
 
___
  SailfishOS.org
Devel mailing list
 
 
___
  SailfishOS.org
Devel mailing list
 
 
___
  SailfishOS.org
Devel mailing list
   References
 
  1.
mailto:jonni.raini...@jolla.com
  2.
mailto:devel-boun...@lists.sailfishos.org
  3.
mailto:devel-boun...@lists.sailfishos.org
  4.
mailto:marmistrz...@gmail.com
  5. mailto:coderusin...@gmail.com

 6. mailto:devel-boun...@lists.sailfishos.org
  7.
mailto:devel-boun...@lists.sailfishos.org
  8.
mailto:jonni.raini...@jolla.com
  9.
mailto:devel-boun...@lists.sailfishos.org
  10.
mailto:devel-boun...@lists.sailfishos.org
  11.
mailto:coderusin...@gmail.com
  12.
mailto:devel@lists.sailfishos.org
  13. http://harbour.jolla.com/
[5]
  14. http://harbour.jolla.com/ [5]
  15.
http://account.jolla.com/ [6]
  16. http://semver.org/ [7]
  17.
mailto:developer-c...@jolla.com
  18. http://lists.sailfishos.org/
[8]
 
  ___
 
SailfishOS.org Devel mailing list
 

___
 SailfishOS.org Devel
mailing list
 
 ___

SailfishOS.org Devel mailing list
 

___
 SailfishOS.org Devel
mailing list

-- 
Benoît HERVIER - http://khertan.net/



Links:
--
[1] http://harbour.jolla.com
[2]
http://account.jolla.com
[3] http://semver.org
[4]
http://lists.sailfishos.org
[5] http://harbour.jolla.com/
[6]
http://account.jolla.com/
[7] http://semver.org/
[8]
http://lists.sailfishos.org/
[9] http://guoyunhe.me/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Benoît HERVIER

Nope, i was just joking :)

Le 2013-11-06 18:51, Andrey Kozhevnikov a écrit :

lol, really? you think developing own libraries sucks? arent you
developed something really BIG?

On 06.11.2013 23:47, kher...@khertan.net wrote:

An analogy with boat about apps including his own libs :

https://mobile.twitter.com/usmanm/status/388407160159211520/photo/1?screen_name=usmanm#!/usmanm/status/388407160159211520/photo/1?screen_name=usmanm

:p

--
Benoît HERVIER - http://khertan.netLe 06/11/13 18:33 Marcin M. a 
écrit :

And somehow Debian and Ubuntu and ... do well it with real depends...



--Marcin




2013/11/6 Marcin M. marmistrz...@gmail.com

If everything handled correctly (assuming no 3rd party lib updates) 
what bad can happen?




-- Marcin




2013/11/6 Martin Grimme martin.gri...@gmail.com

Hi,

2013/11/6, 郭云鹤 guoyunhebr...@gmail.com:

i think every app should be independent. apps' dependence caused 
many

problems.


I think the same. While having deps and libraries and everything is
cool from a Linuxer's point of view, it will give a bad user
experience and just cry for breaking things when updating the OS or
other apps.

You can either try to get the library into Nemo, or include it in 
your

package or link to it statically. Those few kbytes wasted by this
approach should be no real problem, but worth it, if it improves the
user's experience and happiness with Sailfish devices.

I remember people crying they could not update their N900 because of
some library dependencies. Don't let this happen again.
1337 Linux h4x0rz in need of obscure libs and stuff will always find 
a

workaround to fulfill their needs, e.g. with 3rd party repositories.
:)

Keep in mind that Sailfish wants to be attractive to regular users 
and

user experience should be highly valued.


My 2 cents,
Martin




郭云鹤(Guo Yunhe)
http://guoyunhe.me/
在 2013-11-7 上午12:13,Marcin M. marmistrz...@gmail.com写道:


It's not a pity when it comes to libraries. It is when you create a
modular app ;) - divided into packages. But if there was an
in-app-purchase
system, it wouldn't be so bad :)

--
Marcin


2013/11/6 Mohammed Hassan mohammed.has...@jollamobile.com


I don't see it as a pity. I see it as an opportunity for everyone
to push their libraries and stuff to mer/nemo/sailfish.

An advantage of SailfishOS is that everyone can contribute and 
have

their
own applications, libraries and tools there.

Just my 0.02

Cheers,

On Wed, Nov 06, 2013 at 05:06:58PM +0100, Marcin M. wrote:

  Hi,
  Thanks! Well, it's a pity ;(
  Regards,

  --
  Marcin
  2013/11/6 Jonni Rainisto [1]jonni.raini...@jolla.com

  Hi,
  AFAIK. Currently you can only depend on mer/nemomobile 
packages, you

  cannot depend on store packages.
  re, Jonni
  
__


  From: [2]devel-boun...@lists.sailfishos.org
  [[3]devel-boun...@lists.sailfishos.org] on behalf of Marcin M.
  [[4]marmistrz...@gmail.com]
  Sent: Wednesday, November 06, 2013 5:34 PM
  To: Sailfish OS Developers
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  And what about in-app-store depends? (Free app, paid databases,
  databases depend on the free app)
  --
  Marcin
  2013/11/6 Andrey Kozhevnikov [5]coderusin...@gmail.com

  Good point, thanks!

  On 06.11.2013 18:30, Jonni Rainisto wrote:

  And if some good library is missing, and you are willing to 
maintain
  the library, feel free trying to get it added to Mer/Nemomobile 
side

  (after that you can depend against it).
  re, Jonni
  
  From: [6]devel-boun...@lists.sailfishos.org
  [[7]devel-boun...@lists.sailfishos.org] on behalf of Jonni 
Rainisto

  [[8]jonni.raini...@jolla.com]
  Sent: Wednesday, November 06, 2013 2:27 PM
  To: Sailfish OS Developers
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  HI,
  AFAIK, uploading libraries to store is forbidden, you can only
  depend on common mer/nemomobile libraries in .spec/rpm Requires
  field.
  re, Jonni
  
  From: [9]devel-boun...@lists.sailfishos.org
  [[10]devel-boun...@lists.sailfishos.org] on behalf of Andrey
  Kozhevnikov [[11]coderusin...@gmail.com]
  Sent: Wednesday, November 06, 2013 1:40 PM
  To: [12]devel@lists.sailfishos.org
  Subject: Re: [SailfishDevel] Jolla Harbour and Jolla Store
  Please more information about Harbour:
  - it can accept only single files, means i cant upload some
  libraries,
  required as depends for my appliction?
  - does it acts as repository?
  On 06.11.2013 17:06, Karl Granström wrote:

  Ahoy all,
  Today we're launching Jolla Harbour [13]harbour.jolla.com, 
the

  portal for submitting applications to the Jolla Store.
  You can submit and manage your applications. Consumers will be 
able

  to install them directly from their Jolla phones.
  Here are some details about Jolla Harbour:
  Joining and logging into Jolla Harbour:
  Joining is free! You can create a Jolla account from the Jolla

Re: [SailfishDevel] Jolla Harbour and Jolla Store

2013-11-06 Thread Benoît HERVIER

Hi,

I notice something that could be a bug, when an error 504 occurs during 
the upload of a binary or icon you can remove the file and retry the 
upload, but when it s happen in screenshots of the app, you can't remove 
it and retry.


Regards

Le 2013-11-06 12:06, Karl Granström a écrit :

Ahoy all,

Today we're launching Jolla Harbour harbour.jolla.com, the portal
for submitting applications to the Jolla Store.
You can submit and manage your applications. Consumers will be able
to install them directly from their Jolla phones.

Here are some details about Jolla Harbour:

Joining and logging into Jolla Harbour:
Joining is free! You can create a Jolla account from the Jolla
Harbour landing page (harbour.jolla.com) or if you have pre-ordered
your Jolla phone, you have everything you need to get started. To
manage your account details, please visit account.jolla.com.

Support for Sailfish and Android™ applications:
You can submit both Sailfish and Android™ applications to Jolla
Harbour. The submission process is the same.

Start with free applications:
At launch, the Jolla Harbour and Jolla Store will support only free
applications. We are working hard to enable payment solutions and we
will keep you posted about these capabilities as they develop.

Binary package naming:
You will receive naming guidelines when you upload the binary package
to Jolla Harbour. You can also find guidelines on versioning at
http://semver.org.

Preparing your metadata:
Jolla Harbour needs to know a few things about your app:
 - An app icon for the Store  (86x86px, png) (Current SDK supports
90x90px images; more details to follow soon)
 - 1-3 screenshots (540x960px, png or jpg)
 - An optional Cover image for your Store page (516x252px, png or jpg)

Submission process:
To submit your application to Jolla Harbour, fill in the metadata for
it and upload the binary and required images. After you have submitted
your app, Jolla will start Quality Assurance testing.

Quality Assurance testing:
Jolla will perform QA testing on your applications on real Jolla
devices. We will get back to you with feedback on your app within a
few days. You will be notified on the QA results via the email address
you have registered to your Jolla account.


If you encounter any issues, please contact us by email,
developer-c...@jolla.com, or report them to the Sailfish developers
mailing list at devel at lists.sailfishos.org.

Happy hacking!
The Jolla Store Team


___
SailfishOS.org Devel mailing list


--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SailfishOS SDK update available today.

2013-10-22 Thread Benoît HERVIER
Oh sorry ... i forgot we are still in france at utc+2 :) and only this 
week end to utc+1


Thanks, i ll not be late monday at work :p

Le 2013-10-22 14:18, Benoît HERVIER a écrit :

Hi,

Indeed, thanks for that details about changes.

Just for information, look like it's not deployed yet on all mirrors.
Updates.xml 04-Sep-2013 15:51

Regards,

Le 2013-10-22 13:21, FIlip Kłębczyk a écrit :

W dniu 22.10.2013 13:17, Jarko Vihriala pisze:

Hello again,
Today 13:00 UTC we will publish new installers and repositories for 
our SailfishOS SDK, Alpha-Qt5-update2 to be exact.
If you have Alpha-Qt5 you should see updates available icon in Qt 
Creator. If you don't have SailfishOS SDK installed, you can get the 
latest installers from www.sailfishos.org.

Wow, big thanks for detailed information regarding the release! That
is what people expect :)
Regards,
Filip
___
SailfishOS.org Devel mailing list


--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] If this list even used?

2013-09-30 Thread Benoît HERVIER



Le 2013-09-30 10:11, Nathan a écrit :

Where's the activity? WTF.
___
SailfishOS.org Devel mailing list


Here FTW !

--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Changelog for : Update for SailfishOS SDK

2013-09-18 Thread Benoît HERVIER

Hi,

Thanks for the changelog.

Regards,

Le 2013-09-18 19:23, Jarko Vihriala a écrit :

Hello again,

First, sorry for not being able to deliver this list when we pushed 
out

the update.
But here it is. This will be available on sailfishos.org's wiki soon 
too.


SailfishOS SDK IDE
==
* 'Copy Project to writable Location?' dialog added when compiling 
examples

* Detecting right platform when compiling examples
* Multiple kits creation fixed when adding targets
* Rsync deployment of examples fixed
* Do not overwrite devices.xml if it's edited whileQtCreator is 
running


Templates/examples:
===
* Application template deployment errors fixed
* Updated component gallery example code

SDK Maintenance Tool:
=
* SDK Updater fixes for OS X

Documentation
=
* Documentation updates after revision change

Build Engine

* Fixes for build toolchain
* Fixes for SDK Control Center
(datailed info  exact package list can be found on SDK Control Center
before updating)

SailfishOS Emulator
===
* No changes

SailfishOS Target
=
* No changes


Best regards,
Jolla Sailfish SDK Team




On 09/18/2013 01:56 PM, Jarko Vihriala wrote:

Hello all!

We have now uploaded a minor update of Sailfish SDK, which will 
update

your SailfishOS SDK IDE (based on QtCreator), fix some issues in
examples, update documentation and bring updates to your SDK Build 
Engine.


We didn't change much and in fact this is paving way to a bigger 
update
coming soonish and making sure everything on the update flow works 
ok.


Updating is simple. In SailfishOS SDK IDE click on help-start 
updater
and it will tell you if it found updates. Updating the Build engine 
is
even simpler;five minutes after it has booted up, check theUpdates 
tab
on the SDK Control Center (behind theSailfishOS icon in SailfishOS 
SDK
IDE). A message Engine updates available will pop up-you can start 
the

updatefrom there.

If you encounter anyissues, please report them to Sailfish developers
mailing list at devel@lists.sailfishos.org

Happy hacking!

Best regards,
Jolla Sailfish SDK team

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SearchField and focus

2013-08-09 Thread Benoît HERVIER

Hello,

Indeed.

Thanks a lot for the explanation.

Regards,

Le 2013-08-09 03:12, Bea Lam a écrit :

Hello,

The problem is that when the model changes, the last added delegate
steals the focus, as ListView has a focus scope.

If you set currentIndex: -1 on the ListView, then this behaviour
will be disabled. (This is what's done in the SearchPage.qml example
in silicacomponentgallery.)

cheers,
Bea



From: devel-boun...@lists.sailfishos.org
[devel-boun...@lists.sailfishos.org] on behalf of Martin Grimme
[martin.gri...@gmail.com]
Sent: 09 August 2013 02:06
To: Lucien XU
Cc: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] SearchField and focus

Hi,

I had exactly the same problem. My solution was to define the
SearchField _outside_ the list view, like this:

SilicaListView {
id: listview

...

header: Item {
// This is just a placeholder for the header box. To avoid the
// list view resetting the input box everytime the model 
resets,

// the search entry is defined outside the list view.
height: headerBox.implicitHeight
}

}

...

Column {
id: headerBox

property int neutralPos: 0

y: 0 - listview.contentY + neutralPos
width: parent.width

Component.onCompleted: {
neutralPos = listview.contentY;
}

SearchField {
...
}
}


That way, the SearchField floats on top of the list at the place
reserved by the placeholder Item.


Martin


2013/8/8, Lucien XU sfietkonstan...@free.fr:

Le jeudi 8 août 2013 17:10:26 Benoît HERVIER a écrit :

Hi,

I'm trying to use SearchField to have a  suspense ... a search
field for my list view.
So i try to filter in realtime ... and i notice that SearchField 
lose

focus

Basically, i do a reset on the ListModel and append data

This could come from the use i made from SearchField, so here a 
snippet

of the code :

 SilicaListView {
 id: notesView
 model: notesModel
 anchors.fill: parent
 header: Column {
 width: parent.width
 PageHeader {
 title: ownNotes
 }
 SearchField {
 id: searchField
 placeholderText: Search
 width: parent.width
 onTextChanged: {
 searchText = searchField.text;
 notesModel.applyFilter(searchText)
 }

 }
 }
 section {
 property: 'category'
 delegate: SectionHeader {
 text: section
 }
 }

Any advices ?


I have the same issue. The searchfield got unfocused each time data 
is added


in a list view. That's not conveinent for an autocomplete field ...

No advices though, I'm trying to see what's wrong.
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] pagestack signals for eg pageback

2013-08-09 Thread Benoît HERVIER

Hi,

Sorry i answer only to Wim and forgot to add the mailing list address

Thanks Matthew for the tips of using a dialog, indeed this could be 
usefull too, depending on the use case.


Regards,

Le 2013-08-10 01:14, Matthew Vogt a écrit :

Thanks for the extra detail, Wim.

You can probably do what you want in a handler to the statusChanged 
event:

onStatusChanged: {
if (status == PageStatus.Deactivating) {
if (_navigation == PageNavigation.Back) {
// User has navigated back from this page
}
}
}

Alternatively, you might prefer to use a Dialog for your list, in
which case you can handle the user's navigation in response to the
done signal:
onDone: {
if (result == DialogResult.Rejected) {
// User has rejected the dialog
}
}

Thanks,
Matt

From: Wim de Vries [wsvr...@xs4all.nl]
Sent: Saturday, August 10, 2013 8:52 AM
To: Matthew Vogt
Cc: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] pagestack signals for eg pageback

Hi Matt
Benoît Hervier pointed me to the status property.
The scenario is simple.
I am rounding up a checklist app (for in a aircraft cockpit).
If the user navigates back, the complete list has to be reset 
(security

rule).
btw: the checklists are displayed in non-salfish colors (need max
contrast because of light), rest (editing 'done on the ground') is in
sailfish colors.
This simple app is part of an existing navigation (and more) system 
and

is an opportunity (for me) to learn and test C++QML within Sailfish.
Of course, all open source ;-)

r
wim

On 08/09/2013 11:36 PM, Matthew Vogt wrote:

Hi Wim.

There are no signals for PageBack or PageForward in the Silica 
PageStack.  What are you trying to do?  From within a Page element, 
you can observe changes to the 'pageContainer' property (when added 
and removed from the PageStack), or the 'status' property (which 
reflects the page's state with respect to entering/leaving the 
top-of-stack condition).  You can also observe changes to the 
'_navigation' property, which is set to either PageNavigation.Back or 
PageNavigation.Forward for a page, when that page is navigated away 
from, as the previous stack top.


If you need something else, please describe your use case so we can 
support it better.


Thanks,
Matt


From: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] on behalf of Wim de Vries 
[wsvr...@xs4all.nl]

Sent: Friday, August 09, 2013 10:35 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] pagestack signals for eg pageback

Hi,
I cannot find the signals/functions of the pagestack (eg onPageBack) 
in

the documentation.
(the same goes for other silica elements as well).
Am I over looking sth?
Thanks.

___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


--
Benoît HERVIER - http://khertan.net/
___
SailfishOS.org Devel mailing list