Cool stuff!
One question though: any reason for converting the string to bytes just to convert back again?
path.
push_back( QString( bytes
) );
QByteArray bytes( reader.name().toLatin1() );
path.push_back( QString( bytes ) );
To copy to clipboard, switch view to plain text mode
And this
QList<TreeNode *>::iterator it = mChildren.begin();
QList<TreeNode *>::iterator eIt = mChildren.end();
while( it != eIt )
{
delete *it++;
}
QList<TreeNode *>::iterator it = mChildren.begin();
QList<TreeNode *>::iterator eIt = mChildren.end();
while( it != eIt )
{
delete *it++;
}
To copy to clipboard, switch view to plain text mode
can probably be shortened like this
qDeleteAll(mChildren);
qDeleteAll(mChildren);
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks