Re: [SailfishDevel] System clipboard and QApplication

2014-04-25 Thread J-P Nurmi
Hi,

See https://sailfishos.org/sailfish-silica/qml-sailfishsilica-clipboard.html

--
J-P Nurmi

On 25 Apr 2014, at 19:57, Samuli Silvius  wrote:

> Thanks a lot, the QML trick works great!
> 
> -Samuli
> 
> 
> 2014-04-24 9:16 GMT+03:00 Andrey Kozhevnikov :
> use QGuiApplication or QCoreApplication. QApplication itself is deprecated.
> 
> There is also dark side hack for using QML clipboard:
> 
> TextEdit {
> id: clipboard
> visible: false
> function setClipboard(value) {
> text = value
> selectAll()
> copy()
> }
> function getClipboard() {
> text = ""
> paste()
> return text
> }
> }
> 
> 24.04.2014 12:03, Samuli Silvius пишет:
>> Hi,
>> 
>> I use system clipboard in QML app with small C++ adapter
>> 
>> #ifndef QMLCLIPBOARDADAPTER_H
>> #define QMLCLIPBOARDADAPTER_H
>> #include 
>> #include 
>> #include 
>> class QmlClipboardAdapter : public QObject
>> {
>> Q_OBJECT
>> public:
>> explicit QmlClipboardAdapter(QObject *parent = 0) : QObject(parent) {
>> clipboard = QApplication::clipboard();
>> }
>> Q_INVOKABLE void setText(QString text){
>> clipboard->setText(text, QClipboard::Clipboard);
>> clipboard->setText(text, QClipboard::Selection);
>> }
>> private:
>> QClipboard *clipboard;
>> };
>> #endif // QMLCLIPBOARDADAPTER_H
>> 
>> And it's working fine. But this requires that I have to add 
>> 
>> QT += widgets
>> 
>> to .pro file and seems it's not supported by Jolla Harbour as also Jolla SDK 
>> RPM validation gives me an errors. I have updated the SDK to the latest.
>> 
>> ERROR [/usr/share/harbour-jolla2gether/qml/harbour-jolla2gether.qml] Import 
>> 'QmlClipboardAdapter 1.0' is not allowed
>> ERROR [/usr/bin/harbour-jolla2gether] Cannot link to shared library: 
>> libQt5Widgets.so.5
>> 
>> 
>> Is there are way around this?
>> 
>> Br
>> -Samuli
>> 
>> 
>> ___
>> SailfishOS.org Devel mailing list
>> 
> 
> 
> ___
> SailfishOS.org Devel mailing list
> 
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] System clipboard and QApplication

2014-04-25 Thread Samuli Silvius
Thanks a lot, the QML trick works great!

-Samuli


2014-04-24 9:16 GMT+03:00 Andrey Kozhevnikov :

>  use QGuiApplication or QCoreApplication. QApplication itself is
> deprecated.
>
> There is also dark side hack for using QML clipboard:
>
> TextEdit {
> id: clipboard
> visible: false
> function setClipboard(value) {
> text = value
> selectAll()
> copy()
> }
> function getClipboard() {
> text = ""
> paste()
> return text
> }
> }
>
> 24.04.2014 12:03, Samuli Silvius пишет:
>
> Hi,
>
>  I use system clipboard in QML app with small C++ adapter
>
>  #ifndef QMLCLIPBOARDADAPTER_H
>
> #define QMLCLIPBOARDADAPTER_H
>
>  #include 
>
> #include 
>
> #include 
>
>  class QmlClipboardAdapter : public QObject
>
> {
>
> Q_OBJECT
>
> public:
>
> explicit QmlClipboardAdapter(QObject *parent = 0) : QObject(parent) {
>
> clipboard = QApplication::clipboard();
>
> }
>
>  Q_INVOKABLE void setText(QString text){
>
> clipboard->setText(text, QClipboard::Clipboard);
>
> clipboard->setText(text, QClipboard::Selection);
>
> }
>
>  private:
>
> QClipboard *clipboard;
>
> };
>
>  #endif // QMLCLIPBOARDADAPTER_H
>
>
>  And it's working fine. But this requires that I have to add
>
>  QT += widgets
>
>
>  to .pro file and seems it's not supported by Jolla Harbour as also Jolla
> SDK RPM validation gives me an errors. I have updated the SDK to the latest.
>
>  ERROR [/usr/share/harbour-jolla2gether/qml/harbour-jolla2gether.qml]
> Import 'QmlClipboardAdapter 1.0' is not allowed
>  ERROR [/usr/bin/harbour-jolla2gether] Cannot link to shared library:
> libQt5Widgets.so.5
>
>
>  Is there are way around this?
>
>  Br
> -Samuli
>
>
> ___
> SailfishOS.org Devel mailing list
>
>
>
> ___
> SailfishOS.org Devel mailing list
>
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Car Connectivity and SailfishOs

2014-04-25 Thread Jonni Rainisto
afaik (I might be wrong) there are no plans other than what comes with 
Bluez-stack, but Bluez-stack and our mer/nemo middleware is opensource, so feel 
free to contribute if you have working solution in mind... Or you might want to 
test if your android app would work in alien dalvik.


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Gokul Kartha [gogul.kar...@ixonos.com]
Sent: Friday, April 25, 2014 7:13 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Car Connectivity and SailfishOs

Hello Developers,
   I would like to know whether SailfishOs has some implementations/recent 
plans for Car Connectivity Stack Integration ?

--
Check out our latest multi-window solution for Android at Ixonos 
Techblog.

Ixonos IVI Connect 
  : 
Technologically superior solution with shorter integration time at less cost .

Best Regards,
Gokul Sivasankaran Kartha
Senior Software Engineer
Ixonos Plc ,
Mattilanniemi 6 ,
P.O. Box 533, FI-40101 Jyväskylä
Finland
mobile +358 40 162 2170
email: gogul.kar...@ixonos.com
http://www.ixonos.com

The contents of this e-mail and its attachments are addressed to the intended 
recipient only, and are confidential and may contain legally privileged 
information. If you are not the intended  recipient, please notify the sender 
by replying to this e-mail and delete the message from your system.
___
SailfishOS.org Devel mailing list

[SailfishDevel] Car Connectivity and SailfishOs

2014-04-25 Thread Gokul Kartha
Hello Developers,
   I would like to know whether SailfishOs has some
implementations/recent plans for Car Connectivity Stack Integration ?

-- 
Check out our latest multi-window solution for Android at Ixonos
Techblog
.

Ixonos IVI Connect
 :
Technologically
superior solution with shorter integration time at less cost .

Best Regards,
Gokul Sivasankaran Kartha
Senior Software Engineer
Ixonos Plc ,
Mattilanniemi 6 ,
P.O. Box 533, FI-40101 Jyväskylä
Finland
mobile +358 40 162 2170
email: gogul.kar...@ixonos.com
http://www.ixonos.com

The contents of this e-mail and its attachments are addressed to the
intended recipient only, and are confidential and may contain legally
privileged information. If you are not the intended  recipient, please
notify the sender by replying to this e-mail and delete the message from
your system.
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Is support for commercial apps a TABOO subject?

2014-04-25 Thread Karl Granström
Ahoy!!!

We see the payment support in store as a really important part of our developer 
offering. We are currently working to support payments in our Jolla Store and 
Harbour but there are a lot of things for us to do. Our current target is to 
provide you the monetizing possibility durign the 2nd half of  2014.

In the mean time, you have time to get your apps ready, tested and polished. 
Also, let us know what additional APIs you need for your Harbour app so that by 
the time payments are available, your app is ready to sail.

Br,
Jolla Store team



On 24 Apr 2014, at 14:34, Mohammed Hassan  
wrote:

> On Thu, Apr 24, 2014 at 09:33:22AM +0200, tw_bolek wrote:
> [...]
>> So my question is: is this some kind of taboo subject, or something of as 
>> little importance that for over 4 months now no Jollan has said A WORD about 
>> it despite numerous requests?
>> 
>> A couple of my friends already gave up after waiting so long for even just 
>> any information, and I must say that I'm slowly losing hope, too.  We all 
>> understand and are aware of the enormous job Jolla has been doing, so we're 
>> asking for just INFORMATION about the progress, even just if AT ALL there 
>> are any plans to do it in a foreseeable future, and if so then knowing even 
>> just as little as if it will take a month or half a year would be all we 
>> need...
> 
> There will be support for commercial apps and those will have copy 
> protection. This was
> mentioned bt Rainisto long ago already.
> 
> I cannot give more info nor can I give an ETA for that though :/
> 
> Cheers,
> ___
> SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


[SailfishDevel] Looks like wikipedia needs to be updated.

2014-04-25 Thread Joseph Crowell
Could someone a bit more familiar with the event history and what not 
read through this and update it?


http://en.wikipedia.org/wiki/Sailfish_OS
___
SailfishOS.org Devel mailing list


[SailfishDevel] Some problems since 1.038+ update.

2014-04-25 Thread Gabriel Böhme

Hi sailors,

I have released my app "Freiertag" in the days Jolla started. It worked 
pretty well, but now some updates later (since 1.038 and later) I'm 
facing a problem, I can't find a solution for.


Starting the app first time works, but on the second try it crashes. 
After some inspection it seems the problem is, that the app is don't 
quit correctly. I can use the gesture in Emulator or press and click the 
X, in both cases it's still running, after a kill via SSH, it can be 
started again. The strange thing is, that it worked earlier.


Thats the code from main:

#include  
#include  "FreiertagCom.hpp"

int  main(int  argc,  char  *argv[])

{

QGuiApplication  *app  =  SailfishApp::application(argc,  argv);

QQuickView  *view  =  SailfishApp::createView();

//create  a  new  ListModel  for  the  results

FreiListModel  *freiModel  =  new  FreiListModel();

//create  a  new  instance  of  our  object  that  is  doing  the  most  
work

FreiertagCom  *frei  =  new  FreiertagCom(freiModel);

view->rootContext()->setContextProperty("frei",  frei);

view->rootContext()->setContextProperty("freiModel",  freiModel);

view->setSource(SailfishApp::pathTo("qml/harbour-freiertag.qml"));

view->showFullScreen();

return  app->exec();

}

Another thing is, that I've set my cover and QML pages in this way:


import  QtQuick  2.0
import  Sailfish.Silica  1.0

import  "pages"

import  "cover"

ApplicationWindow

{

id:  mainApplicationWindow

MainPage  {id:  mainPage}

StartCover  {id:  startCover}

ResultPage  {id:  resultPage}

initialPage:  mainPage

cover:  startCover

}

I was doing it, to set text and other informations on the cover(s). But 
now that seems not to work anymore. So how can I "talk" to a cover, if 
I'm setting it via Qt.resolvedUrl for example?


Thank you very much! :)

Gabriel.



___
SailfishOS.org Devel mailing list