Add initial sync indicator. #144

This commit is contained in:
Black Hat
2019-07-02 16:03:33 +08:00
parent bdb93c1fd4
commit a8cc5f4861
2 changed files with 14 additions and 0 deletions

View File

@@ -68,6 +68,17 @@ ApplicationWindow {
onActivated: Qt.quit()
}
ToolTip {
id: busyIndicator
parent: ApplicationWindow.overlay
visible: spectralController.busy
text: "Loading, please wait"
font.pixelSize: 14
}
ToolTip {
id: errorControl

View File

@@ -56,6 +56,9 @@ class Controller : public QObject {
bool busy() { return m_busy; }
void setBusy(bool busy) {
if (m_busy == busy) {
return;
}
m_busy = busy;
emit busyChanged();
}