diff options
author | Sergey Starosek <sergey.starosek@gmail.com> | 2014-01-15 22:35:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 09:12:56 +0700 |
commit | 88f3df5c790c0b2f70d4ba452c41fb85cfcd020d (patch) | |
tree | 34d2c3ec5fae0615517259d682e1c8566125c3e2 /qt-ui/maintab.cpp | |
parent | d2c95ddf7522e9e453fa4ed0726fbb4223137aec (diff) | |
download | subsurface-88f3df5c790c0b2f70d4ba452c41fb85cfcd020d.tar.gz |
Extend tags model to Buddy field
This doesn't change storage format. Instead it parses buddy strings and
converts them to string list which is supplied to tags widget.
This feature was requested in ticket #311
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
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 9fa94c8d6..81e820a71 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -834,8 +834,9 @@ void markChangedWidget(QWidget *w){ w->setPalette(p); } -void MainTab::on_buddy_textChanged(const QString& text) +void MainTab::on_buddy_textChanged() { + QString text = ui.buddy->toPlainText().split(",", QString::SkipEmptyParts).join(", "); EDIT_SELECTED_DIVES( EDIT_TEXT(mydive->buddy, text) ); markChangedWidget(ui.buddy); } |