summaryrefslogtreecommitdiff
path: root/qutebrowser/misc/miscwidgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/misc/miscwidgets.py')
-rw-r--r--qutebrowser/misc/miscwidgets.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/qutebrowser/misc/miscwidgets.py b/qutebrowser/misc/miscwidgets.py
index ffdfc951a..908ea6235 100644
--- a/qutebrowser/misc/miscwidgets.py
+++ b/qutebrowser/misc/miscwidgets.py
@@ -266,6 +266,22 @@ class WrapperLayout(QLayout):
self._widget.deleteLater()
+class PseudoLayout(QLayout):
+
+ def addItem(self, item):
+ assert self.parent() is not None
+ item.widget().setParent(self.parent())
+
+ def removeItem(self, item):
+ item.widget().setParent(None)
+
+ def count(self):
+ return 0
+
+ def itemAt(self, _pos):
+ return None
+
+
class FullscreenNotification(QLabel):
"""A label telling the user this page is now fullscreen."""