mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
[keyboard] Apply coding style
This commit is contained in:
parent
705e6dd8d6
commit
83d2c06f68
1 changed files with 5 additions and 5 deletions
|
@ -220,7 +220,7 @@ SetKeyboardLayoutJob::writeVConsoleData( const QString& vconsoleConfPath, const
|
||||||
}
|
}
|
||||||
QTextStream stream( &file );
|
QTextStream stream( &file );
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for( const QString& existingLine : qAsConst( existingLines ) )
|
for ( const QString& existingLine : qAsConst( existingLines ) )
|
||||||
{
|
{
|
||||||
if ( existingLine.trimmed().startsWith( "KEYMAP=" ) )
|
if ( existingLine.trimmed().startsWith( "KEYMAP=" ) )
|
||||||
{
|
{
|
||||||
|
@ -300,8 +300,8 @@ SetKeyboardLayoutJob::writeX11Data( const QString& keyboardConfPath ) const
|
||||||
|
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
cDebug() << Logger::SubEntry << "Written XkbLayout" << m_layout << "; XkbModel" << m_model << "; XkbVariant" << m_variant
|
cDebug() << Logger::SubEntry << "Written XkbLayout" << m_layout << "; XkbModel" << m_model << "; XkbVariant"
|
||||||
<< "to X.org file" << keyboardConfPath << stream.status();
|
<< m_variant << "to X.org file" << keyboardConfPath << stream.status();
|
||||||
|
|
||||||
return ( stream.status() == QTextStream::Ok );
|
return ( stream.status() == QTextStream::Ok );
|
||||||
}
|
}
|
||||||
|
@ -332,8 +332,8 @@ SetKeyboardLayoutJob::writeDefaultKeyboardData( const QString& defaultKeyboardPa
|
||||||
|
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
cDebug() << Logger::SubEntry << "Written XKBMODEL" << m_model << "; XKBLAYOUT" << m_layout << "; XKBVARIANT" << m_variant
|
cDebug() << Logger::SubEntry << "Written XKBMODEL" << m_model << "; XKBLAYOUT" << m_layout << "; XKBVARIANT"
|
||||||
<< "to /etc/default/keyboard file" << defaultKeyboardPath << stream.status();
|
<< m_variant << "to /etc/default/keyboard file" << defaultKeyboardPath << stream.status();
|
||||||
|
|
||||||
return ( stream.status() == QTextStream::Ok );
|
return ( stream.status() == QTextStream::Ok );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue