[Konversation-devel] [Bug 103394] Ability to configure "Focus server tab" with ALT+<num> with the "natural" order of tabs

ismail donmez ( cartman ) ismail at kde.org
Thu Jul 1 16:02:50 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=103394





--- Comment #11 from ismail ( cartman ) donmez <ismail kde org>  2010-07-01 16:02:44 ---
commit 0521aae6aa00d986cd0df4bec8ae749b9e9be910
Author: İsmail Dönmez <ismail at kde.org>
Date:   Fri Apr 8 09:20:43 2005 +0000

    Start ALT+<int> shortcuts from ALT+1 as one expect from it
    BUG:103394

    svn path=/trunk/kdeextragear-2/konversation/; revision=403985

diff --git a/konversation/konversationmainwindow.cpp
b/konversation/konversationmainwindow.cpp
index a309f60..a7364ca 100644
--- a/konversation/konversationmainwindow.cpp
+++ b/konversation/konversationmainwindow.cpp
@@ -163,10 +163,10 @@ KonversationMainWindow::KonversationMainWindow() :
KMainWindow(0,"main_window",
   QSignalMapper* tabSelectionMapper = new QSignalMapper(this);
   connect(tabSelectionMapper, SIGNAL(mapped(int)), this, SLOT(goToTab(int)));

-  for(uint i = 0; i < 10; ++i) {
+  for(uint i = 1; i <= 10; ++i) {
     KAction* tabSelectionAction = new KAction(i18n("Go to Tab %1").arg(i), 0,
KShortcut(QString("Alt+%1").arg(i)),
       tabSelectionMapper, SLOT(map()), actionCollection(),
QString("go_to_tab_%1").arg(i).local8Bit());
-    tabSelectionMapper->setMapping( tabSelectionAction, i);
+    tabSelectionMapper->setMapping( tabSelectionAction, i-1);
   }

   action = new KAction(i18n("&Clear
Window"),0,KShortcut("Ctrl+L"),this,SLOT(clearWindow()),actionCollection(),"clear_window");

--- Comment #12 from ismail ( cartman ) donmez <ismail kde org>  2010-07-01 16:02:49 ---
commit 11110a8c22ef918355862b2c3144c39b55c7dbbc
Author: İsmail Dönmez <ismail at kde.org>
Date:   Fri Apr 8 11:17:05 2005 +0000

    ALT+0 for 10th tab. Suggestion by thiago
    CCBUG:103394
    CCMAIL:thiago at kde.org.tr

    svn path=/trunk/kdeextragear-2/konversation/; revision=404024

diff --git a/konversation/konversationmainwindow.cpp
b/konversation/konversationmainwindow.cpp
index e8493a3..a35daf2 100644
--- a/konversation/konversationmainwindow.cpp
+++ b/konversation/konversationmainwindow.cpp
@@ -163,12 +163,12 @@ KonversationMainWindow::KonversationMainWindow() :
KMainWindow(0,"main_window",
   QSignalMapper* tabSelectionMapper = new QSignalMapper(this);
   connect(tabSelectionMapper, SIGNAL(mapped(int)), this, SLOT(goToTab(int)));

-  for(uint i = 1; i < 10; ++i) {
-    KAction* tabSelectionAction = new KAction(i18n("Go to Tab %1").arg(i), 0,
KShortcut(QString("Alt+%1").arg(i)),
+  for(uint i = 1; i <= 10; ++i) {
+    KAction* tabSelectionAction = new KAction(i18n("Go to Tab %1").arg(i), 0,
KShortcut(QString("Alt+%1").arg(i%10)),
       tabSelectionMapper, SLOT(map()), actionCollection(),
QString("go_to_tab_%1").arg(i).local8Bit());
     tabSelectionMapper->setMapping( tabSelectionAction, i-1);
   }
-  
+
   action = new KAction(i18n("&Clear
Window"),0,KShortcut("Ctrl+L"),this,SLOT(clearWindow()),actionCollection(),"clear_window");
   action->setToolTip(i18n("Clear content of current window"));
   action->setEnabled(false);

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list