Add custom delegate for showing the mountpoint combo box entries.
commitf4036eed87301eefdf79d3bafe74e5a3c5bc368b
authorbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Sat, 16 Jul 2011 22:08:03 +0000 (16 22:08 +0000)
committerbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Sat, 16 Jul 2011 22:08:03 +0000 (16 22:08 +0000)
treee474d37b9fab2c61516e24c06022c5d8c4bb94f1
parent77eee2577ba6ea60c302aa6006d03e5c672b0de7
Add custom delegate for showing the mountpoint combo box entries.

The delegate will be used for the dropdown list and show both mountpoint (left
aligned) and label / size information (right aligned). This improves
readability compared to the previous implementation. Also, the mountpoint
itself is now the text of the combo box and the additional information is in
the Qt::UserRole to avoid having to handle a user entered mountpoint separately
(since previously the mountpoint was stored in Qt::UserRole, but an edited item
would have the value in Qt::TextRole).

Disable editing the combo box entry for release builds, it shouldn't be needed
by users.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30144 a1c6a512-1295-4272-9138-f99709370657
rbutil/rbutilqt/comboboxviewdelegate.cpp [new file with mode: 0644]
rbutil/rbutilqt/comboboxviewdelegate.h [new file with mode: 0644]
rbutil/rbutilqt/configure.cpp
rbutil/rbutilqt/rbutilqt.pri
rbutil/rbutilqt/rbutilqt.pro