Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
3970c7c2
Commit
3970c7c2
authored
Aug 02, 2010
by
Tobias Koenig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SVN_SILENT: coding style fixes
svn path=/trunk/KDE/kdepim/akonadi/akonadi_next/; revision=1158334
parent
7e681c1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
akonadi_next/quotacolorproxymodel.cpp
akonadi_next/quotacolorproxymodel.cpp
+4
-4
No files found.
akonadi_next/quotacolorproxymodel.cpp
View file @
3970c7c2
...
...
@@ -48,7 +48,7 @@ QuotaColorProxyModel::QuotaColorProxyModel( QObject *parent )
:
QSortFilterProxyModel
(
parent
),
d
(
new
Private
(
this
)
)
{
setDynamicSortFilter
(
true
);
setDynamicSortFilter
(
true
);
}
QuotaColorProxyModel
::~
QuotaColorProxyModel
()
...
...
@@ -81,13 +81,13 @@ QVariant QuotaColorProxyModel::data( const QModelIndex & index, int role) const
if
(
role
==
Qt
::
ForegroundRole
)
{
const
QModelIndex
sourceIndex
=
mapToSource
(
index
);
const
QModelIndex
rowIndex
=
sourceIndex
.
sibling
(
sourceIndex
.
row
(),
0
);
Collection
collection
=
sourceModel
()
->
data
(
rowIndex
,
EntityTreeModel
::
CollectionRole
).
value
<
Collection
>
();
const
Collection
collection
=
sourceModel
()
->
data
(
rowIndex
,
EntityTreeModel
::
CollectionRole
).
value
<
Collection
>
();
if
(
collection
.
isValid
()
&&
collection
.
hasAttribute
<
CollectionQuotaAttribute
>
()
)
{
CollectionQuotaAttribute
*
quota
=
collection
.
attribute
<
CollectionQuotaAttribute
>
();
const
CollectionQuotaAttribute
*
quota
=
collection
.
attribute
<
CollectionQuotaAttribute
>
();
if
(
quota
->
currentValue
()
>
-
1
&&
quota
->
maximumValue
()
>
0
)
{
qreal
percentage
=
(
100.0
*
quota
->
currentValue
()
)
/
quota
->
maximumValue
();
const
qreal
percentage
=
(
100.0
*
quota
->
currentValue
()
)
/
quota
->
maximumValue
();
if
(
percentage
>=
d
->
mThreshold
)
{
return
d
->
mColor
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment