Fix build warning

operator+ is deprecated
This commit is contained in:
King_DuckZ 2025-02-14 09:50:43 +00:00
parent 49a56bac6f
commit ed1a70b8ce

View file

@ -58,14 +58,14 @@ void MemoservWin::create_menu(QApplication* app) {
{
const QIcon open_icon = QIcon::fromTheme("document-open", QIcon(":/images/open.png"));
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);
file_menu->addAction(open_act);
}
{
const QIcon quit_icon = QIcon::fromTheme("application-exit");
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();});
file_menu->addAction(quit_act);
}