diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-02-16 09:33:27 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2016-02-17 08:41:46 +0000 |
commit | 2d133d62ab7a1cbe141138b90b399dad71113f06 (patch) | |
tree | 397a81d730bda0695d0b4453bd0b0193e20261ca /ui/qt/find_line_edit.h | |
parent | cb962ca3e59a709d4070267780008a32d9fb6a39 (diff) | |
download | wireshark-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.h | 5 |
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_; }; |