{\r
qDebug() << "MainWindow::setCursorToBegin();";\r
\r
- QKeyEvent event = QKeyEvent(QEvent::KeyPress, Qt::Key_Home, Qt::ControlModifier);\r
- QApplication::sendEvent(QApplication::focusWidget(), &event);\r
+ QKeyEvent event1 = QKeyEvent(QEvent::KeyPress, Qt::Key_Home, Qt::NoModifier);\r
+ QApplication::sendEvent(QApplication::focusWidget(), &event1);\r
+\r
+ QKeyEvent event2 = QKeyEvent(QEvent::KeyPress, Qt::Key_Home, Qt::ControlModifier);\r
+ QApplication::sendEvent(QApplication::focusWidget(), &event2);\r
}\r
\r
void MainWindow::cursorDown()\r
{\r
qDebug() << "MainWindow::setCursorToEnd();";\r
\r
- QKeyEvent event = QKeyEvent(QEvent::KeyPress, Qt::Key_End, Qt::ControlModifier);\r
- QApplication::sendEvent(QApplication::focusWidget(), &event);\r
+ QKeyEvent event1 = QKeyEvent(QEvent::KeyPress, Qt::Key_End, Qt::NoModifier);\r
+ QApplication::sendEvent(QApplication::focusWidget(), &event1);\r
+\r
+ QKeyEvent event2 = QKeyEvent(QEvent::KeyPress, Qt::Key_End, Qt::ControlModifier);\r
+ QApplication::sendEvent(QApplication::focusWidget(), &event2);\r
}\r
\r
void MainWindow::setFontSizeDown()\r
ui->pane3->imageView()->hasFocus())\r
{\r
ui->pane1->imageView()->changeScale(diff > 0);\r
+ ui->pane2->imageView()->changeScale(diff > 0);\r
+ ui->pane3->imageView()->changeScale(diff > 0);\r
}\r
}\r
\r