Settings dialog infrastructure
[quicknewsreader] / qml / QuickNewsReader / content / view / SourceDelegate.qml
index e3e72e0..8824282 100644 (file)
@@ -73,6 +73,15 @@ Item {
 
     MouseArea {
         anchors.fill: delegate
+
+        onPressAndHold: {
+            // show the configuration for this journal
+            if( listSourceModel[index].hasSettings )
+            {
+                window.showConfigDialog(listSourceModel[index].settingsComponent)
+            }
+        }
+
         onClicked: {
             if( delegate.ListView.view.currentIndex !== index )
             {
@@ -86,7 +95,7 @@ Item {
                                                  componentId: listSourceModel[index].listViews[0].viewId,
                                                  componentDepth: 1 })
 
-                listSourceModel[window.currentSourceIndex].currentPath = [index]
+                listSourceModel[index].currentPath = [index]
 
                 window.currentSourceIndex = index