diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-30 17:03:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-30 17:03:08 +0300 |
commit | 7404124bf2578b713f613a749b283e8a1ed1faa3 (patch) | |
tree | f39b62ae1d23dc47bfa1a7f9ad2885b4fb05e691 /src/gui/windows/mailwindow.cpp | |
parent | a5d4a43d93f1acc5b0fabe98e45bffb1bcbe34b3 (diff) | |
download | manaverse-7404124bf2578b713f613a749b283e8a1ed1faa3.tar.gz manaverse-7404124bf2578b713f613a749b283e8a1ed1faa3.tar.bz2 manaverse-7404124bf2578b713f613a749b283e8a1ed1faa3.tar.xz manaverse-7404124bf2578b713f613a749b283e8a1ed1faa3.zip |
Add support for open mail message by double click.
Diffstat (limited to 'src/gui/windows/mailwindow.cpp')
-rw-r--r-- | src/gui/windows/mailwindow.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp index b23984c4c..e01bab225 100644 --- a/src/gui/windows/mailwindow.cpp +++ b/src/gui/windows/mailwindow.cpp @@ -263,3 +263,16 @@ void MailWindow::viewPrev(const int id) } } } + +void MailWindow::mouseClicked(MouseEvent &event) +{ + if (event.getButton() == MouseButton::LEFT) + { + event.consume(); + if (event.getClickCount() == 2 && + event.getSource() == mListBox) + { + action(ActionEvent(mListBox, "open")); + } + } +} |