LineEdit: Make the side widgets occupy full height

remotes/origin/falkon
David Rosca 9 years ago
parent 7738deb721
commit e7bd2ed8cd
  1. 12
      src/lib/3rdparty/lineedit.cpp
  2. 5
      src/lib/3rdparty/lineedit.h

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

@ -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…
Cancel
Save