Skip to content

Commit

Permalink
Merge pull request #84 from cristian64/application_logo
Browse files Browse the repository at this point in the history
Add application logo for Dolphin Memory Engine.
  • Loading branch information
dreamsyntax authored Nov 4, 2023
2 parents c52b779 + 97d9be6 commit 5d1b88f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ project(Dolphin-memory-engine)

if(WIN32)
set(DolphinProcessSrc DolphinProcess/Windows/WindowsDolphinProcess.cpp)
set(ExeIconSrc Resources/exeicon.rc)
endif(WIN32)

if(UNIX)
Expand Down Expand Up @@ -32,6 +33,8 @@ set(SRCS ${DolphinProcessSrc}
GUI/MemViewer/MemViewer.cpp
GUI/MemViewer/MemViewerWidget.cpp
GUI/MainWindow.cpp
Resources/resource.qrc
${ExeIconSrc}
main.cpp)

set(CMAKE_INCLUE_CURRENT_DIR ON)
Expand All @@ -41,6 +44,7 @@ find_package(Qt6Core REQUIRED)
find_package(Qt6Gui REQUIRED)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

IF(WIN32)
SET(GUI_TYPE WIN32)
Expand Down
2 changes: 2 additions & 0 deletions Source/GUI/MainWindow.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "MainWindow.h"

#include <QHBoxLayout>
#include <QIcon>
#include <QMenuBar>
#include <QMessageBox>
#include <QShortcut>
Expand All @@ -19,6 +20,7 @@
MainWindow::MainWindow()
{
setWindowTitle("Dolphin Memory Engine 0.8.0");
setWindowIcon(QIcon(":/logo.svg"));
initialiseWidgets();
makeLayouts();
makeMenus();
Expand Down
1 change: 1 addition & 0 deletions Source/Resources/exeicon.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "logo.ico"
Binary file added Source/Resources/logo.ico
Binary file not shown.
18 changes: 18 additions & 0 deletions Source/Resources/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Source/Resources/resource.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>logo.svg</file>
</qresource>
</RCC>

0 comments on commit 5d1b88f

Please sign in to comment.