A small price to pay for qflags' type safety.
svn path=/trunk/KDE/kdebase/workspace/; revision=496328
This commit is contained in:
parent
d6fabbf89e
commit
56036e69ac
2 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ void writeRules( KConfig& cfg )
|
||||||
if( info->windowType == static_cast< NET::WindowType >( -2 )) // undefined
|
if( info->windowType == static_cast< NET::WindowType >( -2 )) // undefined
|
||||||
; // all types
|
; // all types
|
||||||
if( info->windowType == NET::Unknown )
|
if( info->windowType == NET::Unknown )
|
||||||
cfg.writeEntry( "types", NET::NormalMask );
|
cfg.writeEntry( "types", (int)NET::NormalMask );
|
||||||
else
|
else
|
||||||
cfg.writeEntry( "types", 1 << info->windowType );
|
cfg.writeEntry( "types", 1 << info->windowType );
|
||||||
cfg.writeEntry( "position", info->geometry.topLeft());
|
cfg.writeEntry( "position", info->geometry.topLeft());
|
||||||
|
|
|
@ -463,7 +463,7 @@ void KWinDecorationModule::readConfig( KConfig* conf )
|
||||||
// Help, Minimize, Maximize and Close are default on RHS
|
// Help, Minimize, Maximize and Close are default on RHS
|
||||||
buttonPositionWidget->setButtonsRight( conf->readEntry("ButtonsOnRight", "HIAX") );
|
buttonPositionWidget->setButtonsRight( conf->readEntry("ButtonsOnRight", "HIAX") );
|
||||||
|
|
||||||
int bsize = conf->readNumEntry( "BorderSize", BorderNormal );
|
int bsize = conf->readEntry( "BorderSize", (int)BorderNormal );
|
||||||
if( bsize >= BorderTiny && bsize < BordersCount )
|
if( bsize >= BorderTiny && bsize < BordersCount )
|
||||||
border_size = static_cast< BorderSize >( bsize );
|
border_size = static_cast< BorderSize >( bsize );
|
||||||
else
|
else
|
||||||
|
@ -492,7 +492,7 @@ void KWinDecorationModule::writeConfig( KConfig* conf )
|
||||||
// Button settings
|
// Button settings
|
||||||
conf->writeEntry("ButtonsOnLeft", buttonPositionWidget->buttonsLeft() );
|
conf->writeEntry("ButtonsOnLeft", buttonPositionWidget->buttonsLeft() );
|
||||||
conf->writeEntry("ButtonsOnRight", buttonPositionWidget->buttonsRight() );
|
conf->writeEntry("ButtonsOnRight", buttonPositionWidget->buttonsRight() );
|
||||||
conf->writeEntry("BorderSize", border_size );
|
conf->writeEntry("BorderSize", static_cast<int>( border_size ) );
|
||||||
|
|
||||||
oldLibraryName = currentLibraryName;
|
oldLibraryName = currentLibraryName;
|
||||||
currentLibraryName = libName;
|
currentLibraryName = libName;
|
||||||
|
|
Loading…
Reference in a new issue