Subject: MainTab: enable editing on focus in the date/time field
Lubomir I. Ivanov
neolit123 at gmail.com
Fri Dec 13 04:12:48 UTC 2013
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
If we scroll with the mouse wheel over the data/time field we are able to
change the date without actually editing the dive.
Patch attempts to fix that.
Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
qt-ui/maintab.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 654ce98..bddafcf 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -303,7 +303,8 @@ bool MainTab::eventFilter(QObject* object, QEvent* event)
if (isEnabled() && event->type() == QEvent::FocusIn && (object == ui.rating ||
object == ui.visibility ||
- object == ui.tagWidget)) {
+ object == ui.tagWidget ||
+ object == ui.dateTimeEdit)) {
tabBar()->setTabIcon(currentIndex(), QIcon(":warning"));
enableEdition();
}
--
1.7.11.msysgit.0
More information about the subsurface
mailing list