1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

WebTab: Fix size of web inspector in splitter

BUG: 397596
FIXED-IN: 3.1.0
This commit is contained in:
David Rosca 2018-12-24 20:58:05 +01:00
parent 47f2a1697c
commit cba7f32666
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,8 @@ public:
void setView(WebView *view);
void inspectElement();
QSize sizeHint() const override;
static bool isEnabled();
static void pushView(QWebEngineView *view);
static void registerView(QWebEngineView *view);
@ -43,7 +45,6 @@ private Q_SLOTS:
void loadFinished();
private:
QSize sizeHint() const override;
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent *event) Q_DECL_OVERRIDE;

View File

@ -226,7 +226,9 @@ void WebTab::showWebInspector(bool inspectElement)
if (inspectElement)
inspector->inspectElement();
const int height = inspector->sizeHint().height();
m_splitter->addWidget(inspector);
m_splitter->setSizes({m_splitter->height() - height, height});
}
void WebTab::toggleWebInspector()