start adding way to load images

This commit is contained in:
lordwelch 2016-02-19 15:20:15 -08:00
parent c9cc1e688b
commit 970bbfe143
3 changed files with 16 additions and 2 deletions

View File

@ -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
} }

View File

@ -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
View 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
}