Fix build warning
operator+ is deprecated
This commit is contained in:
parent
49a56bac6f
commit
ed1a70b8ce
1 changed files with 2 additions and 2 deletions
|
@ -58,14 +58,14 @@ void MemoservWin::create_menu(QApplication* app) {
|
||||||
{
|
{
|
||||||
const QIcon open_icon = QIcon::fromTheme("document-open", QIcon(":/images/open.png"));
|
const QIcon open_icon = QIcon::fromTheme("document-open", QIcon(":/images/open.png"));
|
||||||
const auto open_act = new QAction(open_icon, tr("&Open..."), this);
|
const auto open_act = new QAction(open_icon, tr("&Open..."), this);
|
||||||
open_act->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_O));
|
open_act->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_O));
|
||||||
connect(open_act, &QAction::triggered, this, &MemoservWin::open_file_from_dialog);
|
connect(open_act, &QAction::triggered, this, &MemoservWin::open_file_from_dialog);
|
||||||
file_menu->addAction(open_act);
|
file_menu->addAction(open_act);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
const QIcon quit_icon = QIcon::fromTheme("application-exit");
|
const QIcon quit_icon = QIcon::fromTheme("application-exit");
|
||||||
const auto quit_act = new QAction(quit_icon, tr("E&xit"), this);
|
const auto quit_act = new QAction(quit_icon, tr("E&xit"), this);
|
||||||
quit_act->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
|
quit_act->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q));
|
||||||
connect(quit_act, &QAction::triggered, [this](){this->close();});
|
connect(quit_act, &QAction::triggered, [this](){this->close();});
|
||||||
file_menu->addAction(quit_act);
|
file_menu->addAction(quit_act);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue