maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client (https://talk.maemo.org/showthread.php?t=71826)

NightShift79 2011-04-10 18:35

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
you see a chance for an 'justin.tv' plugin?

khuong 2011-04-10 19:54

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
@Marxian

Adding a timer to "No videos found" text seems to solve the problem. Work perfectly now!
Code:

        Text {
                id: nvfText
                    anchors.centerIn: dimmer
                    font.pixelSize: largeFontSize
                    font.bold: true
                    color: "grey"
                    horizontalAlignment: Text.AlignHCenter
                    verticalAlignment: Text.AlignVCenter
                text: "No videos found"
                visible: false               
                Timer { interval: 1000; running: true; onTriggered: nvfText.visible = (videoListModel.status == XmlListModel.Ready) && (videoList.count == 0) }                       
        }


marxian 2011-04-10 20:05

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
Quote:

Originally Posted by khuong (Post 985171)
@Marxian

Adding a timer to "No videos found" text seems to solve the problem. Work perfectly now!
Code:

        Text {
                id: nvfText
                    anchors.centerIn: dimmer
                    font.pixelSize: largeFontSize
                    font.bold: true
                    color: "grey"
                    horizontalAlignment: Text.AlignHCenter
                    verticalAlignment: Text.AlignVCenter
                text: "No videos found"
                visible: false               
                Timer { interval: 1000; running: true; onTriggered: nvfText.visible = (videoListModel.status == XmlListModel.Ready) && (videoList.count == 0) }                       
        }


That wouldn't work on a slow internet connection, since it would likely take longer than 1 second for the model to be in ready status. I will use a more robust solution when I get round to it. :)

khuong 2011-04-10 20:21

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
Quote:

Originally Posted by marxian (Post 985177)
That wouldn't work on a slow internet connection, since it would likely take longer than 1 second for the model to be in ready status. I will use a more robust solution when I get round to it. :)


I agree, it's a simple fix for now.

marxian 2011-04-10 20:25

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
Done. It will be in the next release. :D

Code:

model: VideoListModel {
    id: videoListModel

    onStatusChanged: {
        if (videoListModel.loaded
            && videoListModel.count == 0) {
            noResultsText.visible = true;
        }
    }

}


khuong 2011-04-10 21:10

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
Quote:

Originally Posted by marxian (Post 985191)
Done. It will be in the next release. :D

I don't know if I applied your code correctly but I just tested your code, it didn't seem to work. Visible is always false even when i did a video search test.:D:D

I applied your code as follows:

Code:

        Text {
                id: noResultsText
                    anchors.centerIn: dimmer
                    font.pixelSize: largeFontSize
                    font.bold: true
                    color: "grey"
                    horizontalAlignment: Text.AlignHCenter
                    verticalAlignment: Text.AlignVCenter
                text: "No videos found"
                visible: false                   
        }

          model: VideoListModel {
                id: videoListModel

                onStatusChanged: {
                    if (videoListModel.loaded && videoListModel.count == 0) {
                        noResultsText.visible = true;
                    }
                }

            }


slender 2011-04-10 21:14

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
Quote:

Originally Posted by marxian (Post 985075)
That's because I have the ListView.SnapMode set to SnapToItem. When you stop scrolling, the view will adjust to ensure that the top of the first visible delegate is flush with the top of the view. It will not stop in the middle of a delegate.

Scrolling will not stop here:

http://img64.imageshack.us/img64/320...1040722332.png

Instead it will stop here:

http://img845.imageshack.us/img845/3...1040722332.png

Ok. IMO itīs something Iīm not used (general paradigm in touch based GUI) to and same thing might be with other users. So letīs hope that someone else has also opinion about this.

Reffyyyy 2011-04-10 21:15

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
@slender

I prefer it how it is now but it is easily configurable.

slender 2011-04-10 21:24

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
@Reffyyy,
To me Itīs just confusing to have bit different kind interaction in the most used action in touch based device. Itīs like suddenly on my desktop pc my mouse scrolling went from 5 lines to 7 lines in some programs. :) I would go apeshit from that :D

Reffyyyy 2011-04-10 21:30

Re: [ANNOUNCE] cuteTube-QML - A feature-rich YouTube client
 
@slender

I understand. Humans are creatures of habit. If we have become accustomed to something, we find it hard to change the habit.

Thankfully, in this situation, it can be changed by altering the snapMode to ListView.NoSnap in /opt/usr/share/qml/qmltube/VideoListView.qml


All times are GMT. The time now is 06:39.

vBulletin® Version 3.8.8