ViewManager/ViewManager.py

branch
6_1_x
changeset 4898
87f323577ce1
parent 4893
6756ba35675b
child 5010
4990220334dc
diff -r 542b5ff34053 -r 87f323577ce1 ViewManager/ViewManager.py
--- a/ViewManager/ViewManager.py	Mon Mar 28 11:53:48 2016 +0200
+++ b/ViewManager/ViewManager.py	Mon Mar 28 13:31:23 2016 +0200
@@ -12,10 +12,10 @@
 import os
 
 from PyQt5.QtCore import pyqtSignal, pyqtSlot, QSignalMapper, QTimer, \
-    QFileInfo, QRegExp, QObject, Qt, QCoreApplication
+    QFileInfo, QRegExp, Qt, QCoreApplication
 from PyQt5.QtGui import QColor, QKeySequence, QPalette, QPixmap
 from PyQt5.QtWidgets import QLineEdit, QToolBar, QWidgetAction, QDialog, \
-    QApplication, QMenu, QComboBox
+    QApplication, QMenu, QComboBox, QWidget
 from PyQt5.Qsci import QsciScintilla
 
 from E5Gui.E5Application import e5App
@@ -85,7 +85,7 @@
         super(QuickSearchLineEdit, self).focusInEvent(evt)   # pass it on
 
 
-class ViewManager(QObject):
+class ViewManager(QWidget):##QObject):
     """
     Base class inherited by all specific viewmanager classes.
     
@@ -445,6 +445,17 @@
         """
         raise RuntimeError('Not implemented')
     
+    def mainWidget(self):
+        """
+        Public method to return a reference to the main Widget of a
+        specific view manager subclass.
+        
+        @return reference to the main widget
+        @rtype QWidget
+        @exception RuntimeError Not implemented
+        """
+        raise RuntimeError('Not implemented')
+    
     #####################################################################
     ## methods above need to be implemented by a subclass
     #####################################################################

eric ide

mercurial