|
|
|
@ -210,6 +210,10 @@ Config::Config( QObject* parent )
|
|
|
|
|
m_setxkbmapTimer.start( QApplication::keyboardInputInterval() );
|
|
|
|
|
emit prettyStatusChanged();
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
|
|
m_selectedModel = m_keyboardModelsModel->key( m_keyboardModelsModel->currentIndex() );
|
|
|
|
|
m_selectedLayout = m_keyboardLayoutsModel->item( m_keyboardLayoutsModel->currentIndex() ).first;
|
|
|
|
|
m_selectedVariant = m_keyboardVariantsModel->key( m_keyboardVariantsModel->currentIndex() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KeyboardModelsModel*
|
|
|
|
@ -528,37 +532,14 @@ Config::setConfigurationMap( const QVariantMap& configurationMap )
|
|
|
|
|
{
|
|
|
|
|
using namespace CalamaresUtils;
|
|
|
|
|
|
|
|
|
|
if ( configurationMap.contains( "xOrgConfFileName" )
|
|
|
|
|
&& configurationMap.value( "xOrgConfFileName" ).type() == QVariant::String
|
|
|
|
|
&& !getString( configurationMap, "xOrgConfFileName" ).isEmpty() )
|
|
|
|
|
{
|
|
|
|
|
m_xOrgConfFileName = getString( configurationMap, "xOrgConfFileName" );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
m_xOrgConfFileName = "00-keyboard.conf";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( configurationMap.contains( "convertedKeymapPath" )
|
|
|
|
|
&& configurationMap.value( "convertedKeymapPath" ).type() == QVariant::String
|
|
|
|
|
&& !getString( configurationMap, "convertedKeymapPath" ).isEmpty() )
|
|
|
|
|
{
|
|
|
|
|
m_convertedKeymapPath = getString( configurationMap, "convertedKeymapPath" );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
m_convertedKeymapPath = QString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( configurationMap.contains( "writeEtcDefaultKeyboard" )
|
|
|
|
|
&& configurationMap.value( "writeEtcDefaultKeyboard" ).type() == QVariant::Bool )
|
|
|
|
|
{
|
|
|
|
|
m_writeEtcDefaultKeyboard = getBool( configurationMap, "writeEtcDefaultKeyboard", true );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
const auto xorgConfDefault = QStringLiteral( "00-keyboard.conf" );
|
|
|
|
|
m_xOrgConfFileName = getString( configurationMap, "xOrgConfFileName", xorgConfDefault );
|
|
|
|
|
if ( m_xOrgConfFileName.isEmpty() )
|
|
|
|
|
{
|
|
|
|
|
m_writeEtcDefaultKeyboard = true;
|
|
|
|
|
m_xOrgConfFileName = xorgConfDefault;
|
|
|
|
|
}
|
|
|
|
|
m_convertedKeymapPath = getString( configurationMap, "convertedKeymapPath" );
|
|
|
|
|
m_writeEtcDefaultKeyboard = getBool( configurationMap, "writeEtcDefaultKeyboard", true );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|