From aeb7e70b4e2050ca374a1f6ee7d74cff4d0ae7a7 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Sat, 23 Apr 2011 14:50:41 +0200 Subject: Add "comment" bookmark field in the bookmark panel --- src/bookmarks/bookmarkstreemodel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/bookmarks/bookmarkstreemodel.cpp') diff --git a/src/bookmarks/bookmarkstreemodel.cpp b/src/bookmarks/bookmarkstreemodel.cpp index 8d82e2b0..1e2e462f 100644 --- a/src/bookmarks/bookmarkstreemodel.cpp +++ b/src/bookmarks/bookmarkstreemodel.cpp @@ -94,6 +94,13 @@ QVariant BtmItem::data(int role) const tooltip += url; } + if (!m_kbm.description().isEmpty()) + { + if (!tooltip.isEmpty()) + tooltip += '\n'; + tooltip += m_kbm.description(); + } + return tooltip; } -- cgit v1.2.1