forked from qt-creator/qt-creator
Add a border on top of the find toolbar
It was missing.
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include <coreplugin/coreconstants.h>
|
||||
#include <coreplugin/findplaceholder.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/stylehelper.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||
#include <coreplugin/actionmanager/command.h>
|
||||
@@ -224,6 +225,16 @@ FindToolBar::~FindToolBar()
|
||||
{
|
||||
}
|
||||
|
||||
void FindToolBar::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
QToolBar::paintEvent(event);
|
||||
|
||||
QPainter p(this);
|
||||
const QRect r = rect();
|
||||
p.setPen(StyleHelper::borderColor());
|
||||
p.drawLine(r.topLeft(), r.topRight());
|
||||
}
|
||||
|
||||
bool FindToolBar::eventFilter(QObject *obj, QEvent *event)
|
||||
{
|
||||
if ((obj == m_ui.findEdit || obj == m_findCompleter->popup())
|
||||
|
||||
@@ -58,6 +58,8 @@ public:
|
||||
|
||||
void invokeClearResults();
|
||||
|
||||
void paintEvent(QPaintEvent *event);
|
||||
|
||||
private slots:
|
||||
void invokeFindNext();
|
||||
void invokeFindPrevious();
|
||||
|
||||
Reference in New Issue
Block a user