summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/appearance2/appearance.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/noncore/settings/appearance2/appearance.cpp b/noncore/settings/appearance2/appearance.cpp
index 6b9fe4d..f918767 100644
--- a/noncore/settings/appearance2/appearance.cpp
+++ b/noncore/settings/appearance2/appearance.cpp
@@ -679,5 +679,5 @@ void Appearance::editSchemeClicked ( )
- for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ )
+ for ( int role = 0; role < (int) QColorGroup::NColorRoles; ++role )
{
- QColor col = item-> color ( role );
+ QColor col = item->color( static_cast<QColorGroup::ColorRole>( role ) );
@@ -685,4 +685,4 @@ void Appearance::editSchemeClicked ( )
{
- labels [cnt] = item-> label ( role );
- colors [cnt] = col;
+ labels[cnt] = item->label( static_cast<QColorGroup::ColorRole>( role ) );
+ colors[cnt] = col;
@@ -698,7 +698,7 @@ void Appearance::editSchemeClicked ( )
- for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ )
+ for ( int role = 0; role < (int) QColorGroup::NColorRoles; ++role )
{
- if ( item-> color ( role ). isValid ( ))
+ if ( item->color( static_cast<QColorGroup::ColorRole>( role ) ).isValid() )
{
- citem-> setColor ( role, colors [cnt] );
+ citem->setColor( static_cast<QColorGroup::ColorRole>( role ), colors[cnt] );
cnt++;