diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-22 20:00:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-22 20:00:26 -0700 |
commit | 33135e37a5458419bd33192c0c924a30cbbb180f (patch) | |
tree | 44ff3c3bb4514da1e360bd7e2e5997424dc75592 /qt-ui/maintab.cpp | |
parent | a5b14304f2ebb95487605aa4f336888581278961 (diff) | |
download | subsurface-33135e37a5458419bd33192c0c924a30cbbb180f.tar.gz |
Start editing Dive Notes when clicking on Rating or Visibility
Those widgets respond to MouseButtonPress and not FocusIn.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 4be27426c..fd33457d9 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -36,6 +36,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), ui->notes->setReadOnly(true); ui->rating->setReadOnly(true); ui->visibility->setReadOnly(true); + ui->editAccept->hide(); ui->editReset->hide(); @@ -107,7 +108,7 @@ void MainTab::showEvent(QShowEvent* event) bool MainTab::eventFilter(QObject* object, QEvent* event) { - if (event->type() == QEvent::FocusIn) { + if (event->type() == QEvent::FocusIn || event->type() == QEvent::MouseButtonPress) { if (ui->editAccept->isVisible() || !currentDive) return false; |