mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Implement icon picker, bring back raster icons.
This commit is contained in:
parent
bf5f5091ef
commit
1782d5ad9a
75 changed files with 1098 additions and 424 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#include "instancemodel.h"
|
||||
#include <BaseInstance.h>
|
||||
#include <IconListModel.h>
|
||||
#include <QIcon>
|
||||
#include "iconcache.h"
|
||||
//#include "iconcache.h"
|
||||
|
||||
InstanceModel::InstanceModel ( const InstanceList& instances, QObject *parent )
|
||||
: QAbstractListModel ( parent ), m_instances ( &instances )
|
||||
|
|
@ -71,7 +72,7 @@ QVariant InstanceModel::data ( const QModelIndex& index, int role ) const
|
|||
}
|
||||
case Qt::DecorationRole:
|
||||
{
|
||||
IconCache * ic = IconCache::instance();
|
||||
IconList * ic = IconList::instance();
|
||||
// FIXME: replace with an icon cache/renderer
|
||||
/*
|
||||
QString path = ":/icons/instances/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue