X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=qml%2FQuickNewsReader%2Fcontent%2Fview%2FSourceDelegate.qml;h=913f49dd4d29676a53b01b50bd372f6f58ebb36f;hb=2263ab5869648d0eb7d82d8794aae03fd0ce954d;hp=e3e72e0dc0baf9f4fb40bc0f503967a9b1248ceb;hpb=d01d157c4f2340a8e52a891209159d1ad0b0f6cc;p=quicknewsreader diff --git a/qml/QuickNewsReader/content/view/SourceDelegate.qml b/qml/QuickNewsReader/content/view/SourceDelegate.qml index e3e72e0..913f49d 100644 --- a/qml/QuickNewsReader/content/view/SourceDelegate.qml +++ b/qml/QuickNewsReader/content/view/SourceDelegate.qml @@ -73,6 +73,15 @@ Item { MouseArea { anchors.fill: delegate + + onPressAndHold: { + // show the configuration for this journal + if( listSourceModel[index].hasSettings ) + { + window.showConfigDialog(index) + } + } + onClicked: { if( delegate.ListView.view.currentIndex !== index ) { @@ -82,15 +91,12 @@ Item { delegate.ListView.view.currentIndex = index + listSourceModel[index].currentPath = [index] + window.windowViewsModel.append({ component: listSourceModel[index].listViews[0].viewComponent, - componentId: listSourceModel[index].listViews[0].viewId, componentDepth: 1 }) - listSourceModel[window.currentSourceIndex].currentPath = [index] - window.currentSourceIndex = index - - window.windowViewsList.currentIndex = 1; } } }