fixed ziplayertest, b843f8189 follow up

This commit is contained in:
Radim Blazek 2015-01-21 12:59:58 +01:00
parent c1f60e3876
commit 0cdfcd1315
2 changed files with 3 additions and 0 deletions

View File

@ -1329,6 +1329,8 @@ QVector<QgsDataItem*> QgsZipItem::createChildren()
if ( item )
{
QgsDebugMsgLevel( "loaded item", 3 );
// the item comes with zipped file name, set the name to relative path within zip file
item->setName( fileName );
children.append( item );
break;
}

View File

@ -144,6 +144,7 @@ class CORE_EXPORT QgsDataItem : public QObject
QVector<QgsDataItem*> children() const { return mChildren; }
virtual QIcon icon();
QString name() const { return mName; }
void setName( const QString &name ) { mName = name; }
QString path() const { return mPath; }
void setPath( const QString &path ) { mPath = path; }
//! Create path component replacing path separators