Active Topics

 



Notices


Reply
Thread Tools
NightShift79's Avatar
Posts: 417 | Thanked: 200 times | Joined on Apr 2010 @ Germany
#251
you see a chance for an 'justin.tv' plugin?
 
Posts: 291 | Thanked: 398 times | Joined on Jan 2011 @ USA
#252
@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) }        		
        }
 

The Following User Says Thank You to khuong For This Useful Post:
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#253
Originally Posted by khuong View Post
@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.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following User Says Thank You to marxian For This Useful Post:
Posts: 291 | Thanked: 398 times | Joined on Jan 2011 @ USA
#254
Originally Posted by marxian View Post
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's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#255
Done. It will be in the next release.

Code:
model: VideoListModel {
    id: videoListModel

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

}
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 6 Users Say Thank You to marxian For This Useful Post:
Posts: 291 | Thanked: 398 times | Joined on Jan 2011 @ USA
#256
Originally Posted by marxian View Post
Done. It will be in the next release.
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.

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;
                    }
                }

            }
 
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#257
Originally Posted by marxian View Post
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:



Instead it will stop here:

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.
__________________
TMO links: [iSpy] - [Power search] - [Most thanked] - [Cordia - Maemo5 UI on top MeeGo Core] - [CommunitySSU]
 
Posts: 662 | Thanked: 653 times | Joined on Feb 2010
#258
@slender

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

The Following User Says Thank You to Reffyyyy For This Useful Post:
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#259
@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
__________________
TMO links: [iSpy] - [Power search] - [Most thanked] - [Cordia - Maemo5 UI on top MeeGo Core] - [CommunitySSU]
 
Posts: 662 | Thanked: 653 times | Joined on Feb 2010
#260
@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
 

The Following User Says Thank You to Reffyyyy For This Useful Post:
Reply

Tags
cutetube, marxian = god, marxian legend, son of a gun, son of douche, son of fail, son of god, youtube


 
Forum Jump


All times are GMT. The time now is 05:23.