mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
LineEdit: Make the side widgets occupy full height
This commit is contained in:
parent
7738deb721
commit
e7bd2ed8cd
12
src/lib/3rdparty/lineedit.cpp
vendored
12
src/lib/3rdparty/lineedit.cpp
vendored
|
@ -1,6 +1,6 @@
|
|||
/* ============================================================
|
||||
* QupZilla - WebKit based browser
|
||||
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
|
||||
* QupZilla - Qt web browser
|
||||
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -399,3 +399,11 @@ void LineEdit::mouseDoubleClickEvent(QMouseEvent* event)
|
|||
|
||||
QLineEdit::mouseDoubleClickEvent(event);
|
||||
}
|
||||
|
||||
void LineEdit::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
QLineEdit::resizeEvent(event);
|
||||
|
||||
m_leftWidget->setFixedHeight(height());
|
||||
m_rightWidget->setFixedHeight(height());
|
||||
}
|
||||
|
|
5
src/lib/3rdparty/lineedit.h
vendored
5
src/lib/3rdparty/lineedit.h
vendored
|
@ -29,8 +29,8 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
/* ============================================================
|
||||
* QupZilla - WebKit based browser
|
||||
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
|
||||
* QupZilla - Qt web browser
|
||||
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -118,6 +118,7 @@ protected:
|
|||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
bool event(QEvent* event);
|
||||
|
||||
QMenu* createContextMenu();
|
||||
|
|
Loading…
Reference in New Issue
Block a user