[Bug 273991] Mark message as ... submenu grows way too big when user has defined many tags

Sven Wehner sven at atelophobia.de
Thu Sep 22 20:19:30 BST 2011


https://bugs.kde.org/show_bug.cgi?id=273991


Sven Wehner <sven at atelophobia.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sven at atelophobia.de




--- Comment #2 from Sven Wehner <sven atelophobia de>  2011-09-22 19:19:30 ---
I use digikam to manage my photos and recently started tagging people, places,
objects etc. So I have a lot of tags. And entering the context menu for a
message can be quite stunning when hovering over the "Mark Message" entry.
I attached an screenshot of my full screen (!) when opening the menu. Please
note that on the right side the menu leaves the visible screen. And there is no
possibility to show those entries that doesn't find on the screen.

An additional problem is that the entries don't appear to be sorted. Which is
quite strange, because in the source code it says that it should be sorted
(tagactionmanager.cpp, line 107):
--- snip ---
// Build a sorted list of tags
QList<Tag::Ptr> tagList;
foreach( const Nepomuk::Tag &nepomukTag, Nepomuk::Tag::allTags() ) { [...] }
qSort( tagList.begin(), tagList.end(), KMail::Tag::compare );
(Source code:
https://projects.kde.org/projects/kde/kdepim/repository/revisions/master/entry/kmail/tagactionmanager.cpp#L107
)

If you check Tag.cpp for the compare() method, you will find that it sorts only
for priority... (
https://projects.kde.org/projects/kde/kdepim/repository/revisions/master/entry/kmail/tag.cpp#L101
)
I don't know if this is really a good idea. Couldn't you add something like the
top 5 or top 10 most important tags, and then add the other tags
alphabetically?


It would already help a lot if the Tags would be grouped, i.e. hierarchical
structured, like digikam does. Is that something digikam internal, or is there
a way to use this hierarchy?

KMail version: 4.7.1

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list