[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdewebdev/quanta/src
From:       Nicolas Deschildre <ndeschildre () kdewebdev ! org>
Date:       2004-09-14 19:23:08
Message-ID: 20040914192308.5B0A4175C () office ! kde ! org
[Download RAW message or body]

CVS commit by deschildre: 

* Remove the ctrl key shortcut for smart tag insertion.


  M +0 -24     quanta.cpp   1.627
  M +0 -2      quanta.h   1.269


--- kdewebdev/quanta/src/quanta.h  #1.268:1.269
@@ -496,6 +496,4 @@ protected:
   void resetDockLayout();
 
-  bool eventFilter(QObject *object, QEvent *event);
-
   ScriptTreeView *scriptTab;
 

--- kdewebdev/quanta/src/quanta.cpp  #1.626:1.627
@@ -194,5 +194,4 @@ static void silenceQToolBar(QtMsgType, c
 QuantaApp::QuantaApp(int mdiMode) : DCOPObject("WindowManagerIf"), KMdiMainFrm( 0, \
"Quanta", (KMdi::MdiMode) mdiMode)  {
-  this->installEventFilter(this);
   setStandardToolBarMenuEnabled( true );
   createStandardStatusBarAction();
@@ -4739,27 +4738,4 @@ void QuantaApp::initTabWidget(bool close
 }
 
-bool QuantaApp::eventFilter(QObject *obj, QEvent *event)
-{
-  //Smart Tag insertion : toggle the smart Tag insertion if the control key is \
                pressed/released
-  if(obj == this && (event->type() == QEvent::KeyPress || event->type() == \
                QEvent::KeyRelease) &&
-    ViewManager::ref()->activeDocument() && ViewManager::ref()->activeView() &&
-    ViewManager::ref()->activeDocument()->defaultDTD()->name.contains("HTML", false) \
                != 0)
-  {
-    QKeyEvent *keyevent = static_cast<QKeyEvent *>(event);
-    if(keyevent->key() == Key_Control)
-    {
-      KAction *action = actionCollection()->action("smart_tag_insertion");
-      if(!action)
-        return KMdiMainFrm::eventFilter(obj, event);
-
-      qConfig.smartTagInsertion = !qConfig.smartTagInsertion;
-      (static_cast<KToggleAction* >(action))->setChecked(qConfig.smartTagInsertion);
-
-    }
-  }
-
-  return KMdiMainFrm::eventFilter(obj, event);
-}
-
 void QuantaApp::slotFileClosed()
 {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic