forked from lubuwest/Friendiqa
Version 0.002 with working FriendsTabView
This commit is contained in:
parent
bc4adba50c
commit
42de63fe63
77 changed files with 6830 additions and 387 deletions
29
v0.002/Develop/source-android/qml/AlbumComboBox.qml
Normal file
29
v0.002/Develop/source-android/qml/AlbumComboBox.qml
Normal file
|
@ -0,0 +1,29 @@
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 1.2
|
||||
|
||||
Item {
|
||||
ComboBox{
|
||||
id: selectionTypeCombo
|
||||
width: 150
|
||||
model: ["album", "type","filename"]
|
||||
onCurrentIndexChanged:{
|
||||
var login=Service.readActiveConfig(db);
|
||||
if (currentText!==""){
|
||||
photogroupModel.clear();
|
||||
Service.readData(db, "imageData",function(filter){
|
||||
for (var j=0;j<filter.length;j++){
|
||||
Service.readField("data",db,"imageData",function(obj){
|
||||
// obj.sort(function(obj1,obj2){return obj1.data-obj2.data});
|
||||
if (obj) {
|
||||
for (var k=0;k<obj.length;k++){
|
||||
print("Photomodel:"+obj[k].location+obj[k].filename);
|
||||
photoModel.append({imageString: obj[k].location+obj[k].filename,photoDescription:obj[k].filename})
|
||||
};
|
||||
}
|
||||
if (obj[0]) {photogroupModel.append({photoDescription: filter[j]})};
|
||||
},currentText,filter[j]);
|
||||
}},"username",login.username)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue