Hi,<br><br>I'm trying to solve bug 251616 (<span style="display: inline;"><span> 'Ctrl+I' is ambiguous.) I'm trying to change the italics shortcut when the view is created.<br><br>Code looks like this:<br>Index: kis_view2.cpp<br>
===================================================================<br>--- kis_view2.cpp (Revision 1187127)<br>+++ kis_view2.cpp (Arbeitskopie)<br>@@ -325,6 +325,13 @@<br> connect(m_d->canvas, SIGNAL(scrollAreaSizeChanged()), m_d->zoomManager, SLOT(slotScrollAreaSizeChanged()));<br>
<br> setAcceptDrops(true);<br>+ <br>+ QAction* selectionInvert = actionCollection()->action("invert");<br>+ QAction* textToolItalics = actionCollection()->action("format_italic");<br>
+ if(selectionInvert && textToolItalics && selectionInvert->shortcut() == textToolItalics->shortcut()) {<br>+ textToolItalics->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_I);<br>+ kDebug() << "shortcut is " << textToolItalics->shortcut();<br>
+ }<br> }<br><br>The debug code indicates that the shortcut is changed, but the problem persists.<br>Any ideas what I have to do?<br><br><br>Sven<br></span>
</span>