Commit 8ccdc24b authored by Matthias Kretz's avatar Matthias Kretz

correct orientation for the layouts in the toolbar

svn path=/trunk/KDE/kdemultimedia/juk/; revision=629492
parent e34e479f
......@@ -306,8 +306,11 @@ QWidget *SliderAction::createWidget(QWidget *parent) // virtual -- used by base
orientation = toolBar->orientation();
}
m_layout = new QBoxLayout(QBoxLayout::TopToBottom, base );
m_layout->setMargin(5);
if(orientation == Qt::Horizontal)
m_layout = new QHBoxLayout(base);
else
m_layout = new QVBoxLayout(base);
m_layout->setMargin(5);
m_layout->setSpacing(5);
m_layout->addItem(new QSpacerItem(20, 1));
......
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