Compare commits
3 Commits
52ceda5b06
...
gui
| Author | SHA1 | Date | |
|---|---|---|---|
| e3bf484a5d | |||
| bedd510b0a | |||
| a30ea2b457 |
@@ -104,28 +104,6 @@ Rectangle {
|
|||||||
onLinkActivated: function (link) {
|
onLinkActivated: function (link) {
|
||||||
Qt.openUrlExternally(link);
|
Qt.openUrlExternally(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Handle saving
|
|
||||||
// Component.onCompleted: {
|
|
||||||
// if (Qt.application.arguments.length === 2)
|
|
||||||
// textDocument.source = "file:" + Qt.application.arguments[1]
|
|
||||||
// else
|
|
||||||
// textDocument.source = "qrc:/texteditor.html"
|
|
||||||
// }
|
|
||||||
// textDocument.onStatusChanged: {
|
|
||||||
// // a message lookup table using computed properties:
|
|
||||||
// // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer
|
|
||||||
// const statusMessages = {
|
|
||||||
// [ TextDocument.ReadError ]: qsTr("Failed to load “%1”"),
|
|
||||||
// [ TextDocument.WriteError ]: qsTr("Failed to save “%1”"),
|
|
||||||
// [ TextDocument.NonLocalFileError ]: qsTr("Not a local file: “%1”"),
|
|
||||||
// }
|
|
||||||
// const err = statusMessages[textDocument.status]
|
|
||||||
// if (err) {
|
|
||||||
// errorDialog.text = err.arg(textDocument.source)
|
|
||||||
// errorDialog.open()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FontMetrics {
|
FontMetrics {
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 350 KiB After Width: | Height: | Size: 402 KiB |
@@ -57,7 +57,6 @@ pub mod qobject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Implement a provider for QFileSystemModel::setIconProvider for icons.
|
|
||||||
pub struct FileSystemImpl {
|
pub struct FileSystemImpl {
|
||||||
file_path: QString,
|
file_path: QString,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user