Browse Source

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 17 years ago
parent
commit
97e68f5e56
2 changed files with 2 additions and 0 deletions
  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;
 }