summaryrefslogtreecommitdiff
path: root/src/findbar.h
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2010-08-22 01:17:43 +0200
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-08-22 04:10:58 +0200
commitfe02d0962810b1ebca33c219274a5e3390de5286 (patch)
treec922c970b2cc3039b41775abe1089e452f9ad515 /src/findbar.h
parentRestore bk icon on the right (diff)
downloadrekonq-fe02d0962810b1ebca33c219274a5e3390de5286.tar.xz
Make the FindBar a bit more robust
The FindBar was slots show() and hide() instead of the virtual method QWidget::setVisible(). This can lead to subtle bugs, because the behavior is different depending on the type of call (signal-slot connection VS direct call on a pointer to QWidget) and the function called (hide() is != than setVisible(false)).
Diffstat (limited to 'src/findbar.h')
-rw-r--r--src/findbar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/findbar.h b/src/findbar.h
index 38bbcbc5..974d6137 100644
--- a/src/findbar.h
+++ b/src/findbar.h
@@ -55,9 +55,9 @@ public:
void notifyMatch(bool match);
bool highlightAllState() const;
+ void setVisible(bool visible);
+
public slots:
- void show();
- void hide();
void toggleVisibility();
signals: