Add new icons to CalamaresUtils::defaultPixmap.

This commit is contained in:
Teo Mrnjavac 2015-04-02 12:49:40 +02:00
parent e6f98393b8
commit 506b79ef2c
2 changed files with 41 additions and 26 deletions

View file

@ -1,6 +1,6 @@
/* === This file is part of Calamares - <http://github.com/calamares> ===
*
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -42,36 +42,48 @@ defaultPixmap( ImageType type, ImageMode mode, const QSize& size )
switch ( type )
{
case Yes:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/yes.svgz", size );
break;
case Yes:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/yes.svgz", size );
break;
case No:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/no.svgz", size );
break;
case No:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/no.svgz", size );
break;
case Information:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/information.svgz", size );
break;
case Information:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/information.svgz", size );
break;
case Fail:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/fail.svgz", size );
break;
case Fail:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/fail.svgz", size );
break;
case Partitions:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/partitions.svgz", size );
break;
case Partitions:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/partitions.svgz", size );
break;
case Magic:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/magic.svgz", size );
break;
case Magic:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/magic.svgz", size );
break;
case Replace:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/replace.svgz", size );
break;
case Replace:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/replace.svgz", size );
break;
default:
break;
case Bugs:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/bugs.svg", size );
break;
case Help:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/help.svg", size );
break;
case Release:
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/release.svg", size );
break;
default:
break;
}
if ( pixmap.isNull() )

View file

@ -1,6 +1,6 @@
/* === This file is part of Calamares - <http://github.com/calamares> ===
*
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
* Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
*
* Calamares is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -37,7 +37,10 @@ enum ImageType : int
Fail,
Partitions,
Magic,
Replace
Replace,
Bugs,
Help,
Release
};
enum ImageMode