Re: [SailfishDevel] Missing Spec File on Build / Run

2013-04-20 Thread christopher . lamb
HI David Bingo! the problem (or at least one of the problems) is on the first step. I don't have an rpm folder, or a yarl file. I have now hacked my .pro file so I have both. So why were both missing? As you will have gathered from previous mails I am porting stuff from Harmattan to

[SailfishDevel] Fwd: Fwd: mb gives error sb2: Error: Invalid target specified, aborting.: Part 3

2013-04-22 Thread christopher . lamb
Hi All Maybe a glimmer of light at the end of the tunnel. I have found which instance of sb2 is being called (/usr/bin/sb2), and have have extended the exit_error() function to give a little more info. I now get the following error output: [root@SailfishSDK Demo2]# mb build -t

Re: [SailfishDevel] mediagallery won't work

2013-04-27 Thread christopher . lamb
Hi Wim I can confirm that on OSX I am also missing the plugin / components package org.nemomobile.thumbnailer, as shown by the red line in QtCreator under the import statement. The error means that in your equivalent of:

Re: [SailfishDevel] Sailfish OS Emulator and Windows 8

2013-05-04 Thread christopher . lamb
Hi Michal I am happy to hear that you have found a solution that mostly works. Pure speculation here, but I wonder if we are dealing with some kind of timeout? Is there any difference between your first and second drive (HDD vs SSD, Filesystem?). I see your D: is NTFS. I guess that the

Re: [SailfishDevel] QDeclarativePropertyMap not dynamic?

2013-05-08 Thread christopher . lamb
Hi Superpelican Why don't you post the QML / UI part of your code, so we can see how you think your QML should respond to your QDeclarativePropertyMap? Does your PropertyMap have an onChanged event? That would be one QML way of allowing UI components to respond to property changes.

Re: [SailfishDevel] Integration of Sailfish SDK in qtcreator 2.7?

2013-05-12 Thread christopher . lamb
Hi The SailfishOS Toolkit supplied QtCreator 2.6.2 contains the Research In Motion QNX plugin (disabled by default), but presumably this can be enabled. Is there some devilish reason why that won't work for BB10? Chris Zitat von Aurindam Jana m...@aurindamjana.in: Hi, The next

Re: [SailfishDevel] how to find (QML) objects other than rootObject

2013-05-13 Thread christopher . lamb
Hi Wim As always, Thomas's advice is sound: a true software engineer. Perhaps you should explain your use case in more detail: why you want your C++ to have deep insight into the QML side. I have always considered the QML side to be the client, and the C++ (plugin) to be the server,

Re: [SailfishDevel] Persistent storage

2013-05-29 Thread christopher . lamb
Hi Markus SQLite works for me, but you need to install the packages to the SDK and Emulator first. Grüsse Chris Zitat von Markus Svensson markus.svens...@me.com: Hi, What is the preferred way of doing persistent database type storage in a Sailfish OS application? I'm thinking of using

Re: [SailfishDevel] Persistent storage

2013-05-31 Thread christopher . lamb
Hi Erlend I am slightly confused: Is there any difference between the QtQuick Offline Storage API / Database API, and SQLite? My Harmattan app makes use of an SQLite database to store settings. I am fairly sure that I did not have to install anything on to Harmattan Simulator, Emulator

Re: [SailfishDevel] Silica Button QML Element

2013-06-02 Thread christopher . lamb
Hi Michael Thanks for your input. I also now think it is by design - especially the transparent bit / glassy bit. I have stumbled across a Sailfish demo showing all their controls. This demo had several small buttons next to one another, and they looked okish. But on my app, which has

Re: [SailfishDevel] Sailfish Screwy Easter Egg

2013-06-02 Thread christopher . lamb
Hi Martin so it's quite useful is classic British understatement: it hits the nail on the head! in Swiss German Mundart I would mutter something along the lines of Nägel mit Köpf machen! From years of leading teams of developers I am painfully aware of the ability of at least one to sit

Re: [SailfishDevel] R: QML: Unable to open input file: No such file or directory

2013-06-05 Thread christopher . lamb
Hi Kalle and Wim The Haptics control that causes the same error as Wim reports is standard QtMobility stuff, used as follows. import QtMobility.feedback 1.1 HapticsEffect {id: rumbleEffect attackIntensity: 0.0 attackTime: 250 intensity: 1.0 duration: 100

Re: [SailfishDevel] problem

2013-06-05 Thread christopher . lamb
HI fudong Welcome to the mailing list. You should bear in mind that Sailfish is in Alpha stage, so there should be much more documentation coming later. Luckily Sailfish builds on QML, MER and the heritage of Meego / Harmattan, so lots of documentation for those projects are relevant to

[SailfishDevel] QML PropertyAnimation: Setting to: / from: relevant to current property value.

2013-06-08 Thread christopher . lamb
Hi All I know this question is actually a pure QML question, but as I encountered it in a Sailfish migration, I am going to ask it here.to pick the brains of the all the Sailfish Developers. I have a QML component AUIPageWithMenu.qml that is an abstraction (wrapper) of the Silica Page

Re: [SailfishDevel] Playing a wav in Sailfish

2013-06-14 Thread christopher . lamb
Hi João I have just made a little demo project, importing QtMultimediaKit 1.1, and a SoundEffect Component. I added a Button component to the Column to play the sound when clicked. My Demo works, I get a swish sound when the button is clicked. You will find the code of my FirstPage at the

Re: [SailfishDevel] Playing a wav in Sailfish

2013-06-16 Thread christopher . lamb
Hi João It's really cool that you have got this working! What exactly did you do in alsamixer? If you let us know, then maybe one of the Jolla Sailors will add this to the known issues page. Chris Zitat von joao morgado joaodeusmorg...@yahoo.com: Thank all for your precious help, the

Re: [SailfishDevel] Some issues about developing in the SDK

2013-06-16 Thread christopher . lamb
HI David Good to hear from you again. My main Sailfish development host is a MacBookAir, mainly because it lets me do stuff like program while sitting on my terrace soaking in the sun (very rare this year) with a beer next to me (the current use case), or hack on the train to work

Re: [SailfishDevel] UnQLite database engine port to sailfish

2013-06-16 Thread christopher . lamb
Hi James Unless there are several Mrad Chems Eddines, you would appear to be the author of unqlite, and therefore the best person to answer your own question? Chris Zitat von Mrad Chems Eddine james.m...@gmail.com: Hi, Is there any port of the embedded NoSQL database engine UnQLite

Re: [SailfishDevel] Playing a wav in Sailfish

2013-06-16 Thread christopher . lamb
Ciao Mariano The key bit is the user nemo. I was trying to start alsamixer as user root, and got connection refused. After connecting via ssh as user nemo alsamixer works! 1000 grazie Chris Zitat von Mariano Boragno marianobora...@gmail.com: Hi Chris, I don't know if João's system has

Re: [SailfishDevel] Some issues about developing in the SDK

2013-06-16 Thread christopher . lamb
Hi David I hope you explicitly included the get another beer as a precondition in your new test 8-) On the timer service, sounds like ...opps! On the SDK with user root: -bash-3.2$ cd /lib/systemd/system/basic.target.wants/ -bash-3.2$ ls -ahl total 16K drwxr-xr-x 2 root root 4.0K

Re: [SailfishDevel] Some issues about developing in the SDK

2013-06-16 Thread christopher . lamb
Hi David After that, Active and Running: So much better than Error and Dead! [root@SailfishSDK ~]# systemctl status vboxservice.service vboxservice.service - VBoxService daemon for various aspects of guest control Loaded: loaded (/lib/systemd/system/vboxservice.service; disabled)

[SailfishDevel] Disable the PageStackIndicator

2013-06-17 Thread christopher . lamb
Hi All Is there anyway I can disable / remove the PageStackIndicator? I think it looks ugly and robs valuable screen real-estate. My app has a column of four ListViews. Each of these ListView has a header. When the header is clicked, or an an item in the list is double clicked, then a

Re: [SailfishDevel] Cover Page Strangeness

2013-06-18 Thread christopher . lamb
Hi Matt thanks for the suggestion. I should have said that this particular app is pure QML. The main.cpp is posted at the bottom of this mail. The project started life as a Harmattan project, is pure QML (apart from one c++ property). At the moment I am gradually introducing the Silica

Re: [SailfishDevel] QML IconButton icon source

2013-06-18 Thread christopher . lamb
Thanks Danny On the Emulator, all icons can be found as follows: ssh -p 2223 -i ~/.ssh/mer-qt-creator-rsa root@localhost find / -name icons /usr/share/icons /usr/share/themes/jolla-ambient/meegotouch/icons /usr/share/themes/blanco/meegotouch/icons

Re: [SailfishDevel] QML Debugging

2013-06-25 Thread christopher . lamb
Hi Aurindam I kind of guessed that you would be the one to answer this. I will give it a whirl this evening on the train. Chris Zitat von Aurindam Jana m...@aurindamjana.in: Hi, Just make sure that in Debug Mode- Run tab, just QML debugging is checked. Ensure that C++ debugging is

Re: [SailfishDevel] No Kits available in Qt Creator

2013-06-30 Thread christopher . lamb
Matthias Have you checked under About Plugins if any kits are installed / selected? You should find them in the section Device Support. Chris Zitat von Matthias Barmeier barme...@barmeier.com: Hi, after installing Sailfish SDK and trying to create a project I cannot select a kit in

Re: [SailfishDevel] No Kits available in Qt Creator

2013-07-01 Thread christopher . lamb
Hi Matthias By Kit Selection Dialog do you mean the one that you get when you create a new project? If so, what type of new project did you chose - I get different kits available depending on the project type. If I choose the default Applications / Mobile Qt Applications I get only a

Re: [SailfishDevel] Installation of import packages on Qt5 Alpha Emulator: Solved (I think)

2013-08-03 Thread christopher . lamb
HI all I think I have managed to solve this problem. First, just to simplify things I created a new project TestLib of type Libraries / QT Quick 2 Extension Plugin. I gave this the url org.flyingsheep.testlib As this is a throwaway demo I made no change to the code. Next I created a

Re: [SailfishDevel] daemon

2013-08-04 Thread christopher . lamb
Hi Sanjeev I have not yet used Daemons, but I happened to see mention of them on the Sailfish Harmattan porting page https://sailfishos.org/wiki/Porting/Harmattan There is a link to: http://freedesktop.org/wiki/Software/systemd/ Hope it helps Chris Zitat von Sanjeev (EIPI)

[SailfishDevel] Alpha 2: passing simple properties from main.cpp to qml

2013-08-04 Thread christopher . lamb
Hi all What is the recommended way to pass simple c++ properties from the main.cpp to the QML part of a project using the Qt 5 Alpha? In the good old days of the first Alpha, I used to do this Harmattan style using QmlApplicationViewer viewer;

[SailfishDevel] Fwd: Alpha 2: passing simple properties from main.cpp to qml: A solution

2013-08-04 Thread christopher . lamb
Hi All Just a quick note to say that Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointerQGuiApplication app(Sailfish::createApplication(argc, argv)); QScopedPointerQQuickView view(Sailfish::createView()); view-rootContext()-setContextProperty(cppproperty, Hello

Re: [SailfishDevel] QTLocation not part of QT5, what to do?

2013-08-08 Thread christopher . lamb
Hi Aaron Thanks for your answer. qt5-qtlocation includes only the C++ library. To use with QML you will also need qt5-qtdeclarative-import-location the QML import plugin Ah, now I am beginning to understand. Last night (before your mail came) I did an experiment. As I could not find

Re: [SailfishDevel] Sending SMS Messages from Sailfish Alpha 2 from QML

2013-08-10 Thread christopher . lamb
Hi John Yesterday I fought the good fight on several fronts 8.) 1) I had a stab at migrating your QmlMessages project to Qt5 / Sailfish Alpha 2. I did all the obvious stuff according to the porting guides, but then got to a stage where I had a screenful of errors from qqml.h, qquickitem.h

[SailfishDevel] Sending SMS Messages from Sailfish Alpha 2 from QML, partial success

2013-08-10 Thread christopher . lamb
Hi John I have partially answered one of the questions from my last mail. This morning on sending an SMS from QML I got this output: void ConversationChannel::sendMessage(const MessagePartList) Buffering message until channel is ready tp-qt 0.9.3 WARN: (Too old?) Channel Dispatcher failed to

Re: [SailfishDevel] Is there a bug tracker?

2013-08-10 Thread christopher . lamb
Zitat von Putze Sven sailfish...@hardcodes.de: It seems that I stirred up a hornet's nest here... Or maybe a can of worms? 8-) Personally I found David G's answer very encouraging. I am an Application Architect, and I know from years of close interaction with developers (and even worse

Re: [SailfishDevel] replacement to QtMobility's GalleryModel?

2013-08-16 Thread christopher . lamb
Hi Zitat von Lucien XU sfietkonstan...@free.fr: For GPS and NFC, IIRC, these API are not yet merged. And they won't be useful for you either since the emulator don't give any way to emulate NFC or GPS. The QML locations stuff (for GPS) does at least compile with the following import

Re: [SailfishDevel] Adding packages repositories to MerSDK and Sailfish Emulator

2013-08-18 Thread christopher . lamb
Hi Roberto Looks good from my humble point of view. One thing I've noticed: you use the user nemo to install to the Emulator, I have tended to use root. I wonder if there are any advantages / disadvantages / side-effects in using root vs nemo. Perhaps somebody more knowledgable can

Re: [SailfishDevel] Sending SMS Messages from Sailfish Alpha 2 from QML, partial success

2013-08-22 Thread christopher . lamb
Hi Joseph Thanks for your help Zitat von Joseph Crowell joseph.w.crow...@gmail.com: Looking through the packages, it looks like a device or service (like haze) has to supply a service file to interface with. Haze has: org.freedesktop.Telepathy.ConnectionManager.haze.service I followed

Re: [SailfishDevel] Fwd: Re: Include Python.h

2013-08-22 Thread christopher . lamb
Hi Robbie Zitat von Robbie Hottie youngcalihot...@outlook.com: “* having just added python-devel via the SDK Control Center, I also did a zypper se python-devel, which showed that package is not installed (for the OS), yet it is in the toolchain. ” How do you add python-devel via the SDK

[SailfishDevel] DEFINES in .pro file: Changes require clean to take effect

2013-08-31 Thread christopher . lamb
Hi all I have a DEFINES QMake directive in my project .pro file which (should) allow me to respond to this with #if #ifdef C++ preprocessor macros in my main.cpp file. Let assume I have the following //.pro file DEFINES += TEST_A //main.cpp #ifdef TEST_A //Do Something #endif #ifdef

Re: [SailfishDevel] where to put my OS sailfish project

2013-09-24 Thread christopher . lamb
Hi Wim Some of us have demo stuff on https://github.com/sailfishapps I think Thomas Perl is the owner Chris Zitat von Wim de Vries wsvr...@xs4all.nl: Hi, I just finalized my (OS) app (https://github.com/wspilot/checklists). (for starters it might useful: several listviews, C++-QML

Re: [SailfishDevel] Sailfish User Interface: Tabs

2013-10-12 Thread christopher . lamb
Salut Lucien Thanks for your answer I dreading that the absence of tabs was a design decision rather than a sign of work in progress. While I understand this from a pure design point of view (Sailfish being all swippy), I think it will cause problems for application developers creating

Re: [SailfishDevel] Installing QtSystemInfo QML module (or any other module from public repo) Re: How do you get phone IMEI, IMSI and other hardware info?

2013-10-17 Thread christopher . lamb
alternatively, for those who like the command line: Connect to the emulator via ssh, and then run zypper in qt5-declarative-systeminfo mfg Chris Zitat von Artem Marchenko artem.marche...@gmail.com: Okay, changing deployment method to RPM solved it, Require line in specs caused the package

Re: [SailfishDevel] SailfishOS SDK update available today.

2013-10-22 Thread christopher . lamb
HI Jarko Good work, the latest update installs faultlessly on OSX. The only thing that caught me out (so far) is that the SDK VM runs without a GUI - but that is in the small print of your instructions ... Chris ___ SailfishOS.org Devel

Re: [SailfishDevel] SailfishOS SDK update available today: Changes to SSH security?

2013-10-25 Thread christopher . lamb
Hi Jarko When I SSH into the Emulator as user nemo using a rsa key, I am now asked for a password (memo). I am sure this was not the case prior to the update. Has the security changed? The same applies to the user root - for which I don't know the password. But I guess we should be doing

[SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-10-28 Thread christopher . lamb
Hi all Until recently when I needed extra packages on the SDK and Emulator installed using the SDK Control Center (for the SDK) and zypper (for the Emulator). However from previous posts in this forum I gathered that it was also possible to do the same using an app's yaml and spec files,

Re: [SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-10-28 Thread christopher . lamb
Hi Dmitry Thanks for your rapid answer. While that is a wonderful list of spectacle keywords, it leaves me none the wiser as to what they do. Chris Zitat von Dmitry energyc...@gmail.com: https://wiki.merproject.org/wiki/Spectacle ___

Re: [SailfishDevel] How to get GPS Location in QML

2013-10-29 Thread christopher . lamb
Hi Bolek First of all you need to make sure that Positioning is correctly installed to the Emulator, to the SDK, and QtCreator is synched with the installation on the SDK. I have done this via the RPM yaml file. I am not sure that mine is entirely correct (as you will see from other

Re: [SailfishDevel] How to get GPS Location in QML

2013-10-29 Thread christopher . lamb
Hi Bolek In my last post I hinted that my example yaml / spectacle file worked, but was not perfect. This evening on the train I was able to experiment further. I am now home, with a roast chicken bubbling in the oven, and a glass of cold white Rioja next to me, so I have time to post

Re: [SailfishDevel] How to get GPS Location in QML

2013-10-30 Thread christopher . lamb
Hi Bolek I also have nothing direct to do with Jolla, I am just a developer like you, but it is still a pleasure to help and to puzzle out how things work. I agree with much of what you say; but I think we should not forget that the Alpha is just that, an Alpha. That means that not

Re: [SailfishDevel] Updated emulator in SailfishOS SDK available

2013-10-30 Thread christopher . lamb
Hi Jarko On OSX and on Windows I get an Installer Error (OSX version error below, Window error coming in my next mail). Fatal error while evaluating a script. Error: cannot access member `updateRequested' of deleted QObject Backtrace:

[SailfishDevel] How to check Emulator version

2013-10-30 Thread christopher . lamb
Hi Jarko Is there a way of checking the Emulator version? (e.g. by terminal command on the emulator?). Today's update bugged out on OSX, but after that the Emulator still starts, so either a) the update did nothing, and I have the old state b) the update more or less succeeded, I have the

Re: [SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-10-31 Thread christopher . lamb
Hi Jarko Thanks for your detailed comments. My understanding of this topic has vastly improved. I will be spending most of Friday on a plane, so I should be able to spend some time writing an article on installing to sailfish for my blog. One bit that still eludes me is this: I can find

Re: [SailfishDevel] Can't open emulator after updating the latest emulator

2013-11-03 Thread christopher . lamb
Hi Brad you don't say what your host OS is, but my first attempt earlier this week to update a Windows installation bugged out with a missing Emulator VM. I did a complete deinstall of the whole Sailfish SDK, reinstalled, then ran the update. The second run was flawless. Chris Zitat

Re: [SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-11-04 Thread christopher . lamb
Hi all As the topic of installing the to the SDK and Emulator is one which has raised many questions in the is mailing list, I have collected the wisdom from replies to this and similar threads, and have created a guide to installing on my Sailfish blog. The post can be found here:

Re: [SailfishDevel] Installing packages to the SDK and Emulator via the rpm/yaml file

2013-11-04 Thread christopher . lamb
Hi Luciano Thank you for your kind words. Your emulator / train issue is an interesting one. I do a lot of my development on a train on the way to and from work, and I am able to build without any problems. Sometimes I will have an iffy network connection over my N9, but mostly not.

Re: [SailfishDevel] Problems with the Emulator (possible bugs?)

2013-11-04 Thread christopher . lamb
HI Bolex Have you tried updating the properties on pushing? DefaultSMSPage { id: defaultSMSPage fontSize: appWindow.fontSize onCancelled: pageStack.pop(mainPage); onNextPage: { pageStack.push(contactSelectionPage, {template_id: 1234}) }

Re: [SailfishDevel] Qt5Svg missing on the x86 SailfishOS image?

2013-11-08 Thread christopher . lamb
Hoi Alessandro That is strange. First I did a zypper rm qt5-qtsvg to remove qtsvg from my Emulator. Then I built and run my test app (wiht qt5-qtsvg in the Requires: section of the .yaml /.spec files). I get this: Downloaded PositionSourceTest-0.1-1.i586 Downloaded

Re: [SailfishDevel] qt-components-qt5

2013-11-10 Thread christopher . lamb
Hi Marcin Have you installed that package to both the Emulator and the SDK Build Engine? (and synced in the SDK Control Center?) My next guess is that you get this error from QML. Normally the qml types are available in a version of the package with import-declarative in the name (to be

Re: [SailfishDevel] Status of Sailfish SMS?

2013-11-15 Thread christopher . lamb
Hi Jonni Could you please confirm whether or not it will be possible to send SMSes direct from an app? (from your reply below it seems this will not be possible). My app Landed on Harmattan could send SMS directly - indeed it is the raison-d'etre for the app, and it is obvious to the

Re: [SailfishDevel] Status of Sailfish SMS?

2013-11-15 Thread christopher . lamb
Hi Seppo My definition of SMS is exactly the same as yours. You will find some older questions from me on the subject of Telepathy and SMSes in the archive of this mailing list. Chris Zitat von Seppo Tiainen seppo.tiai...@gmail.com: OK, my mistake. So you can use Telepathy service to

Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-11-20 Thread christopher . lamb
Hi Jonni Thanks, bug now opened ... https://bugreports.qt-project.org/browse/QTBUG-34963 Chris Zitat von Jonni Rainisto jonni.raini...@jolla.com: if its a bug in qtlocation then https://bugreports.qt-project.org And you might want to check if there are fixes in the pipeline already

Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-11-20 Thread christopher . lamb
Hi Michael I have been pointed to this: http://doc-snapshot.qt-project.org/qt5-stable/coordinate.html Which means that something like the code below should work: This is a little different from the Qt4.8 Mobility Location, where a coordinate could be directly instantiated and manipulated in

Re: [SailfishDevel] Connection to Emulator not working if PC offline

2013-11-20 Thread christopher . lamb
Hi I do most of my development work on the train, and have not had such problems. Just to be sure: I have run a quick test a) stop SDK and Emulator b) stop WLAN-- I now have no network connections. c) restart SDK and Emulator -- successful. d) build and run a demo app -- successful. My host

Re: [SailfishDevel] Connection to Emulator not working if PC offline

2013-11-20 Thread christopher . lamb
Hi Andrey I just dug out my old laptop running Lubuntu, and have upgraded the SDK to the latest version. On this machine I can replicate the problem. Without a network connection the SDK cannot be found. If I stick the network cable back in, then it is found. Chris Zitat von Andrey

Re: [SailfishDevel] Feedback / Haptics on Jolla Device

2013-11-21 Thread christopher . lamb
Ciao Mariaon Have you tried: import QtFeedback 5.0 https://qt.gitorious.org/qt/qtfeedback/source/dea0da72655f1defccaea643dbe37373f6692243:doc/src/snippets/declarative/declarative-feedback.qml Obviously your emulator won't vibrate ...8-) Chris Zitat von Mariano Boragno

Re: [SailfishDevel] Dynamically populate a ContextMenu

2013-11-23 Thread christopher . lamb
Hi Antoine I think I had similar problems some months ago. If I remember correctly, I had to explicitly resize the menu height after adding items to it. I will see if I can find the old code, and have a dig around in it ... Chris Zitat von Tigre-Bleu de...@tigre-bleu.net: Hi, I try to

Re: [SailfishDevel] Dynamically populate a ContextMenu

2013-11-23 Thread christopher . lamb
Hi Antoine I had a quick play around, and a peak back in my old code. Just changing the menu height does not change anything. I also tried a version of your code with just dynamic menuItems. The menu did not drop, it just flashes. The problem I was fighting with some months ago (and did my

Re: [SailfishDevel] Dynamically populate a ContextMenu

2013-11-23 Thread christopher . lamb
Hi Antoine One useful technique for finding out what the Silica components are doing (and how you may need to modify your code, or to prove a bug), is to create a private clone of the problem component in your project. In your case it is ContextMenu, which on my development host lives in

Re: [SailfishDevel] Dynamically populate a ContextMenu

2013-11-23 Thread christopher . lamb
Hi Andrey Zitat von Andrey Kozhevnikov coderusin...@gmail.com: you may need to make childs of menu._contentColumn, not just menu. I thought that the underscore stuff are private internal properties / functions that we mere mortals should not be using 8-) (Not that that would

Re: [SailfishDevel] Dynamically populate a ContextMenu: use of _underscore properties

2013-11-24 Thread christopher . lamb
Andrey I beg to differ. You can hack in any language, just as you can apply clean coding conventions. QML is no different here, it is just a little less rigorous in enforcing some conventions. Just like any code, QML code will need maintaining, updating etc, so I prefer to clean code

Re: [SailfishDevel] Dynamically populate a ContextMenu: use of _underscore properties

2013-11-24 Thread christopher . lamb
Hi Andrey If the _underscore is, as we suspect an indication of internal only, the next question is what is internal? Internal could mean to the component itself. However it could mean internal to Silica. Under this definition a call from Combobox to ContextMenu could be regarded as

Re: [SailfishDevel] Third party modules / header files

2013-11-26 Thread christopher . lamb
Hi Sven some of that is covered here: http://flyingsheeponsailfish.blogspot.ch/2013/11/deploying-additional-packages-to.html You should not need to map any additional drives for Qt Creator to find headers, the SDK VM already has shared folders that access you home drive (within which you

Re: [SailfishDevel] Third party modules / header files

2013-11-26 Thread christopher . lamb
Hi Sven Zitat von Putze Sven sailfish...@hardcodes.de: If my understanding of the official documentation is right, then the home folder of my development machine (where QtCreator runs) is shared with the VM. This way the compiler can access the source. But I want the other way around.

[SailfishDevel] Developing and Testing with Real Sailfish OS Hardware

2013-11-26 Thread christopher . lamb
Hi all Given that the first pre-order Jolla phones running Sailfish OS should be shipping in the next few days / weeks, will instructions soon be published how to test and deploy to real hardware? I am guessing that the process will be similar to that used for the N9, but I may be wrong

Re: [SailfishDevel] Real device Yandex store problems

2013-11-27 Thread christopher . lamb
Hoi Tone Good news that you got your Jolla. I hope mine should be coming soon (preorder confirmed on Monday). How did you sync with your N9? Were instructions included? I will need to do the same ... grüsse Chris Zitat von Tone Kastlunger users.giulie...@gmail.com: Hi Jolla team; I

[SailfishDevel] QT Contacts Filter on Sailfish

2013-11-30 Thread christopher . lamb
Hi All I am playing around with QtContacts 5.0 on Sailfish (still on the Emulator ..) I am able to add, display and sort contacts. So far so good. My code is at the bottom of this mail However things go pear-shaped when I try and filter the contacts: I get the error:

Re: [SailfishDevel] Developing with SailfishOS - a short introduction

2013-12-01 Thread christopher . lamb
Hi Sven Github won't display the pdf, it's too big ... Looking forward to reading your idea; the more of us talking about Software Engineering the better! grüsse aus der Schweiz (mit Schnee) Chris Zitat von Sven Putze sailfish...@hardcodes.de: Hi there, first of all: this is far from

Re: [SailfishDevel] Developing with SailfishOS - a short introduction

2013-12-01 Thread christopher . lamb
Hi Sven Have now downloaded. Lots of good content, but I need to read through it a few more times to comment in detail. One thing that immediately occurs to me is: 2.3 Linux While it is not supported, an instalation of Sailfish within a Linux VM hosted on OSX works quite happily. It is

Re: [SailfishDevel] Cellular network information

2013-12-06 Thread christopher . lamb
Hi all Just to reinforce what Gabriel says: The functionality officially known as Qt Mobility died with Qt4.x, probably due to Nokia exiting stage left. However much, but not all of it has been moved into Qt 5.0 add-on modules, with varying levels of stability (and thus likeliness to be

[SailfishDevel] QCamera not found: yet again ....

2013-12-08 Thread christopher . lamb
Hi Now that my main app on harmattan is finished, and that Jolla Sailfish devices should be in our hands in the next few days, I am having another stab at porting my app from Harmattan to Sailfish. I have started with a brand-new default app, based on the latest SDK template, and am

Re: [SailfishDevel] QCamera not found: yet again ....

2013-12-08 Thread christopher . lamb
Hi Filip Both options you suggest work! magic! i.e. either a) pro file QT += multimedia and b) .h file #include QCamera OR c) .h file #include QtMultimedia/QCamera It would seem that the old* CONFIG += multimedia no longer works with the latest templates. Thanks Chris Zitat von Filip

Re: [SailfishDevel] QCamera not found: yet again ....

2013-12-08 Thread christopher . lamb
Hoi Sven That is a valuable tip, one that is easy to miss. The #include QtMultimedia/QCamera version is also more explicit, and had the advantage that if I copy the C++ file using this into another project, I don't need to remember to also modify the .pro file of the new project. In

Re: [SailfishDevel] QCamera not found: yet again ....

2013-12-08 Thread christopher . lamb
Hi Mohammed A minor part of the app is indeed an emergency flashlight. It's not that important to the app, it was just the first error thrown on porting to Qt5 / Sailfish. Once I get the app compiled and running on a real device then will come the fun / pain of finding out what works /

[SailfishDevel] C++ and QML Integration: SetContextProperty with the latest SailfishOS Templates

2013-12-12 Thread christopher . lamb
Hi All what is now the recommended way to SetContextProperty in the main function using the latest Sailfish application templates (from thp)? The default main now looks like: #include sailfishapp.h int main(int argc, char *argv[]) { return SailfishApp::main(argc, argv); } In the days

Re: [SailfishDevel] C++ and QML Integration: SetContextProperty with the latest SailfishOS Templates

2013-12-12 Thread christopher . lamb
Hi Wim Thanks, that works! (except that you probably did not mean view to be 2nd param of setContextProperty). So taking your example I can do: int main(int argc, char *argv[]) { bool cppproperty = true; QGuiApplication *app = SailfishApp::application(argc, argv); QQuickView

[SailfishDevel] SDK 13.12.2013 nothing provides libgudev-1.0.so.0

2013-12-13 Thread christopher . lamb
Hi I upgraded the SDK on my Mac with today's release. However the build of my current project now fails with: Problem: nothing provides libgudev-1.0.so.0 needed by upower-0.9.21+git1-1.1.1.i486 Solution 1: do not install telepathy-ring-devel-2.3.12-1.7.1.i486 Solution 2: break

Re: [SailfishDevel] SDK 13.12.2013 nothing provides libgudev-1.0.so.0

2013-12-13 Thread christopher . lamb
Hi Juha Thanks for your help so far. The machine for which I reported this problem is an MBA running OSX 10.8.4 I have now deinstalled and reinstalled the Sailfish SDK several times with no joy. I always end up with a Qt Creator that has no Sailfish Templates, no Kits, and sees no Qt

Re: [SailfishDevel] Delegate creation on demand

2013-12-15 Thread christopher . lamb
Hi Hendrik Have you seen this? http://qt-project.org/wiki/Performance_tip_Lists The general advice is to keep the delegates is lightweight as possible, and to use Loaders for anything needed later (e.g. onClick) Chris Zitat von Hendrik Borghorst hendrikborgho...@gmail.com: Hello folks,

Re: [SailfishDevel] Delegate creation on demand

2013-12-15 Thread christopher . lamb
Hi Hendrik My feeling is also that you have stumbled upon a bug. Your update with the visible = false crossed mine. My understanding was that all delegates are created when the ListView is created / Loaded. I see no reason at all why the ListView should go on a creation spree when it

[SailfishDevel] journalctl workaround to see console.log

2013-12-16 Thread christopher . lamb
Hi All As reported in a previous thread, the latest SDK release does not spool console.log output to the QtCreator application output. journalctl has been suggested as a workaround. Having experimented with journalctl, Is it possible that console.log output to journalctl either gets

[SailfishDevel] Displaying additional QML Subdirectories in the QtCreator Projects Browser

2013-12-16 Thread christopher . lamb
Hi all In my Qt Projects I like to structure the QML files into subdirectories according to their purpose, similar to the way that Sailfish provides cover and pages directories. As an example my current project has a gui and a backend directory. In older version of the Sailfish template

Re: [SailfishDevel] Quickfix for SailfishOS SDK available today.

2013-12-17 Thread christopher . lamb
Hi Juha Unfortunately the Updater is giving me the error The hash of one component does not match the expected one and Could not download meta information for component: org.merproject.tools. Error: Bad hash. I am running 1312 on OSX Chris Zitat von Juha Kallioinen

Re: [SailfishDevel] GPS Location service (QTLocation or QTPositioning)

2013-12-17 Thread christopher . lamb
Hi Hendrik What do you mean by bad location data? Qt Positioning / Location should be way to go. The old Mobility Location (from which Positioning / Location descends) worked on the Nokia N9 Chris Zitat von Hendrik Borghorst hendrikborgho...@gmail.com: Hello guys, I want to develop

[SailfishDevel] Sailfish SDK Qt Creator based on Qt 4.8.4

2013-12-18 Thread christopher . lamb
Hi all Just out of idle curiosity: why is the Sailfish SDK Qt Creator 2.8.1 based on Qt 4.8.4? By comparison for my Harmattan development I use a Qt Creator 2.6.1 from Qt Project built in Dec 2012 that was based on Qt 5.0.0 Chris ___

Re: [SailfishDevel] Sailfish SDK Qt Creator based on Qt 4.8.4

2013-12-18 Thread christopher . lamb
Hi I beg to differ: Qt Creator 3.0 is not the first Qt Creator based on Qt 5.x When Qt 5.0 was released on 19 Dec 2012, it came with QtCreator 2.6.1, based on Qt 5.0. This is the installation I referred to at the start of this thread.

Re: [SailfishDevel] Is there any way to report a bug?

2013-12-18 Thread christopher . lamb
Hi Filip, Nils et al I think the second mailing list dedicated to reporting bugs would be a good first step, it fits with my suggestion of starting with a simple system / process and evolving from that. On the otherhand I am actually pleased that this mailing list has thus far had no

Re: [SailfishDevel] Is there any way to report a bug?

2013-12-19 Thread christopher . lamb
Filip Do you have a link? Googling finds nothing for this. Chris Zitat von Filip Kłębczyk fklebc...@gmail.com: W dniu 18.12.2013 20:15, christopher.l...@thurweb.ch pisze: Hi Filip, Nils et al I think the second mailing list dedicated to reporting bugs would be a good first step, it fits

[SailfishDevel] Status of Pre-order phones

2013-12-19 Thread christopher . lamb
Hi I know this isn't strictly a developer question, but as having real hardware is an important step in testing I am going to ask in any case. So far I have not seen hide-nor-hair of my pre-order Sailfish Phone. The pre-order was confirmed on 25th November. From at least last Thursday

Re: [SailfishDevel] Is there any way to report a bug?

2013-12-19 Thread christopher . lamb
Mikko Thank you. I did not spot that because it was hidden at the bottom of a press release with a completely different title .. Chris Zitat von Mikko Rapeli mikko.rap...@iki.fi: On Thu, Dec 19, 2013 at 01:43:05PM +0100, christopher.l...@thurweb.ch wrote: Do you have a link? Googling

  1   2   3   >