Commit 93042e7e authored by Claudio Valerio's avatar Claudio Valerio

restored old version because it's necessary

parent ee2bd803
......@@ -48,7 +48,6 @@ UBActionPalette::UBActionPalette(Qt::Corner corner, QWidget * parent, Qt::Orient
void UBActionPalette::init(Qt::Orientation orientation)
{
Q_UNUSED(orientation);
m_customCloseProcessing = false;
mButtonSize = QSize(32, 32);
......@@ -58,6 +57,13 @@ void UBActionPalette::init(Qt::Orientation orientation)
mToolButtonStyle = Qt::ToolButtonIconOnly;
mButtons.clear();
QBoxLayout *layout = 0;
if (orientation == Qt::Horizontal)
layout = new QHBoxLayout(this);
else
layout = new QVBoxLayout(this);
updateLayout();
}
......
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