Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread fasza2mobile
The Model View Controller concept is a bit hard to grasp at first, but trust me once you learned it, it will be your prefered method. You will never regret learning it. As for your programming ability, it will improve by time, by setting new challenges you will learn and improve much faster, bu

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread Chris Walker
On Thu, 10 Jul 2014 15:45:08 +0100 Krisztian Olah wrote: > First off, you should place each class to its own heeader and source > file to reduce future compile time. When you change only one class > you won't have to recompile everything thus it's easier to find the > classes. > > You should us

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread Chris Walker
On Thu, 10 Jul 2014 16:14:34 +0200 (CEST) sfietkonstan...@free.fr wrote: > Hello, looking a bit at your code, you are using a pagestack.push, > meaning that you effectively adds another page to your pagestack. > > For adding a new beer, I think that the best would be using a Dialog > component.

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread Krisztian Olah
First off, you should place each class to its own heeader and source file to reduce future compile time. When you change only one class you won't have to recompile everything thus it's easier to find the classes. You should use one of the Qt Sql Model classes: http://qt-project.org/doc/qt-4.8/sql

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread sfietkonstantin
Hello, looking a bit at your code, you are using a pagestack.push, meaning that you effectively adds another page to your pagestack. For adding a new beer, I think that the best would be using a Dialog component. - Mail original - De: "Chris Walker" À: devel@lists.sailfishos.org Envoyé:

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread Chris Walker
On Thu, 10 Jul 2014 19:45:28 +0600 Andrey Kozhevnikov wrote: > you do not need to reload page, so there wouldn't any navigation > problems at all :) I'm afraid you have me thoroughly confused now. Can you do me a favour and take a look at my code and let me know where I'm going wrong and what

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread Andrey Kozhevnikov
you do not need to reload page, so there wouldn't any navigation problems at all :) 10.07.2014 19:23, Chris Walker пишет: On Thu, 10 Jul 2014 12:45:46 + fasza2mob...@gmail.com wrote: Hi Chris, Why don't you just update your model when the data changes? The view(s) should update automatica

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread Chris Walker
On Thu, 10 Jul 2014 12:45:46 + fasza2mob...@gmail.com wrote: > Hi Chris, > Why don't you just update your model when the data changes? The > view(s) should update automatically. Ok, but how does that solve the page navigation problem? ___ SailfishO

Re: [SailfishDevel] Debug issue from inside the QtCreator IDE

2014-07-10 Thread Iosif Hamlatzis
Have thought it, either on a different partition or even using a different disk (I've already done it once for Mac OS X. I bought the OS and created a Hackintosh on an external USB disk, the cheapest semi-legal method for developing for the iOS), even considered having a live disk and my source fil

Re: [SailfishDevel] Pagestack problems

2014-07-10 Thread fasza2mobile
Hi Chris, Why don't you just update your model when the data changes? The view(s) should update automatically. Kris On Thu Jul 10 2014 12:58:13 GMT+0100 (BST), Chris Walker wrote: > I'm struggling with pagestack and need some help. > > My initial page loads a database and I have an option to p

[SailfishDevel] Pagestack problems

2014-07-10 Thread Chris Walker
I'm struggling with pagestack and need some help. My initial page loads a database and I have an option to pull down to add a new item. At the bottom of the 'AddItem' page, I have a check and if all additions are correct, it steps on to the initial page again. But it isn't! I have two dots at the

Re: [SailfishDevel] Debug issue from inside the QtCreator IDE

2014-07-10 Thread tuntematon
Iosif Hamlatzis kirjoitti Thu Jul 10 2014 09:03:33 GMT+0300 (EEST): > Let's see: Win7 home: 90euro, Win8: 90euro, a new PC running either of > these >500euro. BlackBerry Q10: 330euro, Z10: 215euro, Z30: 450euro, Did I miss something, but why don't you (dual) boot to Linux? Free and no new pc n