Skip to content

Commit

Permalink
update example cpp QKeySequences to be compatible with qt5 and 6
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsnotes authored and bog-dan-ro committed Sep 25, 2023
1 parent 8372cbc commit 60a9927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ int main(int argc, char *argv[])
QMenu *actionsMenu = new QMenu(QStringLiteral("Actions"), menuBar);
menuBar->addMenu(actionsMenu);
actionsMenu->addAction(QStringLiteral("Find..."), console, &QTermWidget::toggleShowSearchBar,
QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_F));
QKeySequence(QLatin1String("Ctrl+Shift+F")));
actionsMenu->addAction(QStringLiteral("Copy"), console, &QTermWidget::copyClipboard,
QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_C));
QKeySequence(QLatin1String("Ctrl+Shift+C")));
actionsMenu->addAction(QStringLiteral("Paste"), console, &QTermWidget::pasteClipboard,
QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_V));
QKeySequence(QLatin1String("Ctrl+Shift+V")));
actionsMenu->addAction(QStringLiteral("About Qt"), &app, &QApplication::aboutQt);
mainWindow->setMenuBar(menuBar);

Expand Down

0 comments on commit 60a9927

Please sign in to comment.