[vlc-devel] commit: qt4: don't rebuild playlist-model from start when adding/ removing columns (Ilkka Ollakka )
git version control
git at videolan.org
Tue Aug 18 21:07:02 CEST 2009
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Aug 18 22:05:35 2009 +0300| [fcef76d439a45cec722caec00b60c3ffdb2d8911] | committer: Ilkka Ollakka
qt4: don't rebuild playlist-model from start when adding/removing columns
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fcef76d439a45cec722caec00b60c3ffdb2d8911
---
.../gui/qt4/components/playlist/playlist_model.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index fcdf44a..72e55a2 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -1004,6 +1004,8 @@ void PLModel::viewchanged( int meta )
index = __MIN( index, columnCount() );
QModelIndex parent = createIndex( 0, 0, rootItem );
+ emit layoutAboutToBeChanged();
+
if( i_showflags & meta )
/* Removing columns */
{
@@ -1020,8 +1022,10 @@ void PLModel::viewchanged( int meta )
getSettings()->setValue( "qt-pl-showflags", i_showflags );
emit endInsertColumns();
}
+
emit columnsChanged( meta );
- rebuild();
+ emit layoutChanged();
+
}
}
More information about the vlc-devel
mailing list