author | mickeyl <mickeyl> | 2004-04-23 12:20:13 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-23 12:20:13 (UTC) |
commit | 33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824 (patch) (side-by-side diff) | |
tree | c05204f0ed7f02a522ded2aaf9121e1976612f15 | |
parent | 85bfee8e542805ff7df67d9786bb291f7d2b34f3 (diff) | |
download | opie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.zip opie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.tar.gz opie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.tar.bz2 |
gcc3.4 fixlet
-rw-r--r-- | noncore/settings/appearance2/appearance.cpp | 14 |
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 @@ -676,16 +676,16 @@ void Appearance::editSchemeClicked ( ) int cnt = 0; QString labels [QColorGroup::NColorRoles]; QColor colors [QColorGroup::NColorRoles]; - 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 ) ); if ( col. isValid ( )) { - labels [cnt] = item-> label ( role ); - colors [cnt] = col; + labels[cnt] = item->label( static_cast<QColorGroup::ColorRole>( role ) ); + colors[cnt] = col; cnt++; } } @@ -695,13 +695,13 @@ void Appearance::editSchemeClicked ( ) { ColorListItem *citem = (ColorListItem *) m_color_list-> item ( 0 ); cnt = 0; - 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++; } } |