Commit c72d7261 authored by Michael Pyne's avatar Michael Pyne
Browse files

The recent change to postpone CollectionList initialization causes it to spend...

The recent change to postpone CollectionList initialization causes it to spend a lot of time needlessly updating the list view if JuK is shown at startup.  So, just hide the list view until it's done.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=853012
parent ff8bbf69
...@@ -164,6 +164,7 @@ void PlaylistSplitter::setupLayout() ...@@ -164,6 +164,7 @@ void PlaylistSplitter::setupLayout()
m_playlistStack = new Q3WidgetStack(top, "playlistStack"); m_playlistStack = new Q3WidgetStack(top, "playlistStack");
m_playlistStack->installEventFilter(this); m_playlistStack->installEventFilter(this);
m_playlistStack->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); m_playlistStack->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_playlistStack->hide(); // Will be shown after CollectionList filled.
connect(m_playlistStack, SIGNAL(aboutToShow(QWidget *)), this, SLOT(slotPlaylistChanged(QWidget *))); connect(m_playlistStack, SIGNAL(aboutToShow(QWidget *)), this, SLOT(slotPlaylistChanged(QWidget *)));
...@@ -266,6 +267,7 @@ void PlaylistSplitter::slotPlaylistChanged(QWidget *w) ...@@ -266,6 +267,7 @@ void PlaylistSplitter::slotPlaylistChanged(QWidget *w)
void PlaylistSplitter::slotEnable() void PlaylistSplitter::slotEnable()
{ {
setEnabled(true); // Ready to go. setEnabled(true); // Ready to go.
m_playlistStack->show();
} }
#include "playlistsplitter.moc" #include "playlistsplitter.moc"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment