Add window icon.

This commit is contained in:
Black Hat 2018-10-19 13:11:13 +08:00
parent 162016025b
commit 2e6ff1be22
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import QtQuick 2.9
RoomForm {
roomListModel.onNewMessage: if (!window.active) spectralController.showMessage(roomName, content, icon)
roomListModel.onNewMessage: if (!window.visible) spectralController.showMessage(roomName, content, icon)
}

View File

@ -31,6 +31,7 @@ int main(int argc, char *argv[]) {
app.setOrganizationName("ENCOM");
app.setOrganizationDomain("encom.eu.org");
app.setApplicationName("Spectral");
app.setWindowIcon(QIcon(":/assets/img/icon.png"));
app.setQuitOnLastWindowClosed(false);