summaryrefslogtreecommitdiff
path: root/ui/qt/find_line_edit.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-02-16 09:33:27 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-02-17 08:41:46 +0000
commit2d133d62ab7a1cbe141138b90b399dad71113f06 (patch)
tree397a81d730bda0695d0b4453bd0b0193e20261ca /ui/qt/find_line_edit.h
parentcb962ca3e59a709d4070267780008a32d9fb6a39 (diff)
downloadwireshark-2d133d62ab7a1cbe141138b90b399dad71113f06.tar.gz
Qt: Validate FindLineEdit regexp
Check if regexp is valid and set valid/invalid background color. Change-Id: Ibf4d3fa84463afbd7c68631cfaddec8261807b8f Reviewed-on: https://code.wireshark.org/review/13962 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/find_line_edit.h')
-rw-r--r--ui/qt/find_line_edit.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/find_line_edit.h b/ui/qt/find_line_edit.h
index 03996323ea..5b9c9f3fcd 100644
--- a/ui/qt/find_line_edit.h
+++ b/ui/qt/find_line_edit.h
@@ -40,11 +40,14 @@ signals:
void useRegexFind(bool);
private slots:
- void contextMenuEvent(QContextMenuEvent *event);
void setUseTextual();
void setUseRegex();
private:
+ void contextMenuEvent(QContextMenuEvent *event);
+ void keyPressEvent(QKeyEvent *event);
+ void validateText();
+
bool use_regex_;
};