[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sysadmin/muon/installer/CategoryView
From: Jonathan Michael Thomas <echidnaman () kubuntu ! org>
Date: 2010-12-25 3:32:44
Message-ID: 20101225033244.935603E1F1 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1209143 by jmthomas:
Play it safe and use the QModelIndex's data() function
M +1 -1 CategoryDrawer.cpp
--- trunk/extragear/sysadmin/muon/installer/CategoryView/CategoryDrawer.cpp \
#1209142:1209143 @@ -165,7 +165,7 @@
//BEGIN: draw text
{
- const QString category = index.model()->data(index, \
KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString(); + const \
QString category = index.data(KCategorizedSortFilterProxyModel::CategoryDisplayRole).toString();
QRect textRect = QRect(option.rect.topLeft(), QSize(option.rect.width(), \
height)); textRect.setTop(textRect.top() + 2 + 3 /* corner */);
textRect.setLeft(textRect.left() + 2 + 3 /* corner */ + 3 /* a bit of margin \
*/);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic