Commit bfd48303 authored by Stephan Kulow's avatar Stephan Kulow

deprecated--

svn path=/trunk/KDE/kdemultimedia/juk/; revision=537262
parent 9be894cc
......@@ -51,7 +51,6 @@
#include <QPixmap>
#include <Q3Frame>
#include <Q3ValueList>
#include <Q3HBoxLayout>
#include "tag.h"
#include "filehandle.h"
......@@ -464,7 +463,7 @@ bool FileRenamerWidget::removeRow(int id)
void FileRenamerWidget::addFolderSeparatorCheckbox()
{
QWidget *temp = new QWidget(m_mainFrame);
Q3HBoxLayout *l = new Q3HBoxLayout(temp);
QHBoxLayout *l = new QHBoxLayout(temp);
QCheckBox *cb = new QCheckBox(i18n("Insert folder separator"), temp);
m_folderSwitches.append(cb);
......@@ -683,7 +682,10 @@ void FileRenamerWidget::moveItem(int id, MovementDirection direction)
// Move the item two spaces above/below its previous position. It has to
// be 2 spaces because of the checkbox.
Q3BoxLayout *layout = dynamic_cast<Q3BoxLayout *>(m_mainFrame->layout());
QBoxLayout *layout = dynamic_cast<QBoxLayout *>(m_mainFrame->layout());
if ( layout )
return;
#warning double check if that still works with Qt4s layout
layout->remove(l);
layout->insertWidget(2 * newPos, l);
......
......@@ -235,7 +235,9 @@ QWidget *SliderAction::createWidget(QWidget *parent) // virtual -- used by base
orientation = toolBar->orientation();
}
m_layout = new QBoxLayout(base, QBoxLayout::TopToBottom, 5, 5);
m_layout = new QBoxLayout(QBoxLayout::TopToBottom, base );
m_layout->setMargin(5);
m_layout->setSpacing(5);
m_layout->addItem(new QSpacerItem(20, 1));
......
......@@ -52,9 +52,10 @@ StatusLabel::StatusLabel(PlaylistInterface *playlist, QWidget *parent, const cha
// Make sure that we have enough of a margin to suffice for the borders,
// hence the "lineWidth() * 2"
QHBoxLayout *trackAndPlaylistLayout = new QHBoxLayout(trackAndPlaylist,
trackAndPlaylist->lineWidth() * 2,
5, "trackAndPlaylistLayout");
QHBoxLayout *trackAndPlaylistLayout = new QHBoxLayout( trackAndPlaylist );
trackAndPlaylistLayout->setMargin( trackAndPlaylist->lineWidth() * 2 );
trackAndPlaylistLayout->setSpacing( 5 );
trackAndPlaylistLayout->setObjectName( "trackAndPlaylistLayout");
trackAndPlaylistLayout->addSpacing(5);
m_playlistLabel = new KSqueezedTextLabel(trackAndPlaylist);
......
......@@ -93,11 +93,21 @@ class FixedHLayout : public QHBoxLayout
{
public:
FixedHLayout(QWidget *parent, int margin = 0, int spacing = -1, const char *name = 0) :
QHBoxLayout(parent, margin, spacing, name),
m_width(-1) {}
QHBoxLayout(parent),
m_width(-1)
{
setMargin( margin );
setSpacing( spacing );
setObjectName( name );
}
FixedHLayout(QLayout *parentLayout, int spacing = -1, const char *name = 0) :
QHBoxLayout(parentLayout, spacing, name),
m_width(-1) {}
QHBoxLayout(),
m_width(-1)
{
parentLayout->addItem( this );
setSpacing( spacing );
setObjectName( name );
}
void setWidth(int w = -1)
{
m_width = w == -1 ? QHBoxLayout::minimumSize().width() : w;
......@@ -543,8 +553,9 @@ void TagEditor::setupLayout()
//////////////////////////////////////////////////////////////////////////////
{ // just for organization
QHBoxLayout *fileNameLayout = new QHBoxLayout(rightColumnLayout,
horizontalSpacing);
QHBoxLayout *fileNameLayout = new QHBoxLayout();
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