[Konversation-devel] [Bug 103394] Ability to configure "Focus
server tab" with ALT+<num> with the "natural" order of tabs
ismail cartman donmez
ismail at kde.org.tr
Fri Apr 8 13:11:10 CEST 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=103394
------- Additional Comments From ismail kde org tr 2005-04-08 13:11 -------
On Friday 08 April 2005 13:55, Thiago Macieira wrote:
[bugs.kde.org quoted mail]
Hmm 0 % 10 == 0 . But something like :
for(uint i = 0; i < 10; ++i) {
uint j = (i == 0) ? 10 : i;
KAction* tabSelectionAction = new KAction(i18n("Go to Tab %1").arg(j), 0,
KShortcut(QString("Alt+%1").arg(i)),
tabSelectionMapper, SLOT(map()), actionCollection(),
QString("go_to_tab_%1").arg(j).local8Bit());
tabSelectionMapper->setMapping( tabSelectionAction, j-1);
}
should work. What do you say?
Regards,
ismail
More information about the Konversation-devel
mailing list