Removed the wheel event from E4VerticalToolBox.

Tue, 25 Oct 2011 18:58:00 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 25 Oct 2011 18:58:00 +0200
changeset 1399
b0f9840a6aea
parent 1396
f5d4c309fe8a
child 1400
a89de92379d5

Removed the wheel event from E4VerticalToolBox.

APIs/Python3/eric5.api file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Help/source.qhp file | annotate | diff | comparison | revisions
Documentation/Source/eric5.E5Gui.E5ToolBox.html file | annotate | diff | comparison | revisions
E5Gui/E5ToolBox.py file | annotate | diff | comparison | revisions
--- a/APIs/Python3/eric5.api	Mon Oct 24 19:12:23 2011 +0200
+++ b/APIs/Python3/eric5.api	Tue Oct 25 18:58:00 2011 +0200
@@ -1463,7 +1463,6 @@
 eric5.E5Gui.E5ToolBox.E5HorizontalToolBox.setItemEnabled?4(index, enabled)
 eric5.E5Gui.E5ToolBox.E5HorizontalToolBox.setItemToolTip?4(index, toolTip)
 eric5.E5Gui.E5ToolBox.E5HorizontalToolBox?1(parent=None)
-eric5.E5Gui.E5ToolBox.E5VerticalToolBox.wheelEvent?4(event)
 eric5.E5Gui.E5ToolBox.E5VerticalToolBox?1(parent=None)
 eric5.E5Gui.E5TreeSortFilterProxyModel.E5TreeSortFilterProxyModel.filterAcceptsRow?4(sourceRow, sourceParent)
 eric5.E5Gui.E5TreeSortFilterProxyModel.E5TreeSortFilterProxyModel.hasChildren?4(parent=QModelIndex())
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Help/source.qhp	Mon Oct 24 19:12:23 2011 +0200
+++ b/Documentation/Help/source.qhp	Tue Oct 25 18:58:00 2011 +0200
@@ -4472,7 +4472,6 @@
       <keyword name="E5HorizontalToolBox.setItemEnabled" id="E5HorizontalToolBox.setItemEnabled" ref="eric5.E5Gui.E5ToolBox.html#E5HorizontalToolBox.setItemEnabled" />
       <keyword name="E5HorizontalToolBox.setItemToolTip" id="E5HorizontalToolBox.setItemToolTip" ref="eric5.E5Gui.E5ToolBox.html#E5HorizontalToolBox.setItemToolTip" />
       <keyword name="E5VerticalToolBox (Constructor)" id="E5VerticalToolBox (Constructor)" ref="eric5.E5Gui.E5ToolBox.html#E5VerticalToolBox.__init__" />
-      <keyword name="E5VerticalToolBox.wheelEvent" id="E5VerticalToolBox.wheelEvent" ref="eric5.E5Gui.E5ToolBox.html#E5VerticalToolBox.wheelEvent" />
       <keyword name="E5SideBar (Module)" id="E5SideBar (Module)" ref="eric5.E5Gui.E5SideBar.html" />
       <keyword name="E5SideBar" id="E5SideBar" ref="eric5.E5Gui.E5SideBar.html#E5SideBar" />
       <keyword name="E5SideBar (Constructor)" id="E5SideBar (Constructor)" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.__init__" />
--- a/Documentation/Source/eric5.E5Gui.E5ToolBox.html	Mon Oct 24 19:12:23 2011 +0200
+++ b/Documentation/Source/eric5.E5Gui.E5ToolBox.html	Tue Oct 25 18:58:00 2011 +0200
@@ -185,9 +185,6 @@
 <tr>
 <td><a href="#E5VerticalToolBox.__init__">E5VerticalToolBox</a></td>
 <td>Constructor</td>
-</tr><tr>
-<td><a href="#E5VerticalToolBox.wheelEvent">wheelEvent</a></td>
-<td>Protected slot to support wheel events.</td>
 </tr>
 </table>
 <h3>Static Methods</h3>
@@ -204,16 +201,6 @@
 <dd>
 reference to the parent widget (QWidget)
 </dd>
-</dl><a NAME="E5VerticalToolBox.wheelEvent" ID="E5VerticalToolBox.wheelEvent"></a>
-<h4>E5VerticalToolBox.wheelEvent</h4>
-<b>wheelEvent</b>(<i>event</i>)
-<p>
-        Protected slot to support wheel events.
-</p><dl>
-<dt><i>reference</i></dt>
-<dd>
-to the wheel event (QWheelEvent)
-</dd>
 </dl>
 <div align="right"><a href="#top">Up</a></div>
 <hr />
--- a/E5Gui/E5ToolBox.py	Mon Oct 24 19:12:23 2011 +0200
+++ b/E5Gui/E5ToolBox.py	Tue Oct 25 18:58:00 2011 +0200
@@ -23,26 +23,6 @@
         @param parent reference to the parent widget (QWidget)
         """
         super().__init__(parent)
-    
-    def wheelEvent(self, event):
-        """
-        Protected slot to support wheel events.
-        
-        @param reference to the wheel event (QWheelEvent)
-        """
-        index = self.currentIndex()
-        if event.delta() > 0:
-            index -= 1
-        else:
-            index += 1
-        if index < 0:
-            index = self.count() - 1
-        elif index == self.count():
-            index = 0
-        
-        self.setCurrentIndex(index)
-        
-        event.accept()
 
 
 class E5HorizontalToolBox(E5TabWidget):

eric ide

mercurial