start adding way to load images
This commit is contained in:
parent
c9cc1e688b
commit
970bbfe143
2
main.go
2
main.go
@ -17,7 +17,7 @@ import (
|
|||||||
|
|
||||||
type cell struct {
|
type cell struct {
|
||||||
text string
|
text string
|
||||||
img image.RGBA
|
img imagick.Image
|
||||||
qmlcell qml.Object
|
qmlcell qml.Object
|
||||||
index int
|
index int
|
||||||
}
|
}
|
||||||
|
3
main.qml
3
main.qml
@ -1,4 +1,5 @@
|
|||||||
import QtQuick 2.4
|
import QtQuick 2.4
|
||||||
|
import QtQuick.Dialogs 1.2
|
||||||
import QtQuick.Controls 1.3
|
import QtQuick.Controls 1.3
|
||||||
import QtQuick.Window 2.0
|
import QtQuick.Window 2.0
|
||||||
import "qml"
|
import "qml"
|
||||||
@ -15,7 +16,7 @@ ApplicationWindow {
|
|||||||
property bool cls: false
|
property bool cls: false
|
||||||
|
|
||||||
onClosing: if (!cls) {
|
onClosing: if (!cls) {
|
||||||
// close.accepted = false
|
close.accepted = false
|
||||||
}
|
}
|
||||||
|
|
||||||
AboutDialog {
|
AboutDialog {
|
||||||
|
13
qml/fileDialogs.qml
Normal file
13
qml/fileDialogs.qml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import QtQuick 2.2
|
||||||
|
import QtQuick.Dialogs 1.0
|
||||||
|
|
||||||
|
FileDialog {
|
||||||
|
id: imgDialog
|
||||||
|
title: "Please choose an image"
|
||||||
|
folder: shortcuts.home
|
||||||
|
onAccepted: {
|
||||||
|
}
|
||||||
|
onRejected: {
|
||||||
|
}
|
||||||
|
Component.onCompleted: visible = true
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user