Skip to content

Commit

Permalink
取消图标
Browse files Browse the repository at this point in the history
  • Loading branch information
才明洋 committed Feb 10, 2018
1 parent b690aef commit fc79c2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file modified icon/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setAttribute(Qt::AA_UseHighDpiPixmaps);
a.setWindowIcon(QIcon(QString(":/pic/icon/icon.png")));
MainWindow w;
w.show();
Expand Down
4 changes: 2 additions & 2 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),
setMenuBar(menuBar);
setStatusBar(statusbar);

aboutQtAct = new QAction(QIcon(":/pic/icon/qt-icon.png"), tr("&关于Qt"), this);
aboutAct = new QAction(QIcon(":/pic/icon/about.png"), tr("&关于SerialAsst"), this);
aboutQtAct = new QAction(/*QIcon(":/pic/icon/qt-icon.png"), */tr("&关于Qt"), this);
aboutAct = new QAction(/*QIcon(":/pic/icon/about.png"), */tr("&关于SerialAsst"), this);
helpMenu = menuBar->addMenu(tr("&帮助"));
helpMenu->addAction(aboutQtAct);
helpMenu->addAction(aboutAct);
Expand Down

0 comments on commit fc79c2f

Please sign in to comment.