Compare commits
No commits in common. "a9a0997714aaf06394e3fe82bf55770047d70f48" and "16c9e6c6329a6bd3344e46e336fe734ae1db0e39" have entirely different histories.
a9a0997714
...
16c9e6c632
|
@ -2,7 +2,6 @@ import QtQuick 2.15
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import FluentUI
|
import FluentUI
|
||||||
import "qrc:///AicsKnowledgeBase/qml/global"
|
import "qrc:///AicsKnowledgeBase/qml/global"
|
||||||
import SignalFileOperation 1.0
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -164,7 +163,7 @@ Item {
|
||||||
if (model.isDir) {
|
if (model.isDir) {
|
||||||
listView.headerItem.add(model.title, model.uuid)
|
listView.headerItem.add(model.title, model.uuid)
|
||||||
} else {
|
} else {
|
||||||
emit: SignalFileOperation.open(model.uuid)
|
emit: open(model.uuid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
pragma Singleton
|
|
||||||
|
|
||||||
import QtQuick
|
|
||||||
|
|
||||||
QtObject {
|
|
||||||
signal open(string file)
|
|
||||||
signal openNote(string note)
|
|
||||||
}
|
|
|
@ -6,14 +6,12 @@ import QtQuick.Controls.Basic
|
||||||
import QtWebEngine 1.2
|
import QtWebEngine 1.2
|
||||||
import FluentUI
|
import FluentUI
|
||||||
import AicsKB.FileTransferManager
|
import AicsKB.FileTransferManager
|
||||||
import SignalFileOperation 1.0
|
|
||||||
import "qrc:///AicsKnowledgeBase/qml/page"
|
import "qrc:///AicsKnowledgeBase/qml/page"
|
||||||
|
|
||||||
FluArea {
|
FluArea {
|
||||||
id: content_area
|
id: content_area
|
||||||
paddings: 0
|
paddings: 0
|
||||||
backgroundColor: "#f9f9f9"
|
backgroundColor: "#f9f9f9"
|
||||||
visible: false
|
|
||||||
property string type: ""
|
property string type: ""
|
||||||
property string knowledgeFileId
|
property string knowledgeFileId
|
||||||
signal download(string knowledgeFileId)
|
signal download(string knowledgeFileId)
|
||||||
|
@ -25,13 +23,6 @@ FluArea {
|
||||||
// bottom: 10
|
// bottom: 10
|
||||||
// left: 10
|
// left: 10
|
||||||
// }
|
// }
|
||||||
Connections {
|
|
||||||
target: SignalFileOperation
|
|
||||||
function onOpen(file) {
|
|
||||||
content_area.visible = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
FluScrollablePage {
|
FluScrollablePage {
|
||||||
id: content_page
|
id: content_page
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
@ -54,8 +54,6 @@ int main(int argc, char *argv[])
|
||||||
qmlRegisterSingletonInstance<FileTransferManager>("AicsKB.FileTransferManager", 1, 0, "FileTransferManager",
|
qmlRegisterSingletonInstance<FileTransferManager>("AicsKB.FileTransferManager", 1, 0, "FileTransferManager",
|
||||||
fileTransferManager);
|
fileTransferManager);
|
||||||
|
|
||||||
qmlRegisterSingletonType(QUrl("qrc:/AicsKnowledgeBase/qml/global/SignalFileOperation.qml"), "SignalFileOperation", 1, 0,
|
|
||||||
"SignalFileOperation");
|
|
||||||
|
|
||||||
const QUrl url(u"qrc:/AicsKnowledgeBase/qml/App.qml"_qs);
|
const QUrl url(u"qrc:/AicsKnowledgeBase/qml/App.qml"_qs);
|
||||||
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
|
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
|
||||||
|
|
Loading…
Reference in New Issue