From: Masayuki Satoh Date: Sat, 30 Aug 2014 01:35:16 +0000 (+0900) Subject: Ver0.19 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b78ff50a4903f803fe45bb960f97d835503d8e46;hp=6c4cbd0c514bdd01a0ba9b0d79418e12042157cf;p=gefu%2FGefu.git Ver0.19 --- diff --git a/README.md b/README.md index 2b1703f..f6dc8d0 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ Gefu is an Experimental File Utility. * 簡易FTPクライアント * SNS連携(タイムライン表示とか) ← ファイラーの機能か? +#### Ver0.19 + * 不具合修正 + * 一部のショートカットキーが効いていなかったのを修正。 + #### 2014/08/30 Ver0.18 * 画像ビューアに拡大・縮小・回転表示機能を追加。 diff --git a/mainwindow.cpp b/mainwindow.cpp index eb3142a..ad9473e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1067,8 +1067,11 @@ void MainWindow::setCursorToBegin() { qDebug() << "MainWindow::setCursorToBegin();"; - QKeyEvent event = QKeyEvent(QEvent::KeyPress, Qt::Key_Home, Qt::ControlModifier); - QApplication::sendEvent(QApplication::focusWidget(), &event); + QKeyEvent event1 = QKeyEvent(QEvent::KeyPress, Qt::Key_Home, Qt::NoModifier); + QApplication::sendEvent(QApplication::focusWidget(), &event1); + + QKeyEvent event2 = QKeyEvent(QEvent::KeyPress, Qt::Key_Home, Qt::ControlModifier); + QApplication::sendEvent(QApplication::focusWidget(), &event2); } void MainWindow::cursorDown() @@ -1091,8 +1094,11 @@ void MainWindow::setCursorToEnd() { qDebug() << "MainWindow::setCursorToEnd();"; - QKeyEvent event = QKeyEvent(QEvent::KeyPress, Qt::Key_End, Qt::ControlModifier); - QApplication::sendEvent(QApplication::focusWidget(), &event); + QKeyEvent event1 = QKeyEvent(QEvent::KeyPress, Qt::Key_End, Qt::NoModifier); + QApplication::sendEvent(QApplication::focusWidget(), &event1); + + QKeyEvent event2 = QKeyEvent(QEvent::KeyPress, Qt::Key_End, Qt::ControlModifier); + QApplication::sendEvent(QApplication::focusWidget(), &event2); } void MainWindow::setFontSizeDown() @@ -1147,6 +1153,8 @@ void MainWindow::changeFontSize(int diff) ui->pane3->imageView()->hasFocus()) { ui->pane1->imageView()->changeScale(diff > 0); + ui->pane2->imageView()->changeScale(diff > 0); + ui->pane3->imageView()->changeScale(diff > 0); } }