Re: [SailfishDevel] PullDownMenu in a Dialog?
Hmm, I'm pretty sure I've already tried that. Gimme a sec and I'll try again :) On Thursday 11 June 2015 05:05:24 Kimmo Lindholm wrote: Similar things as earlier. Don't give y to Pulldownmenu, breaks. Dialogheader not in Dialog, but in child. https://gist.github.com/kimmoli/626c838174682c1f6f20 This uses SilicaFlickable as first child of dialog. -kimmo Thomas Tanghus kirjoitti to kesäkuuta 11 05:14:07 2015 GMT+0300: Hi I have a Dialog with a SilicaListView as a file picker. Now I want to have a PullDownMenu with a single MenuItem to go one level up. It kinda works, but the positioning is all messed up. Problem 1: The indicator is placed a tad below the header, so I made an ugly hack setting y: - Theme.paddingLarge;, but that's not a viable solution. Problem 2: When the menu is pulled down it appears at the height of the DialogHeader below the DialogHeader - if that makes sense? :P Is a PullDownMenu in a Dialog not supported, or am I doing something wrong? https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSe lectDialog.qml#L58 -- Med venlig hilsen / Best regards Thomas Tanghus -- Lähetetty Jollastani ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] PullDownMenu in a Dialog?
On Thursday 11 June 2015 15:26:00 Andrey Kozhevnikov wrote: You did some weird stuff... LOL yeah probably I sent PR: https://github.com/tanghus/kitchen-timer-qml/pull/6 Thanks. It works perfectly. But imho it's better to use /[..]/ folder to navigate up and not use PullDown menu for this. So do I, but I the The Average User(TM) doesn't... P.S. I personally prefer using this: var picker = pageStack.push(Sailfish.Pickers.MusicPickerPage, {title: qsTr(Select timer ringtone)}) picker.selectedContentChanged.connect(function() { console.log(picker.selectedContent) }) Yes I saw you used a similar example here. I've marked your msg for future reference :) 11.06.2015 07:14, Thomas Tanghus пишет: Hi I have a Dialog with a SilicaListView as a file picker. Now I want to have a PullDownMenu with a single MenuItem to go one level up. It kinda works, but the positioning is all messed up. Problem 1: The indicator is placed a tad below the header, so I made an ugly hack setting y: - Theme.paddingLarge;, but that's not a viable solution. Problem 2: When the menu is pulled down it appears at the height of the DialogHeader below the DialogHeader - if that makes sense? :P Is a PullDownMenu in a Dialog not supported, or am I doing something wrong? https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSe lectDialog.qml#L58 ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Scroll horizontal
Hi Andrey, Ok i have try it but now i can not open anymore my chat window. If you can give me a hint what i change as the best i would love it thanks for that ! This i have into my code as messenger.js (function(){ var meta = document.createElement('meta'); meta.setAttribute('name', 'viewport'); if (screen.width = 540) meta.setAttribute('content', 'width=device-width/1.5, initial-scale='+(1.5)+', maximum-scale='+(1.5)+', user-scalable=no'); else if (screen.width540screen.width = 768) meta.setAttribute('content', 'width=device-width/2.0, initial-scale='+(2.0)+', maximum-scale='+(2.0)+', user-scalable=no'); else if (screen.width768) meta.setAttribute('content', 'width=device-width/3.0, initial-scale='+(3.0)+', maximum-scale='+(3.0)+', user-scalable=no'); else meta.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no'); document.head.appendChild(meta); console.log(inserte meta); })(); Into my messenger.qml i have this: Page { id: page SilicaWebView { url: https://www.messenger.com/login; anchors.fill: parent overridePageStackNavigation: true experimental.preferences.developerExtrasEnabled: true experimental.userStyleSheet: Qt.resolvedUrl(helper/messenger.css) experimental.userScripts: [ Qt.resolvedUrl(helper/console.js), Qt.resolvedUrl(helper/messenger.js) ] experimental.preferences.navigatorQtObjectEnabled: true experimental.preferences.fullScreenEnabled: true experimental.preferences.offlineWebApplicationCacheEnabled: true onTitleChanged: { --- Best regards! Rudi Timmermans. Andrey Kozhevnikov schreef op 11/06/15 om 13:30: I mean webpage viewport size. when you using QML WebView server detect it as mobile client and setting webpage width to your device screen width, and you can't scroll. 11.06.2015 16:28, Rudi Timmermans пишет: Hi Andrey, Can you tell me where i can change this as best into the code please ? I'm nit shure i understand this corectly sorry... --- Best regards! Rudi Timmermans. Andrey Kozhevnikov schreef op 11/06/15 om 13:22: It should scroll if viewport width is higher than webview width. 11.06.2015 16:20, Rudi Timmermans пишет: Hi, As i'm start with coding for Sailfish OS, i have some idea but i can not figer it out how i can fix this into the code. I have made a Facebook Messenger with the www.messenger.com webpage build into the app, now i like to have that users can scroll horizontal to see older message into the chat window, the same as on the webpage when you have open it into the browser... I have search and search for examples how to code this but i can not found anything and i can found it out how i need to code it. You can find all the messenger sources here: messenger.css https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGMauthuser=0 messenger.js https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWcauthuser=0 messengerpage.qml https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlEauthuser=0 Thanks guys for the helps !!! -- --- Best regards! Rudi Timmermans. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] PullDownMenu in a Dialog?
You did some weird stuff... I sent PR: https://github.com/tanghus/kitchen-timer-qml/pull/6 But imho it's better to use /[..]/ folder to navigate up and not use PullDown menu for this. P.S. I personally prefer using this: var picker = pageStack.push(Sailfish.Pickers.MusicPickerPage, {title: qsTr(Select timer ringtone)}) picker.selectedContentChanged.connect(function() { console.log(picker.selectedContent) }) 11.06.2015 07:14, Thomas Tanghus пишет: Hi I have a Dialog with a SilicaListView as a file picker. Now I want to have a PullDownMenu with a single MenuItem to go one level up. It kinda works, but the positioning is all messed up. Problem 1: The indicator is placed a tad below the header, so I made an ugly hack setting y: - Theme.paddingLarge;, but that's not a viable solution. Problem 2: When the menu is pulled down it appears at the height of the DialogHeader below the DialogHeader - if that makes sense? :P Is a PullDownMenu in a Dialog not supported, or am I doing something wrong? https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/pages/SoundSelectDialog.qml#L58 ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Scroll horizontal
Hi, As i'm start with coding for Sailfish OS, i have some idea but i can not figer it out how i can fix this into the code. I have made a Facebook Messenger with the www.messenger.com webpage build into the app, now i like to have that users can scroll horizontal to see older message into the chat window, the same as on the webpage when you have open it into the browser... I have search and search for examples how to code this but i can not found anything and i can found it out how i need to code it. You can find all the messenger sources here: messenger.css https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGMauthuser=0 messenger.js https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWcauthuser=0 messengerpage.qml https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlEauthuser=0 Thanks guys for the helps !!! -- --- Best regards! Rudi Timmermans. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Scroll horizontal
It should scroll if viewport width is higher than webview width. 11.06.2015 16:20, Rudi Timmermans пишет: Hi, As i'm start with coding for Sailfish OS, i have some idea but i can not figer it out how i can fix this into the code. I have made a Facebook Messenger with the www.messenger.com webpage build into the app, now i like to have that users can scroll horizontal to see older message into the chat window, the same as on the webpage when you have open it into the browser... I have search and search for examples how to code this but i can not found anything and i can found it out how i need to code it. You can find all the messenger sources here: messenger.css https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGMauthuser=0 messenger.js https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWcauthuser=0 messengerpage.qml https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlEauthuser=0 Thanks guys for the helps !!! -- --- Best regards! Rudi Timmermans. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Scroll horizontal
sorry i'm not an web expert, you'd better wait for someone more experienced answer :) 11.06.2015 16:44, Rudi Timmermans пишет: Hi Andrey, Ok i have try it but now i can not open anymore my chat window. If you can give me a hint what i change as the best i would love it thanks for that ! This i have into my code as messenger.js (function(){ varmeta=document.createElement('meta'); meta.setAttribute('name','viewport'); if(screen.width=540) meta.setAttribute('content','width=device-width/1.5,initial-scale='+(1.5)+',maximum-scale='+(1.5)+',user-scalable=no'); elseif(screen.width540screen.width=768) meta.setAttribute('content','width=device-width/2.0,initial-scale='+(2.0)+',maximum-scale='+(2.0)+',user-scalable=no'); elseif(screen.width768) meta.setAttribute('content','width=device-width/3.0,initial-scale='+(3.0)+',maximum-scale='+(3.0)+',user-scalable=no'); else meta.setAttribute('content','width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no'); document.head.appendChild(meta); console.log(insertemeta); })(); Into my messenger.qml i have this: Page{ id:page SilicaWebView{ url:https://www.messenger.com/login; anchors.fill:parent overridePageStackNavigation:true experimental.preferences.developerExtrasEnabled:true experimental.userStyleSheet:Qt.resolvedUrl(helper/messenger.css) experimental.userScripts:[ Qt.resolvedUrl(helper/console.js), Qt.resolvedUrl(helper/messenger.js) ] experimental.preferences.navigatorQtObjectEnabled:true experimental.preferences.fullScreenEnabled:true experimental.preferences.offlineWebApplicationCacheEnabled:true onTitleChanged:{ --- Best regards! Rudi Timmermans. Andrey Kozhevnikov schreef op 11/06/15 om 13:30: I mean webpage viewport size. when you using QML WebView server detect it as mobile client and setting webpage width to your device screen width, and you can't scroll. 11.06.2015 16:28, Rudi Timmermans пишет: Hi Andrey, Can you tell me where i can change this as best into the code please ? I'm nit shure i understand this corectly sorry... --- Best regards! Rudi Timmermans. Andrey Kozhevnikov schreef op 11/06/15 om 13:22: It should scroll if viewport width is higher than webview width. 11.06.2015 16:20, Rudi Timmermans пишет: Hi, As i'm start with coding for Sailfish OS, i have some idea but i can not figer it out how i can fix this into the code. I have made a Facebook Messenger with the www.messenger.com webpage build into the app, now i like to have that users can scroll horizontal to see older message into the chat window, the same as on the webpage when you have open it into the browser... I have search and search for examples how to code this but i can not found anything and i can found it out how i need to code it. You can find all the messenger sources here: messenger.css https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGMauthuser=0 messenger.js https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWcauthuser=0 messengerpage.qml https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlEauthuser=0 Thanks guys for the helps !!! -- --- Best regards! Rudi Timmermans. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Scroll horizontal
Hi Andrey, Can you tell me where i can change this as best into the code please ? I'm nit shure i understand this corectly sorry... --- Best regards! Rudi Timmermans. Andrey Kozhevnikov schreef op 11/06/15 om 13:22: It should scroll if viewport width is higher than webview width. 11.06.2015 16:20, Rudi Timmermans пишет: Hi, As i'm start with coding for Sailfish OS, i have some idea but i can not figer it out how i can fix this into the code. I have made a Facebook Messenger with the www.messenger.com webpage build into the app, now i like to have that users can scroll horizontal to see older message into the chat window, the same as on the webpage when you have open it into the browser... I have search and search for examples how to code this but i can not found anything and i can found it out how i need to code it. You can find all the messenger sources here: messenger.css https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGMauthuser=0 messenger.js https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWcauthuser=0 messengerpage.qml https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlEauthuser=0 Thanks guys for the helps !!! -- --- Best regards! Rudi Timmermans. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Scroll horizontal
Hi Andrey, I forgot i have also a messenger.css code ._s15 { display: none !important; visibility: hidden !important; } [data-reactid='.0.1'] { min-width: 100% !important; } [data-reactid='.0.1.$0'] { width: 100% !important; max-width: 100% !important; } .hidden { display: none!important; visibility: hidden!important; } --- Best regards! Rudi Timmermans. Andrey Kozhevnikov schreef op 11/06/15 om 13:30: I mean webpage viewport size. when you using QML WebView server detect it as mobile client and setting webpage width to your device screen width, and you can't scroll. 11.06.2015 16:28, Rudi Timmermans пишет: Hi Andrey, Can you tell me where i can change this as best into the code please ? I'm nit shure i understand this corectly sorry... --- Best regards! Rudi Timmermans. Andrey Kozhevnikov schreef op 11/06/15 om 13:22: It should scroll if viewport width is higher than webview width. 11.06.2015 16:20, Rudi Timmermans пишет: Hi, As i'm start with coding for Sailfish OS, i have some idea but i can not figer it out how i can fix this into the code. I have made a Facebook Messenger with the www.messenger.com webpage build into the app, now i like to have that users can scroll horizontal to see older message into the chat window, the same as on the webpage when you have open it into the browser... I have search and search for examples how to code this but i can not found anything and i can found it out how i need to code it. You can find all the messenger sources here: messenger.css https://drive.google.com/open?id=0B8QiRsNYbAIqMFhqOHExVDBFdGMauthuser=0 messenger.js https://drive.google.com/open?id=0B8QiRsNYbAIqbk9GbEZNWmpaWWcauthuser=0 messengerpage.qml https://drive.google.com/open?id=0B8QiRsNYbAIqTGF1NDYzSGRQRlEauthuser=0 Thanks guys for the helps !!! -- --- Best regards! Rudi Timmermans. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail todevel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Problem with playing sounds in first application
On Tuesday 03 February 2015 23:13:44 Luis Manuel Ramos Da Costa wrote: Audio { id : whipSound loops : Audio.Infinite source:qrc:/sounds/resources/sounds/whipSound.flac } That can teach me to read the ml regularly ;) The loops property isn't documented in the documentation in the SDK, so I made an ugly hack to emulate it: Audio { id: alarm; source: Qt.resolvedUrl(selectedSound); property bool forceStopped: false; function forceStop() { forceStopped = true; stop(); } onStopped: { if(loopSound !forceStopped) { play(); } else { forceStopped = false; } } } -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Sailfishos.org site renewal!
On Friday 30 January 2015 08:04:08 Developer Care wrote: If you find any broken links, please inform us. Also kindly note that your bookmarks for the old site may have change locations or may not exist anymore. At the bottom of the Silica Reference Documentation [1] there's a link to Full list of QtQuick 2.0 types[2] which redirects to doc.qt.io[3] which gives a 404. The error is obviously in the redirect, but why not link directly? We hope you like the new SailfishOS.org! I certainly do, especially after the return of the API docs :) [1] https://sailfishos.org/develop/docs/silica/ [2] http://qt-project.org/doc/qt-5.0/qtquick/qtquick-qmltypereference.html [3] http://doc.qt.io/qt-5/qtquick-qmltypereference.html -- Med venlig hilsen / Best regards Thomas Tanghus signature.asc Description: This is a digitally signed message part. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] Problem with playing sounds in first application
Please use SoundEffect class for that: http://doc.qt.io/qt-5/qml-qtmultimedia-soundeffect.html Sent from Windows Mail From: Thomas Tanghus Sent: Thursday, June 11, 2015 11:06 PM To: devel@lists.sailfishos.org On Tuesday 03 February 2015 23:13:44 Luis Manuel Ramos Da Costa wrote: Audio { id : whipSound loops : Audio.Infinite source:qrc:/sounds/resources/sounds/whipSound.flac } That can teach me to read the ml regularly ;) The loops property isn't documented in the documentation in the SDK, so I made an ugly hack to emulate it: Audio { id: alarm; source: Qt.resolvedUrl(selectedSound); property bool forceStopped: false; function forceStop() { forceStopped = true; stop(); } onStopped: { if(loopSound !forceStopped) { play(); } else { forceStopped = false; } } } -- Med venlig hilsen / Best regards Thomas Tanghus___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] ApplicationWindow.activate() does nothing
you should call app.activate() Sent from Windows Mail From: Thomas Tanghus Sent: Friday, June 12, 2015 4:51 AM To: devel@lists.sailfishos.org Hi The documentation says: activate() Brings the application in full-screen mode to the foreground. But absolutely nothing happens when I call it. Is anybody using it successfully? https://github.com/tanghus/kitchen-timer-qml/blob/master/qml/harbour-kitchentimer.qml#L271 -- Med venlig hilsen / Best regards Thomas Tanghus___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] Deploy by copying binaries issue
Good morning! I'm trying to deploy a Qt application to my Jolla. In the Sailfish OS IDE, I set up the device and set the project to deploy by copying binaries. Then I hit the play button. After that, I'm getting this error: Fatal: No spec file found in '/home/mersdk/share//Projects/apps/ufo/rpm/' and couldn't make one from a yaml #1 17:07:24: The process /home/Timur/.config/SailfishBeta3/mer-sdk -tools/MerSDK/SailfishOS-armv7hl/deploy exited with code 1. Error while building/deploying project ufo (kit: MerSDK-SailfishOS -armv7hl) When executing step 'Rsync' Now, I see that it can't build an RPM package. Which is totally fine, I don't want to build an RPM package. That's why I selected the option to deploy by copying binaries. Btw, the binary otherwise runs fine on the device if I copy it myself, but I kind of expect the IDE to be able to take care of that for me. I remember having a similar issue in 2013 but I don't remember the details anymore. What am I doing wrong? Is this maybe a known issue? Thanks in advance for your help! Cheers, Timur___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org