Explorar o código

Disable the shortcut for the KatePart's builtin find to make Ctrl+F unambiguously refer to my implementation of Find.

git-svn-id: file:///var/svn/tigccpp/trunk@1172 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler %!s(int64=17) %!d(string=hai) anos
pai
achega
97e68f5e56
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      ktigcc/mainform.cpp
  2. 1 0
      ktigcc/srcfilewin.cpp

+ 1 - 0
ktigcc/mainform.cpp

@@ -1922,6 +1922,7 @@ void *MainForm::createView(const QString &fileName, const QString &fileText, Q3L
   connect(newView->document(),SIGNAL(undoChanged()),this,SLOT(current_view_undoChanged()));
   newView->setContextMenu(te_popup);
   newView->setCursorPosition(KTextEditor::Cursor(0,0));
+  newView->action(KStandardAction::name(KStandardAction::Find))->setShortcut(QKeySequence());
   return newView;
 }
 

+ 1 - 0
ktigcc/srcfilewin.cpp

@@ -529,6 +529,7 @@ void *SourceFileWindow::createView(const QString &fileName, const QString &hlMod
   connect(newView->document(),SIGNAL(undoChanged()),this,SLOT(current_view_undoChanged()));
   newView->setContextMenu(te_popup);
   newView->setCursorPosition(KTextEditor::Cursor(0,0));
+  newView->action(KStandardAction::name(KStandardAction::Find))->setShortcut(QKeySequence());
   return newView;
 }