@@ -1251,20 +1251,11 @@ QgsCptCityBrowserModel::QgsCptCityBrowserModel( QObject *parent,
1251
1251
{
1252
1252
Q_ASSERT ( mArchive != NULL );
1253
1253
QgsDebugMsg ( " archiveName = " + archive->archiveName () + " viewType=" + ( int ) viewType );
1254
+ // keep iconsize for now, but not effectively used
1254
1255
mIconSize = QSize ( 100 , 15 );
1255
1256
addRootItems ();
1256
1257
}
1257
1258
1258
- QgsCptCityBrowserModel::QgsCptCityBrowserModel ( QObject *parent,
1259
- QgsCptCityArchive* archive, QVector< QgsCptCityDataItem* > rootItems )
1260
- : QAbstractItemModel( parent ), mArchive( archive ), mViewType( List )
1261
- {
1262
- Q_ASSERT ( mArchive != NULL );
1263
- QgsDebugMsg ( QString ( " archiveName = %1 / %2 rootItems" ).arg ( archive->archiveName () ).arg ( rootItems.count () ) );
1264
- mIconSize = QSize ( 75 , 50 ); // TODO pass this as an argument
1265
- mRootItems = rootItems;
1266
- }
1267
-
1268
1259
QgsCptCityBrowserModel::~QgsCptCityBrowserModel ()
1269
1260
{
1270
1261
removeRootItems ();
@@ -1334,6 +1325,7 @@ QVariant QgsCptCityBrowserModel::data( const QModelIndex &index, int role ) cons
1334
1325
else if ( role == Qt::DecorationRole && index.column () == 1 &&
1335
1326
item->type () == QgsCptCityDataItem::ColorRamp )
1336
1327
{
1328
+ // keep iconsize for now, but not effectively used
1337
1329
return item->icon ( mIconSize );
1338
1330
}
1339
1331
else if ( role == Qt::FontRole &&
0 commit comments