[SailfishDevel] No provider of 'Mer-Qt4-development' found.

2014-01-19 Thread Simon Bolek
Because X11 Embedding QWidgets is not available in Qt5 I'am still
developing with Qt 4.8.
However when trying to install Qt4 into MerSDK this appeared:

Operation Progress
* finished: installing package
Mer-Qt4-development - exited with status 0*

Loading repository data...
Reading installed packages...
'Mer-Qt4-development' not found in package names. Trying capabilities.
Synchronising target to host
cannot delete non-empty directory: usr/bin
Sync completed
No provider of 'Mer-Qt4-development' found.

Is this not available anymore or not yet?

br
simon:-)
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Sharing a common OfflineStorage DB between multiple Sailfish apps.

2014-01-19 Thread Putze Sven
Hi,

 
 What are the pros and cons of using QStandardPaths as opposed to XDG 
 Environmental Variables?
 

If you look into the unix implementation of the class QStandardPaths, you find 
something like

QString QStandardPaths::writableLocation(StandardLocation type)
{
switch (type) {
case HomeLocation:
return QDir::homePath();
case TempLocation:
return QDir::tempPath();
case CacheLocation:
case GenericCacheLocation:
{
// http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
QString xdgCacheHome = QFile::decodeName(qgetenv(XDG_CACHE_HOME));
if (isTestModeEnabled())
xdgCacheHome = QDir::homePath() + QLatin1String(/.qttest/cache);
if (xdgCacheHome.isEmpty())
xdgCacheHome = QDir::homePath() + QLatin1String(/.cache);
if (type == QStandardPaths::CacheLocation)
appendOrganizationAndApp(xdgCacheHome);
return xdgCacheHome;
}
case DataLocation:
case GenericDataLocation:
{
QString xdgDataHome = QFile::decodeName(qgetenv(XDG_DATA_HOME));
if (isTestModeEnabled())
xdgDataHome = QDir::homePath() + QLatin1String(/.qttest/share);
if (xdgDataHome.isEmpty())
xdgDataHome = QDir::homePath() + QLatin1String(/.local/share);
if (type == QStandardPaths::DataLocation)
appendOrganizationAndApp(xdgDataHome);
return xdgDataHome;
}
case ConfigLocation:
{
// http://standards.freedesktop.org/basedir-spec/latest/
QString xdgConfigHome = QFile::decodeName(qgetenv(XDG_CONFIG_HOME));
if (isTestModeEnabled())
xdgConfigHome = QDir::homePath() + QLatin1String(/.qttest/config);
if (xdgConfigHome.isEmpty())
xdgConfigHome = QDir::homePath() + QLatin1String(/.config);
return xdgConfigHome;
}


So using QStandardPaths is

* convenience and brings you
* OS independance, because they (Qt) tend to choose the right position.

BR.
Sven


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
SailfishOS.org Devel mailing list

[SailfishDevel] QStandardPaths not working when app is run from Launcher

2014-01-19 Thread Sylvain B .
Hey,
My app did not want to read the some cached content it was supposed to have 
written in QStandardPaths::CacheLocation.
To understand why, I tried to run it from the terminal, and... everything is 
working fine.
Since we don't have logs when we run the app directly from Launcher, I updated 
it to display some logs directly in the UI and I figured out that, when the app 
is run from the Launcher on the actual device (it's ok on the emulator), 
QStandardPaths does not work correctly:

QStandardPaths::CacheLocation returns 
/home/nemo/.cache/mdeclarativecache_pre_initialized_qapplication-X

X is a random number, so each time I run my app, it creates a new one.
When run from terminal, QStandardPaths::CacheLocation correctly returns 
/home/nemo/.cache/

I tried with QStandardPaths::DataLocation but it's the same, I get 
/home/nemo/.local/share/AppName/mdeclarativecache_pre_initialized_qapplication-X

So for the moment, I temporarily hardcoded /home/nemo/.cache/

Thanks!
Sylvain.
  ___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] No provider of 'Mer-Qt4-development' found.

2014-01-19 Thread Mikael Hermansson
On Sunday 19 January 2014 11.08.06 Simon Bolek wrote:
 Because X11 Embedding QWidgets is not available in Qt5 I'am still
 developing with Qt 4.8.

AFAIK Qt4.8 is not supporting Wayland and SailfishOS is using wayland so you 
probadly should forget about Qt4... Offtopic but also most Linux desktops 
moving to qt5 2014... 



 However when trying to install Qt4 into MerSDK this appeared:
 
 Operation Progress
 * finished: installing package
 Mer-Qt4-development - exited with status 0*
 
 Loading repository data...
 Reading installed packages...
 'Mer-Qt4-development' not found in package names. Trying capabilities.
 Synchronising target to host
 cannot delete non-empty directory: usr/bin
 Sync completed
 No provider of 'Mer-Qt4-development' found.
 
 Is this not available anymore or not yet?
 
 br
 simon:-)

-- 
Skickat från Lenovo Thinkpad X230 running Kubuntu desktop
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] QStandardPaths not working when app is run from Launcher

2014-01-19 Thread Robin Burchell
Hi,

Can you please provide a small sample demonstrating this? As I’m quite sure it 
works for our own uses.

BR,
Robin

On 19 Jan 2014, at 14:34, Sylvain B. 
sth...@hotmail.commailto:sth...@hotmail.com wrote:

Hey,
My app did not want to read the some cached content it was supposed to have 
written in QStandardPaths::CacheLocation.
To understand why, I tried to run it from the terminal, and... everything is 
working fine.
Since we don't have logs when we run the app directly from Launcher, I updated 
it to display some logs directly in the UI and I figured out that, when the app 
is run from the Launcher on the actual device (it's ok on the emulator), 
QStandardPaths does not work correctly:

QStandardPaths::CacheLocation returns 
/home/nemo/.cache/mdeclarativecache_pre_initialized_qapplication-X

X is a random number, so each time I run my app, it creates a new one.
When run from terminal, QStandardPaths::CacheLocation correctly returns 
/home/nemo/.cache/

I tried with QStandardPaths::DataLocation but it's the same, I get 
/home/nemo/.local/share/AppName/mdeclarativecache_pre_initialized_qapplication-X

So for the moment, I temporarily hardcoded /home/nemo/.cache/

Thanks!
Sylvain.
___
SailfishOS.orghttp://sailfishos.org/ Devel mailing list

___
SailfishOS.org Devel mailing list

[SailfishDevel] Jolla Applications Bug Tracking

2014-01-19 Thread Hannes Rantzsch
Hi,

I was wondering if there is a bug tracking system for Jolla applications
somewhere.
More precisely, I want to file a (tiny) bug in the Jolla Store. But
neither Mer nor Nemo Bugzilla should be the right place, are they?

Cheers,
Hannes
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Applications Bug Tracking

2014-01-19 Thread Martin Grimme
Hi,

2014/1/19, Hannes Rantzsch hannes.rantz...@student.hpi.uni-potsdam.de:
 I was wondering if there is a bug tracking system for Jolla applications
 somewhere.

You can use https://together.jolla.com for reporting bugs or
suggestions. This is the official place where the Jolla developers
look for feedback from the users.


Martin
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Applications Bug Tracking

2014-01-19 Thread Hannes Rantzsch
Great tip, thanks!
Actually, the issue I wanted to post is even there already :)

Hannes


On 01/19/2014 05:19 PM, Martin Grimme wrote:
 Hi,

 2014/1/19, Hannes Rantzsch hannes.rantz...@student.hpi.uni-potsdam.de:
 I was wondering if there is a bug tracking system for Jolla applications
 somewhere.
 You can use https://together.jolla.com for reporting bugs or
 suggestions. This is the official place where the Jolla developers
 look for feedback from the users.


 Martin
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Jolla Applications Bug Tracking

2014-01-19 Thread Marcin M.
Nevertheless, some bugzilla should be created for a better bug management.

--
Marcin


2014/1/19 Hannes Rantzsch hannes.rantz...@student.hpi.uni-potsdam.de

 Great tip, thanks!
 Actually, the issue I wanted to post is even there already :)

 Hannes


 On 01/19/2014 05:19 PM, Martin Grimme wrote:
  Hi,
 
  2014/1/19, Hannes Rantzsch hannes.rantz...@student.hpi.uni-potsdam.de:
  I was wondering if there is a bug tracking system for Jolla applications
  somewhere.
  You can use https://together.jolla.com for reporting bugs or
  suggestions. This is the official place where the Jolla developers
  look for feedback from the users.
 
 
  Martin
  ___
  SailfishOS.org Devel mailing list

 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] No provider of 'Mer-Qt4-development' found.

2014-01-19 Thread Bernd Wachter
Simon Bolek simon.bo...@googlemail.com writes:

 Because X11 Embedding QWidgets is not available in Qt5 I'am still
 developing with Qt 4.8.
 However when trying to install Qt4 into MerSDK this appeared:

Both Qt4 and X11 are not available on SailfishOS.

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Fwd: Re: QGeoSatelliteInfoSource in Sailfish

2014-01-19 Thread christopher . lamb

Salut

Damien

I am not sure If I have understood your question, but I think you are  
asking about differences in direction from the QtSensors Compass and  
the the QtPositioning PostionSource elements.


1) The Compass Azimuth shows the direction the top of the device is  
pointing to (so it will change as your rotate the device).


2) The PositionSource shows a direction based on the direction the  
device is travelling (irrespective of where the device is pointing).


http://qt-project.org/doc/qt-5/qgeopositioninfo.html

Similar to 2) The speed shown by a GPS is absolute, irrespective of  
how the device is pointing. Some years ago I was coastal soaring on  
the coast of South Africa when the wind picked up, and got to the  
point where it was at (and possibly just above) the maximum speed of  
my paraglider. Flying fully into the wind, pushing maximum speedbar  
the GPS was showing speeds of 0.5 - 1 Km, and it was very difficult to  
tell if this was fowrards or backwards - but it was most likely the  
latter.


Cheers

Chris



Zitat von Caliste Damien dcali...@free.fr:


Bonsoir,

Le dimanche 12 janvier 2014, christopher.l...@thurweb.ch a écrit :

Marcel used the Compass element from QtSensors for azimuth.

Ok, I understand, but I'm still wondering :
- QtSensors and compas will provide the azimuth of the device, so
acting it like a compas, for instance, top of the device is pointing to
the north.
- QGeoPosition is providing GPS info with latitude and longitude, and I
was thinking that the direction attribute was in fact the first
derivative of the position, which is different from the compas return
value, for instance I'm moving west while pointing top of device to the
north.

So how to get the first derivative of GPS position, deriving it by
hand ? Like calling the azimuth method on the two last GPS fix ?

Have a nice week,

Damien.





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] GPS initially shows old location

2014-01-19 Thread Aaron McCarthy
Hi,

On Fri, 17 Jan 2014 17:09:37 christopher.l...@thurweb.ch wrote:
 Is it possible that the Jolla GPS / GPS Software stack initially shows
 the last location acquired?
 
 This is the behaviour I am observing.
 
 At the moment I am sitting in an office building, which has poor GPS
 reception, yet my app immediately shows GPS Coordinates. By peaking I
 can see that the GPS icon is flashing, and thus no fix has been
 acquired.
 
 Having checked the GPS coordinates with Google Earth, the coords are
 actually for a location several kilometers away - in the middle of a
 set of railway tracks that I travel along to and from work. As I do
 lots of mobile development on the train, this is a plausible location
 for where the Jolla last got a fix.
 
 By comparison the same app running on my old Nokia N9 gets NaN from
 the GPS for longitude and lattitude until it gets a fix. I can then
 translate this into a user friendly text on the GUI No valid position
 yet, and stop the user from proceeding further into the app until a
 true fix is acquired.
 
 If my understanding of the behaviour of the Jolla GPS is correct, is
 there anyway I can stop it giving me the old fix? It is important to
 my app that the coords shown are as accurate as possible, otherwise a
 recovery party / rescue helicopter may be mis-directed.

This is a feature in Qt Positioning. Only the coordinates and timestamp are 
saved. Use the timestamp to check if the location data is old. The accuracy 
values of the position will be NaN.

Cheers,

-- 
Aaron McCarthy
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Status menu? OT answer

2014-01-19 Thread Julius Loman
On Sat, Jan 18, 2014 at 12:38:35AM +0100, Ruediger Schiller 
chem...@dostortugas.org wrote:
  https://sailfishos.org/core-events-article.html
 
 as it says on the page, a swipe from the bottom of the screen gets you to
 notifications, this still applies, for n950 maybe cause of the orientation bug
 from the left.
You probably didn't get the point. Notification screen is there and accessible 
of course. Agreed.
But it looks significantly different compared to notification screen seen in 
several (preproduction?)
videos and images. I'm talking about the combined notification screen (all
notifications in just one screen). Now we have system/user notifications and
links to 10 last tweets from twitter and link to web version of facebook.

For example see this image:
http://www.blogcdn.com/www.engadget.com/media/2013/05/widejolladevices2.jpg

-- 

[ Julius Loman ][ l...@kyberia.net ][ http://lomo.kyberia.net ][ icq:35732873 ]
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Status menu?

2014-01-19 Thread martin . grimme
Hi,

just do something that requires an internet connection and Sailfish will popup 
a connection dialog. No need to go to the settings.

Martin

Am Fri Jan 17 2014 20:31:57 GMT+0100 (CET) schrieb Julius Loman:
Yes, but we want to have shortcut to Connect to internet option in the pulley
menu. :)
Shortcut to WLAN doesn't really help. It just skips one menu level.

Connect to internet should be definitely in the pulley menu on the lockscreen
somewhere else quickly accessible.

On Fri, Jan 17, 2014 at 08:28:10PM +0100, Oleksii Serdiuk 
conta...@oleksii.name wrote:
 On 17.01.2014 20:14, Marcin M. wrote:
 The settings have some wifi thing on the top, but it seems to be
 enable/disable auto-scanning, and I'd like to always connect myself,
 never automatically, no scanning in background... And the actual option
 is dug deep in the settings.
 
 There's a nice feature I accidentally found in Settings.
 
 Go to Settings - System settings and long tap WLAN. Context menu
 will slide out. Tap Add to favourites there. This will place an
 icon to the top of the main page of Settings app that will take you
 directly to WLAN page.
 
 -- 
 With best regards,
 Oleksii Serdiuk
 



 ___
 SailfishOS.org Devel mailing list


-- 

[ Julius Loman ][ l...@kyberia.net ][ http://lomo.kyberia.net ][ icq:35732873 ]
___
SailfishOS.org Devel mailing list

-- 
Gesendet von meinem Jolla
___
SailfishOS.org Devel mailing list


[SailfishDevel] How to attach a page to initial page?

2014-01-19 Thread Tobi D .
Hi there,

How can I push an attached page to my initial page on the pageStack?

I'd like to have a behavior similar to the Jolla Store app. There you can push 
to the next page to get categories when you are on initial page.

I tried several thing to achieve this, but didn't get it work. Doing an 
pushAttached to pageStack in onComplete of my initial page ends in error 
message that you can not push a page on stack while another push is running.

There is another idea I've not tried yet. Maybe it is possible to use a Timer 
with a few milliseconds which does the pushAttached to the pageStack and 
disables itself after that. But this solution sounds quite bad to me.

Thanks for help!

Best regards,
Tobi

  ___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] How to attach a page to initial page?

2014-01-19 Thread Reto Zingg

Hi,

On 17.01.2014 17:56, Tobi D. wrote:

Hi there,

How can I push an attached page to my initial page on the pageStack?

I'd like to have a behavior similar to the Jolla Store app. There you
can push to the next page to get categories when you are on initial page.

I tried several thing to achieve this, but didn't get it work. Doing an
pushAttached to pageStack in onComplete of my initial page ends in
error message that you can not push a page on stack while another push
is running.

There is another idea I've not tried yet. Maybe it is possible to use a
Timer with a few milliseconds which does the pushAttached to the
pageStack and disables itself after that. But this solution sounds quite
bad to me.


If I understood you right, then pycage has that in his Tidings 
application, from the entry/main page you can access the settings with a 
swipe R-L, I don't know which magic he uses, but check out the 
sources here:


https://github.com/pycage/tidings

br
Reto


Thanks for help!

Best regards,
Tobi



___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] How to attach a page to initial page?

2014-01-19 Thread Kalle Vahlman
2014/1/17 Tobi D. schlaraffenl...@hotmail.com:
 Hi there,

 How can I push an attached page to my initial page on the pageStack?

 I'd like to have a behavior similar to the Jolla Store app. There you can
 push to the next page to get categories when you are on initial page.

 I tried several thing to achieve this, but didn't get it work. Doing an
 pushAttached to pageStack in onComplete of my initial page ends in error
 message that you can not push a page on stack while another push is running.

onComplete is from Component (as opposed from Item), so it doesn't
indicate the page is ready.

A better place for pushing would probably be onStatusChanged(), when
the status changes to Active.

-- 
Kalle Vahlman, Movial Creative Technologies Inc.
Porkkalankatu 20, FI-00180 Helsinki
Tel +358 9 8567 6400
Fax +358 9 8567 6401
www.movial.com
___
SailfishOS.org Devel mailing list