forked from lubuwest/Friendiqa
Friendiqa v0.3.2
This commit is contained in:
parent
8cd5905b63
commit
99ae53f624
54 changed files with 2771 additions and 437 deletions
|
@ -29,8 +29,9 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import QtQuick 2.7
|
||||
import QtQuick 2.5
|
||||
import QtQuick.Controls 1.2
|
||||
import "qrc:/qml/photoqml"
|
||||
|
||||
Package {
|
||||
Item { id: stackItem; Package.name: 'stack'; z: stackItem.PathView.z;width:16.5*mm;height:16.5*mm}
|
||||
|
@ -42,6 +43,7 @@ Package {
|
|||
width: 16.5*mm; height: 16.5*mm
|
||||
z: stackItem.PathView.z
|
||||
property string hqphotolink: photoLink
|
||||
property string imageId:""
|
||||
|
||||
Rectangle {
|
||||
id: placeHolder
|
||||
|
@ -82,7 +84,12 @@ Package {
|
|||
MouseArea {
|
||||
width: realImage.paintedWidth; height: realImage.paintedHeight; anchors.centerIn: realImage
|
||||
onPressAndHold:{
|
||||
var menuString="import QtQuick.Controls 1.4; Menu {MenuItem{text:qsTr('Delete on client and server'); onTriggered: {deletepics('image','"+imageLocation+"');photoModel.remove(index)}}}";
|
||||
var menuString="import QtQuick 2.5;import QtQuick.Controls 1.4; "+
|
||||
"Menu {MenuItem {text:qsTr('Delete on client and server'); onTriggered: {"+
|
||||
"changeimage('delete','image','"+imageLocation+"');photoModel.remove(index)}}"+
|
||||
"MenuItem {text:qsTr('Move to album'); onTriggered: {"+
|
||||
"changeimage('update','image','"+imageId+"');}}"+
|
||||
"}";
|
||||
var imagemenuObject=Qt.createQmlObject(menuString,photoWrapper,"imagemenuOutput")
|
||||
imagemenuObject.popup()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue