summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.pri
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-16 22:08:03 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-16 22:08:03 +0000
commit99408dd45ea4243d7be88d5d3c27a7267fdef6f8 (patch)
treee474d37b9fab2c61516e24c06022c5d8c4bb94f1 /rbutil/rbutilqt/rbutilqt.pri
parent94bc289cd05ad3dccd8fafeeb3b725ef9a8c1446 (diff)
downloadrockbox-99408dd45ea4243d7be88d5d3c27a7267fdef6f8.tar.gz
rockbox-99408dd45ea4243d7be88d5d3c27a7267fdef6f8.tar.bz2
rockbox-99408dd45ea4243d7be88d5d3c27a7267fdef6f8.zip
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
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.pri')
-rw-r--r--rbutil/rbutilqt/rbutilqt.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pri b/rbutil/rbutilqt/rbutilqt.pri
index b0052c38b5..0f887d7070 100644
--- a/rbutil/rbutilqt/rbutilqt.pri
+++ b/rbutil/rbutilqt/rbutilqt.pri
@@ -73,6 +73,7 @@ SOURCES += \
quazip/zip.c \
quazip/ioapi.c \
base/ziputil.cpp \
+ comboboxviewdelegate.cpp \
HEADERS += \
@@ -141,6 +142,7 @@ HEADERS += \
quazip/unzip.h \
quazip/zip.h \
base/ziputil.h \
+ comboboxviewdelegate.h \
FORMS += \