1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

LineEdit: Make the side widgets occupy full height

This commit is contained in:
David Rosca 2017-01-22 16:12:26 +01:00
parent 7738deb721
commit e7bd2ed8cd
2 changed files with 13 additions and 4 deletions

View File

@ -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());
}

View File

@ -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();