mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-22 03:37:14 +00:00
Implement icon picker, bring back raster icons.
This commit is contained in:
@@ -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/";
|
||||
|
||||
Reference in New Issue
Block a user