Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 30131a9a authored by Scott Wheeler's avatar Scott Wheeler

Set some default sizes -- this will be overridden by config settings if

they're available.

svn path=/trunk/kdemultimedia/juk/; revision=207453
parent 14db5848
......@@ -88,6 +88,8 @@ void JuK::setupLayout()
updatePlaylistInfo();
splitter->setFocus();
setFixedSize(750, 500);
}
void JuK::setupActions()
......
......@@ -422,6 +422,13 @@ void PlaylistSplitter::readConfig()
{ // block for Playlists group
KConfigGroupSaver saver(config, "Playlists");
QValueList<int> splitterSizes = config->readIntListEntry("PlaylistSplitterSizes");
if(splitterSizes.isEmpty()) {
splitterSizes.append(100);
splitterSizes.append(640);
}
setSizes(splitterSizes);
if(restore) {
QString playlistsFile = KGlobal::dirs()->saveLocation("appdata") + "playlists";
......@@ -510,6 +517,8 @@ void PlaylistSplitter::saveConfig()
l.append(int(_visibleColumns[i]));
config->writeEntry("VisibleColumns", l);
config->writeEntry("PlaylistSplitterSizes", sizes());
}
}
}
......
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