Fixes: Toolbar cosmetic problem

RevBy:    b_lindeijer
Details:
This resolves the problem with missing top-borders on
the find toolbar.

(cherry picked from commit e5c845fcc7)
This commit is contained in:
Jens Bache-Wiig
2009-02-04 12:46:38 +01:00
committed by Thorbjørn Lindeijer
parent 932845fc36
commit 3b7c35fa9b
4 changed files with 6 additions and 15 deletions

View File

@@ -78,6 +78,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
m_ui.setupUi(m_widget);
addWidget(m_widget);
setFocusProxy(m_ui.findEdit);
setProperty("topBorder", true);
connect(m_ui.findEdit, SIGNAL(editingFinished()), this, SLOT(invokeResetIncrementalSearch()));
@@ -225,16 +226,6 @@ 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())

View File

@@ -58,8 +58,6 @@ public:
void invokeClearResults();
void paintEvent(QPaintEvent *event);
private slots:
void invokeFindNext();
void invokeFindPrevious();