Add new icons to CalamaresUtils::defaultPixmap.
This commit is contained in:
parent
e6f98393b8
commit
506b79ef2c
@ -1,6 +1,6 @@
|
|||||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
/* === 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
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* 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 )
|
switch ( type )
|
||||||
{
|
{
|
||||||
case Yes:
|
case Yes:
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/yes.svgz", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/yes.svgz", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case No:
|
case No:
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/no.svgz", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/no.svgz", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Information:
|
case Information:
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/information.svgz", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/information.svgz", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Fail:
|
case Fail:
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/fail.svgz", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/fail.svgz", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Partitions:
|
case Partitions:
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/partitions.svgz", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/partitions.svgz", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Magic:
|
case Magic:
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/magic.svgz", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/magic.svgz", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Replace:
|
case Replace:
|
||||||
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/replace.svgz", size );
|
pixmap = ImageRegistry::instance()->pixmap( RESPATH "images/replace.svgz", size );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
case Bugs:
|
||||||
break;
|
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() )
|
if ( pixmap.isNull() )
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
/* === 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
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -37,7 +37,10 @@ enum ImageType : int
|
|||||||
Fail,
|
Fail,
|
||||||
Partitions,
|
Partitions,
|
||||||
Magic,
|
Magic,
|
||||||
Replace
|
Replace,
|
||||||
|
Bugs,
|
||||||
|
Help,
|
||||||
|
Release
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ImageMode
|
enum ImageMode
|
||||||
|
Loading…
Reference in New Issue
Block a user