[rkward-cvs] SF.net SVN: rkward: [1546] trunk/rkward/rkward/windows/rkworkplace.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Mar 7 16:09:27 UTC 2007


Revision: 1546
          http://svn.sourceforge.net/rkward/?rev=1546&view=rev
Author:   tfry
Date:     2007-03-07 08:09:26 -0800 (Wed, 07 Mar 2007)

Log Message:
-----------
Add Alt+,. key combinations for prev/next window

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkworkplace.cpp

Modified: trunk/rkward/rkward/windows/rkworkplace.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkworkplace.cpp	2007-03-07 15:42:39 UTC (rev 1545)
+++ trunk/rkward/rkward/windows/rkworkplace.cpp	2007-03-07 16:09:26 UTC (rev 1546)
@@ -422,8 +422,13 @@
 void RKMDIWindowHistory::addActions (KActionCollection *ac, const char *prev_id, const char *next_id) {
 	RK_TRACE (APP);
 
-	prev_action = new KAction (i18n ("Previous Window"), QIconSet (QPixmap (QImage (RKCommonFunctions::getRKWardDataDir () + "icons/window_back.png"))), KShortcut ("Alt+<"), this, SLOT (prev ()), ac, prev_id);
-	next_action = new KAction (i18n ("Next Window"), QIconSet (QPixmap (QImage (RKCommonFunctions::getRKWardDataDir () + "icons/window_forward.png"))), KShortcut ("Alt+>"), this, SLOT (next ()), ac, next_id);
+	KShortcut prev_short ("Alt+<");
+	prev_short.append (KKey (Qt::ALT | Qt::Key_Comma));	// "Alt+," does not work, as "," has a special meaning.
+	prev_action = new KAction (i18n ("Previous Window"), QIconSet (QPixmap (QImage (RKCommonFunctions::getRKWardDataDir () + "icons/window_back.png"))), prev_short, this, SLOT (prev ()), ac, prev_id);
+
+	KShortcut next_short ("Alt+>");
+	next_short.append ("Alt+.");
+	next_action = new KAction (i18n ("Next Window"), QIconSet (QPixmap (QImage (RKCommonFunctions::getRKWardDataDir () + "icons/window_forward.png"))), next_short, this, SLOT (next ()), ac, next_id);
 	updateActions ();
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list