Commit 00a0b985 authored by Michael Pyne's avatar Michael Pyne

I do believe that this is the best we're going to be able to do with manual...

I do believe that this is the best we're going to be able to do with manual column resizing combined with the possibility of showing and hiding columns.

With that in mind, I'm closing bug 73435 (Add option for manual column width).

CCMAIL:73435-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=351112
parent ac3c7e42
......@@ -998,6 +998,12 @@ void Playlist::hideColumn(int c, bool updateSearch)
setColumnWidthMode(c, Manual);
setColumnWidth(c, 0);
// Moving the column to the end seems to prevent it from randomly
// popping up.
header()->moveSection(c, header()->count());
header()->setResizeEnabled(false, c);
if(c == m_leftColumn) {
if(m_playingItem) {
m_playingItem->setPixmap(m_leftColumn, QPixmap(0, 0));
......@@ -1027,6 +1033,8 @@ void Playlist::showColumn(int c, bool updateSearch)
// the real size in the next call.
setColumnWidth(c, 1);
header()->setResizeEnabled(true, c);
header()->moveSection(c, c); // Approximate old position
if(c == leftMostVisibleColumn()) {
if(m_playingItem) {
......
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