Commit ae692de0 authored by Michael Pyne's avatar Michael Pyne

Try to not have the tag editor take up an enormous amount of space (and minor...

Try to not have the tag editor take up an enormous amount of space (and minor whitespace fix in tageditor.cpp)

svn path=/trunk/KDE/kdemultimedia/juk/; revision=821005
parent 93b94a55
......@@ -27,6 +27,7 @@
#include <QVBoxLayout>
#include <QList>
#include <Q3WidgetStack>
#include <QSizePolicy>
#include "searchwidget.h"
#include "playlistsearch.h"
......@@ -158,6 +159,7 @@ void PlaylistSplitter::setupLayout()
m_playlistStack = new Q3WidgetStack(top, "playlistStack");
m_playlistStack->installEventFilter(this);
m_playlistStack->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
connect(m_playlistStack, SIGNAL(aboutToShow(QWidget *)), this, SLOT(slotPlaylistChanged(QWidget *)));
......@@ -166,7 +168,8 @@ void PlaylistSplitter::setupLayout()
// Make the editor as small as possible (or at least as small as recommended)
editorSplitter->setStretchFactor(editorSplitter->indexOf(m_editor), 2);
editorSplitter->setStretchFactor(editorSplitter->indexOf(m_editor), 0);
editorSplitter->setStretchFactor(editorSplitter->indexOf(top), 1);
// Create the PlaylistBox
......@@ -201,7 +204,7 @@ void PlaylistSplitter::setupLayout()
topLayout->addWidget(nowPlaying);
topLayout->addWidget(m_searchWidget);
topLayout->addWidget(m_playlistStack);
topLayout->addWidget(m_playlistStack, 1);
// Show the collection on startup.
m_playlistBox->setSelected(0, true);
......
......@@ -46,6 +46,7 @@
#include <QKeyEvent>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QSizePolicy>
#include <id3v1genres.h>
......@@ -158,6 +159,8 @@ TagEditor::TagEditor(QWidget *parent) :
readConfig();
m_dataChanged = false;
m_collectionChanged = false;
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
}
TagEditor::~TagEditor()
......@@ -551,8 +554,8 @@ void TagEditor::setupLayout()
{ // just for organization
QHBoxLayout *fileNameLayout = new QHBoxLayout();
rightColumnLayout->addItem(fileNameLayout);
fileNameLayout->setSpacing(horizontalSpacing);
rightColumnLayout->addItem(fileNameLayout);
fileNameLayout->setSpacing(horizontalSpacing);
m_fileNameBox = new KLineEdit(this);
m_fileNameBox->setObjectName( "fileNameBox" );
......
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