aboutsummaryrefslogtreecommitdiffstats
path: root/Mist/errors.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-19 19:33:15 +0800
committerobscuren <geffobscura@gmail.com>2014-09-19 19:34:37 +0800
commitae1de6593c31fbaa4429588cea2702dd5b01a722 (patch)
treed19c960d08524f0c5449ba87ab7ef4054b782b32 /Mist/errors.go
parent723074e71bbe1638a5cec9b996b1eed07a76fd72 (diff)
downloaddexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar
dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.gz
dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.bz2
dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.lz
dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.xz
dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.tar.zst
dexon-ae1de6593c31fbaa4429588cea2702dd5b01a722.zip
renamed
Diffstat (limited to 'Mist/errors.go')
-rw-r--r--Mist/errors.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/Mist/errors.go b/Mist/errors.go
deleted file mode 100644
index 409b7a281..000000000
--- a/Mist/errors.go
+++ /dev/null
@@ -1,36 +0,0 @@
-package main
-
-import (
- "fmt"
- "os"
-
- "gopkg.in/qml.v1"
-)
-
-func ErrorWindow(err error) {
- engine := qml.NewEngine()
- component, e := engine.LoadString("local", qmlErr)
- if e != nil {
- fmt.Println("err:", err)
- os.Exit(1)
- }
-
- win := component.CreateWindow(nil)
- win.Root().ObjectByName("label").Set("text", err.Error())
- win.Show()
- win.Wait()
-}
-
-const qmlErr = `
-import QtQuick 2.0; import QtQuick.Controls 1.0;
-ApplicationWindow {
- width: 600; height: 150;
- flags: Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint
- title: "Error"
- Text {
- x: parent.width / 2 - this.width / 2;
- y: parent.height / 2 - this.height / 2;
- objectName: "label";
- }
-}
-`