diff options
-rw-r--r-- | src-qt5/desktop-utils/lumina-photo/PhotoView.h | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-photo/main.cpp | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-photo/mainUI.ui | 35 |
3 files changed, 36 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-photo/PhotoView.h b/src-qt5/desktop-utils/lumina-photo/PhotoView.h index a04a70d0..3e0bf876 100644 --- a/src-qt5/desktop-utils/lumina-photo/PhotoView.h +++ b/src-qt5/desktop-utils/lumina-photo/PhotoView.h @@ -18,7 +18,7 @@ class PhotoView : public QGraphicsView const double invScaleFactor = 1 / 1.25; bool eventFilter(QObject *, QEvent *event); void mouseDoubleClickEvent(QMouseEvent *event); - bool isFit = true; + bool isFit = false; signals: void nextImage(); diff --git a/src-qt5/desktop-utils/lumina-photo/main.cpp b/src-qt5/desktop-utils/lumina-photo/main.cpp index faf919be..e7562820 100644 --- a/src-qt5/desktop-utils/lumina-photo/main.cpp +++ b/src-qt5/desktop-utils/lumina-photo/main.cpp @@ -36,7 +36,7 @@ int main (int argc, char *argv[]) } // Now start the window MainUI W; - W.loadArguments (args); W.show (); + W.loadArguments (args); return a.exec (); } diff --git a/src-qt5/desktop-utils/lumina-photo/mainUI.ui b/src-qt5/desktop-utils/lumina-photo/mainUI.ui index d622050a..29e2a64b 100644 --- a/src-qt5/desktop-utils/lumina-photo/mainUI.ui +++ b/src-qt5/desktop-utils/lumina-photo/mainUI.ui @@ -26,7 +26,7 @@ <x>0</x> <y>0</y> <width>524</width> - <height>22</height> + <height>26</height> </rect> </property> <widget class="QMenu" name="menuFile"> @@ -99,11 +99,17 @@ <property name="text"> <string>Next</string> </property> + <property name="shortcut"> + <string>Right</string> + </property> </action> <action name="actionBack"> <property name="text"> <string>Back</string> </property> + <property name="shortcut"> + <string>Left</string> + </property> </action> <action name="action_Exit"> <property name="text"> @@ -120,31 +126,49 @@ <property name="text"> <string>&Open</string> </property> + <property name="shortcut"> + <string>Ctrl+O</string> + </property> </action> <action name="action_Save_as"> <property name="text"> <string>&Save as...</string> </property> + <property name="shortcut"> + <string>Ctrl+S</string> + </property> </action> <action name="action_Print"> <property name="text"> <string>&Print</string> </property> + <property name="shortcut"> + <string>Ctrl+P</string> + </property> </action> <action name="actionZoom_In"> <property name="text"> <string>Zoom &In</string> </property> + <property name="shortcut"> + <string>Ctrl++</string> + </property> </action> <action name="actionZoom_Out"> <property name="text"> <string>Zoom &Out</string> </property> + <property name="shortcut"> + <string>Ctrl+-</string> + </property> </action> <action name="action_Normal_Zoom"> <property name="text"> <string>&Normal Zoom</string> </property> + <property name="shortcut"> + <string>Ctrl+0</string> + </property> </action> <action name="action_Fit_to_windows"> <property name="text"> @@ -156,6 +180,9 @@ <property name="toolTip"> <string>Fit to Windows</string> </property> + <property name="shortcut"> + <string>F</string> + </property> </action> <action name="action_About"> <property name="text"> @@ -169,6 +196,9 @@ <property name="toolTip"> <string>First image</string> </property> + <property name="shortcut"> + <string>Home</string> + </property> </action> <action name="actionLast"> <property name="text"> @@ -177,6 +207,9 @@ <property name="toolTip"> <string>Last image</string> </property> + <property name="shortcut"> + <string>End</string> + </property> </action> </widget> <customwidgets> |