Implement zooming with Control key and mousewheel

This commit is contained in:
G.K.MacGregor
2021-05-04 21:52:51 +01:00
parent 9fa86f8c4c
commit 56e7b0500c
3 changed files with 28 additions and 0 deletions

View File

@@ -181,6 +181,9 @@ void MainWindow::init()
connect(m_textWidget->pageRender(), &TeletextPageRender::fullRowColourChanged, m_textScene, &LevelOneScene::setFullRowColour);
connect(m_textWidget, &TeletextWidget::insertKeyPressed, this, &MainWindow::toggleInsertMode);
connect(m_textScene, &LevelOneScene::mouseZoomIn, this, &MainWindow::zoomIn);
connect(m_textScene, &LevelOneScene::mouseZoomOut, this, &MainWindow::zoomOut);
QShortcut *blockShortCut = new QShortcut(QKeySequence(Qt::Key_Escape, Qt::Key_J), m_textView);
connect(blockShortCut, &QShortcut::activated, [=]() { m_textWidget->setCharacter(0x7f); });