OSDN Git Service

Ver0.19
authorMasayuki Satoh <miyabi.satoh@gmail.com>
Sat, 30 Aug 2014 01:35:16 +0000 (10:35 +0900)
committerMasayuki Satoh <miyabi.satoh@gmail.com>
Sat, 30 Aug 2014 01:35:16 +0000 (10:35 +0900)
README.md
mainwindow.cpp

index 2b1703f..f6dc8d0 100644 (file)
--- 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
   * 画像ビューアに拡大・縮小・回転表示機能を追加。
 
index eb3142a..ad9473e 100644 (file)
@@ -1067,8 +1067,11 @@ void MainWindow::setCursorToBegin()
 {\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
@@ -1091,8 +1094,11 @@ void MainWindow::setCursorToEnd()
 {\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
@@ -1147,6 +1153,8 @@ void MainWindow::changeFontSize(int diff)
         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