Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
Issue 146: After Select Range is triggered, the text font on the verses
Browse files Browse the repository at this point in the history
is left white
  • Loading branch information
ragaeeb committed Apr 30, 2014
1 parent 65e74c6 commit 52effe0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 27 deletions.
2 changes: 1 addition & 1 deletion assets/AyatHeaderListItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import bb.cascades 1.0
Container {
id: headerRoot
property string labelValue
background: ListItem.view.background.imagePaint
background: ListItem.view.background ? ListItem.view.background.imagePaint : undefined
horizontalAlignment: HorizontalAlignment.Fill
topPadding: 5
bottomPadding: 5
Expand Down
20 changes: 1 addition & 19 deletions assets/QuranPane.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,7 @@ NavigationPane
var advertisement = definition.createObject();
advertisement.open();
persist.saveValueFor("alFurqanAdvertised", 1);
} else if ( !persist.contains("tutorialVideo") ) {
var yesClicked = persist.showBlockingDialog( qsTr("Tutorial"), qsTr("Would you like to see a video tutorial on how to use the app?"), qsTr("Yes"), qsTr("No") );

if (yesClicked) {
vidTutorial.trigger("bb.action.OPEN");
}

persist.saveValueFor("tutorialVideo", 1);
}
} else if ( persist.tutorialVideo("http://youtu.be/7nA27gIxZ08") ) {}
}
}

Expand Down Expand Up @@ -66,16 +58,6 @@ NavigationPane
attachedObjects: [
ComponentDefinition {
id: definition
},

Invocation
{
id: vidTutorial

query {
mimeType: "text/html"
uri: "http://youtu.be/7nA27gIxZ08"
}
}
]
}
23 changes: 16 additions & 7 deletions assets/RangeSelector.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,24 @@ QtObject
function onSelectionChanged()
{
var all = parent.selectionList();
var n = all.length;
var first = all[0][0];
var last = all[n-1][0];

for (var i = first; i < last; i ++) {
parent.select([i,0], true);

if (!all) {
all = [];
}

var n = all.length;

parent.multiSelectHandler.status = qsTr("%n %1 selected", "", last-first+1).arg(itemName) + Retranslate.onLanguageChanged;
if (n > 0)
{
var first = all[0][0];
var last = all[n-1][0];

for (var i = first; i < last; i ++) {
parent.select([i,0], true);
}

parent.multiSelectHandler.status = qsTr("%n %1 selected", "", last-first+1).arg(itemName) + Retranslate.onLanguageChanged;
}

var multiActions = parent.multiSelectHandler.actions;

Expand Down
File renamed without changes

0 comments on commit 52effe0

Please sign in to comment.