summaryrefslogtreecommitdiff
Unidiff
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
@@ -677,14 +677,14 @@ void Appearance::editSchemeClicked ( )
677 QString labels [QColorGroup::NColorRoles]; 677 QString labels [QColorGroup::NColorRoles];
678 QColor colors [QColorGroup::NColorRoles]; 678 QColor colors [QColorGroup::NColorRoles];
679 679
680 for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) 680 for ( int role = 0; role < (int) QColorGroup::NColorRoles; ++role )
681 { 681 {
682 QColor col = item-> color ( role ); 682 QColor col = item->color( static_cast<QColorGroup::ColorRole>( role ) );
683 683
684 if ( col. isValid ( )) 684 if ( col. isValid ( ))
685 { 685 {
686 labels [cnt] = item-> label ( role ); 686 labels[cnt] = item->label( static_cast<QColorGroup::ColorRole>( role ) );
687 colors [cnt] = col; 687 colors[cnt] = col;
688 688
689 cnt++; 689 cnt++;
690 } 690 }
@@ -696,11 +696,11 @@ void Appearance::editSchemeClicked ( )
696 ColorListItem *citem = (ColorListItem *) m_color_list-> item ( 0 ); 696 ColorListItem *citem = (ColorListItem *) m_color_list-> item ( 0 );
697 cnt = 0; 697 cnt = 0;
698 698
699 for ( QColorGroup::ColorRole role = (QColorGroup::ColorRole) 0; role != QColorGroup::NColorRoles; ((int) role )++ ) 699 for ( int role = 0; role < (int) QColorGroup::NColorRoles; ++role )
700 { 700 {
701 if ( item-> color ( role ). isValid ( )) 701 if ( item->color( static_cast<QColorGroup::ColorRole>( role ) ).isValid() )
702 { 702 {
703 citem-> setColor ( role, colors [cnt] ); 703 citem->setColor( static_cast<QColorGroup::ColorRole>( role ), colors[cnt] );
704 cnt++; 704 cnt++;
705 } 705 }
706 } 706 }