From 62407eef33d447906675e6761088e2e5032434b5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 26 May 2014 15:13:39 +0200 Subject: [PATCH] Revert "Use a splitter for the webinspector" This reverts commit f1f06b0a19c633b23bd4cf1fceb451ca256a683f. --- qutebrowser/widgets/mainwindow.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/qutebrowser/widgets/mainwindow.py b/qutebrowser/widgets/mainwindow.py index 66e1459b2..e4cf9da2e 100644 --- a/qutebrowser/widgets/mainwindow.py +++ b/qutebrowser/widgets/mainwindow.py @@ -20,8 +20,8 @@ import binascii from base64 import b64decode -from PyQt5.QtCore import pyqtSlot, QRect, QPoint, QCoreApplication, Qt -from PyQt5.QtWidgets import QWidget, QVBoxLayout, QSplitter +from PyQt5.QtCore import pyqtSlot, QRect, QPoint, QCoreApplication +from PyQt5.QtWidgets import QWidget, QVBoxLayout from PyQt5.QtWebKitWidgets import QWebInspector import qutebrowser.commands.utils as cmdutils @@ -70,18 +70,13 @@ class MainWindow(QWidget): self._vbox.setContentsMargins(0, 0, 0, 0) self._vbox.setSpacing(0) - self._splitter = QSplitter(self, orientation=Qt.Vertical) - self.tabs = TabbedBrowser() - self._splitter.addWidget(self.tabs) + self._vbox.addWidget(self.tabs) self.completion = CompletionView(self) self.inspector = QWebInspector() self.inspector.hide() - self._splitter.addWidget(self.inspector) - self._splitter.setStretchFactor(0, 50) - - self._vbox.addWidget(self._splitter) + self._vbox.addWidget(self.inspector) self.status = StatusBar() self._vbox.addWidget(self.status)