summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-01-17 16:53:05 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-01-17 16:53:05 +0100
commit2c057ea1a622f9d5ce0cf654ffc9b67a46d428af (patch)
tree257d66ac28a969e7e4a6df1b6b7323130d320d55 /src
parentCoverity report fixes (diff)
downloadrekonq-2c057ea1a622f9d5ce0cf654ffc9b67a46d428af.tar.xz
No more auto-hide findbar
BUG: 310788 CCBUG: 313397
Diffstat (limited to 'src')
-rw-r--r--src/webwindow/findbar.cpp11
-rw-r--r--src/webwindow/findbar.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/webwindow/findbar.cpp b/src/webwindow/findbar.cpp
index e4d8ccfb..5f7d36e2 100644
--- a/src/webwindow/findbar.cpp
+++ b/src/webwindow/findbar.cpp
@@ -43,8 +43,6 @@
#include <KColorScheme>
// Qt Includes
-#include <QTimer>
-
#include <QCheckBox>
#include <QHBoxLayout>
#include <QKeyEvent>
@@ -56,7 +54,6 @@
FindBar::FindBar(QWidget *parent)
: QWidget(parent)
, m_lineEdit(new KLineEdit(this))
- , m_hideTimer(new QTimer(this))
, m_matchCase(new QCheckBox(i18n("&Match case"), this))
, m_highlightAll(new QCheckBox(i18n("&Highlight all"), this))
{
@@ -73,10 +70,6 @@ FindBar::FindBar(QWidget *parent)
layout->addWidget(hideButton);
layout->setAlignment(hideButton, Qt::AlignLeft | Qt::AlignTop);
- // hide timer
- connect(m_hideTimer, SIGNAL(timeout()), this, SLOT(hide()));
- m_hideTimer->setSingleShot(true);
-
// label
QLabel *label = new QLabel(i18n("Find:"));
layout->addWidget(label);
@@ -184,15 +177,12 @@ void FindBar::setVisible(bool visible)
emit searchString(m_lineEdit->text());
}
- m_hideTimer->start(20000);
-
m_lineEdit->setFocus();
m_lineEdit->selectAll();
}
else
{
updateHighlight();
- m_hideTimer->stop();
}
}
@@ -218,7 +208,6 @@ void FindBar::notifyMatch(bool match)
}
}
m_lineEdit->setPalette(p);
- m_hideTimer->start(60000);
}
diff --git a/src/webwindow/findbar.h b/src/webwindow/findbar.h
index ecf97d3c..80b7b955 100644
--- a/src/webwindow/findbar.h
+++ b/src/webwindow/findbar.h
@@ -70,7 +70,6 @@ Q_SIGNALS:
private:
KLineEdit *m_lineEdit;
- QTimer *m_hideTimer;
QCheckBox *m_matchCase;
QCheckBox *m_highlightAll;