diff --git a/src/resources/icons/vnote.ico b/src/resources/icons/vnote.ico new file mode 100644 index 00000000..e4879c61 Binary files /dev/null and b/src/resources/icons/vnote.ico differ diff --git a/src/resources/icons/vnote.svg b/src/resources/icons/vnote.svg new file mode 100644 index 00000000..b556a163 --- /dev/null +++ b/src/resources/icons/vnote.svg @@ -0,0 +1,9 @@ + + + + + Layer 1 + + V + + \ No newline at end of file diff --git a/src/src.pro b/src/src.pro index 54204814..397e419e 100644 --- a/src/src.pro +++ b/src/src.pro @@ -11,6 +11,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = VNote TEMPLATE = app +RC_ICONS = resources/icons/vnote.ico SOURCES += main.cpp\ vmainwindow.cpp \ diff --git a/src/vmainwindow.cpp b/src/vmainwindow.cpp index 00144de0..b73b3f22 100644 --- a/src/vmainwindow.cpp +++ b/src/vmainwindow.cpp @@ -16,6 +16,7 @@ extern VConfigManager vconfig; VMainWindow::VMainWindow(QWidget *parent) : QMainWindow(parent), notebookComboMuted(false) { + setWindowIcon(QIcon(":/resources/icons/vnote.ico")); // Must be called before those who uses VConfigManager vnote = new VNote(); initPredefinedColorPixmaps(); diff --git a/src/vnote.qrc b/src/vnote.qrc index c98a1302..a337cd4b 100644 --- a/src/vnote.qrc +++ b/src/vnote.qrc @@ -59,5 +59,7 @@ resources/icons/corner_tablist.svg resources/icons/outline.svg resources/icons/create_rootdir_tb.svg + resources/icons/vnote.svg + resources/icons/vnote.ico