heavily improved performance when adding items to file browser tree-widget (closes #2146218)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1759 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-10-16 11:51:15 +00:00
parent c775cb00e3
commit d1781362a4
3 changed files with 30 additions and 20 deletions

View File

@@ -142,7 +142,7 @@ public:
private:
void initPixmapStuff( void );
void initPixmaps( void );
bool addItems( const QString & _path );
@@ -186,8 +186,7 @@ public:
fileItem( QTreeWidget * _parent, const QString & _name,
const QString & _path );
fileItem( QTreeWidgetItem * _parent, const QString & _name,
const QString & _path );
fileItem( const QString & _name, const QString & _path );
inline QString fullName( void ) const
{
@@ -210,7 +209,7 @@ public:
private:
void initPixmapStuff( void );
void initPixmaps( void );
void determineFileType( void );
static QPixmap * s_projectFilePixmap;