[qet] [737] Changement du raccourci clavier pour supprimer un objet sous MacOS.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 737
Author:   xavier
Date:     2009-08-15 17:20:53 +0200 (Sat, 15 Aug 2009)

Log Message:
-----------
Changement du raccourci clavier pour supprimer un objet sous MacOS.

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp
    trunk/sources/qetdiagrameditor.cpp


Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2009-08-15 12:48:45 UTC (rev 736)
+++ trunk/sources/editor/qetelementeditor.cpp	2009-08-15 15:20:53 UTC (rev 737)
@@ -149,7 +149,11 @@
 	copy              -> setShortcut(QKeySequence::Copy);
 	paste             -> setShortcut(QKeySequence::Paste);
 	paste_in_area     -> setShortcut(tr("Ctrl+Shift+V"));
+#ifndef Q_WS_MAC
 	edit_delete       -> setShortcut(QKeySequence(tr("Suppr")));
+#else
+	edit_delete       -> setShortcut(QKeySequence(tr("Backspace")));
+#endif
 	
 	zoom_in           -> setShortcut(QKeySequence::ZoomIn);
 	zoom_out          -> setShortcut(QKeySequence::ZoomOut);

Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp	2009-08-15 12:48:45 UTC (rev 736)
+++ trunk/sources/qetdiagrameditor.cpp	2009-08-15 15:20:53 UTC (rev 737)
@@ -252,7 +252,12 @@
 	select_all        -> setShortcut(QKeySequence::SelectAll);
 	select_nothing    -> setShortcut(QKeySequence(tr("Ctrl+Shift+A")));
 	select_invert     -> setShortcut(QKeySequence(tr("Ctrl+I")));
+#ifndef Q_WS_MAC
 	delete_selection  -> setShortcut(QKeySequence(tr("Suppr")));
+#else
+	delete_selection  -> setShortcut(QKeySequence(tr("Backspace")));
+#endif
+	
 	rotate_selection  -> setShortcut(QKeySequence(tr("Ctrl+R")));
 	selection_prop    -> setShortcut(QKeySequence(tr("Ctrl+J")));
 	conductor_reset   -> setShortcut(QKeySequence(tr("Ctrl+K")));


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/