Skip to content

Commit

Permalink
feat: generate the program's icon
Browse files Browse the repository at this point in the history
  • Loading branch information
XMuli committed Dec 27, 2021
1 parent 9c13da3 commit 0cfc9eb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion AboutAuthor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ AboutAuthor::AboutAuthor(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutAuthor)
{

this->setWindowIcon(QIcon(":/images/chess.svg"));
ui->setupUi(this);

Expand Down
1 change: 1 addition & 0 deletions ChineseChess.pro
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ FORMS += ChessBoard.ui \
RESOURCES += \
chooseresource.qrc

RC_FILE = res.rc

Binary file added icon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions res.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_ICON ICON DISCARDABLE "icon.ico"

0 comments on commit 0cfc9eb

Please sign in to comment.