[packagechooser] Log loading of screenshots
- start of indirection in loading, so that we can do a little more work searching for the screenshot.
This commit is contained in:
parent
d10a952065
commit
be398d7edb
@ -12,6 +12,12 @@
|
|||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
#include "utils/Variant.h"
|
#include "utils/Variant.h"
|
||||||
|
|
||||||
|
static QPixmap loadScreenshot( const QString& path )
|
||||||
|
{
|
||||||
|
cDebug() << path;
|
||||||
|
return QPixmap( path );
|
||||||
|
}
|
||||||
|
|
||||||
PackageItem::PackageItem() {}
|
PackageItem::PackageItem() {}
|
||||||
|
|
||||||
PackageItem::PackageItem( const QString& a_id, const QString& a_name, const QString& a_description )
|
PackageItem::PackageItem( const QString& a_id, const QString& a_name, const QString& a_description )
|
||||||
@ -36,7 +42,7 @@ PackageItem::PackageItem::PackageItem( const QVariantMap& item_map )
|
|||||||
: id( CalamaresUtils::getString( item_map, "id" ) )
|
: id( CalamaresUtils::getString( item_map, "id" ) )
|
||||||
, name( CalamaresUtils::Locale::TranslatedString( item_map, "name" ) )
|
, name( CalamaresUtils::Locale::TranslatedString( item_map, "name" ) )
|
||||||
, description( CalamaresUtils::Locale::TranslatedString( item_map, "description" ) )
|
, description( CalamaresUtils::Locale::TranslatedString( item_map, "description" ) )
|
||||||
, screenshot( CalamaresUtils::getString( item_map, "screenshot" ) )
|
, screenshot( loadScreenshot( CalamaresUtils::getString( item_map, "screenshot" ) ) )
|
||||||
, packageNames( CalamaresUtils::getStringList( item_map, "packages" ) )
|
, packageNames( CalamaresUtils::getStringList( item_map, "packages" ) )
|
||||||
{
|
{
|
||||||
if ( name.isEmpty() && id.isEmpty() )
|
if ( name.isEmpty() && id.isEmpty() )
|
||||||
|
Loading…
Reference in New Issue
Block a user