[keyboard] Warn if QRC is not available
This commit is contained in:
parent
0d8e0d9b96
commit
2aece7ff1b
@ -82,13 +82,18 @@ SetKeyboardLayoutJob::findConvertedKeymap( const QString& convertedKeymapPath )
|
||||
STATICTEST QString
|
||||
findLegacyKeymap( const QString& layout, const QString& model, const QString& variant )
|
||||
{
|
||||
cDebug() << "Looking for legacy keymap in QRC";
|
||||
cDebug() << "Looking for legacy keymap" << layout << model << variant << "in QRC";
|
||||
|
||||
int bestMatching = 0;
|
||||
QString name;
|
||||
|
||||
QFile file( ":/kbd-model-map" );
|
||||
file.open( QIODevice::ReadOnly | QIODevice::Text );
|
||||
if ( !file.open( QIODevice::ReadOnly | QIODevice::Text ) )
|
||||
{
|
||||
cDebug() << Logger::SubEntry << "Could not read QRC";
|
||||
return QString();
|
||||
}
|
||||
|
||||
QTextStream stream( &file );
|
||||
while ( !stream.atEnd() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user