summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-04-23 12:20:13 (UTC)
committer mickeyl <mickeyl>2004-04-23 12:20:13 (UTC)
commit33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824 (patch) (side-by-side diff)
treec05204f0ed7f02a522ded2aaf9121e1976612f15
parent85bfee8e542805ff7df67d9786bb291f7d2b34f3 (diff)
downloadopie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.zip
opie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.tar.gz
opie-33666eb31ae6d35aa527cf7bf22c2c2e0dcd6824.tar.bz2
gcc3.4 fixlet
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/appearance2/appearance.cpp12
1 files changed, 6 insertions, 6 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
@@ -672,40 +672,40 @@ void Appearance::colorClicked ( int index )
void Appearance::editSchemeClicked ( )
{
ColorListItem *item = (ColorListItem *) m_color_list-> item ( m_color_list-> currentItem ( ));
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 );
+ labels[cnt] = item->label( static_cast<QColorGroup::ColorRole>( role ) );
colors [cnt] = col;
cnt++;
}
}
EditScheme* editdlg = new EditScheme( cnt, labels, colors, this, "editScheme", true );
if ( QPEApplication::execDialog( editdlg ) == QDialog::Accepted )
{
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++;
}
}
m_color_list-> setCurrentItem ( 0 );
colorClicked ( 0 );
m_color_changed = true;