mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 11:25:36 -04:00
Code-style: format the keyboard module
This commit is contained in:
parent
ea07d9e1d8
commit
9b9801d48d
4 changed files with 63 additions and 75 deletions
|
@ -61,15 +61,13 @@ void
|
|||
KeyboardLayoutModel::init()
|
||||
{
|
||||
KeyboardGlobal::LayoutsMap layouts =
|
||||
KeyboardGlobal::getKeyboardLayouts();
|
||||
KeyboardGlobal::getKeyboardLayouts();
|
||||
for ( KeyboardGlobal::LayoutsMap::const_iterator it = layouts.constBegin();
|
||||
it != layouts.constEnd(); ++it )
|
||||
{
|
||||
it != layouts.constEnd(); ++it )
|
||||
m_layouts.append( qMakePair( it.key(), it.value() ) );
|
||||
}
|
||||
|
||||
std::stable_sort( m_layouts.begin(), m_layouts.end(), []( const QPair< QString, KeyboardGlobal::KeyboardInfo >& a,
|
||||
const QPair< QString, KeyboardGlobal::KeyboardInfo >& b )
|
||||
const QPair< QString, KeyboardGlobal::KeyboardInfo >& b )
|
||||
{
|
||||
return a.second.description < b.second.description;
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue