restored old version because it's necessary

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent ee2bd80315
commit 93042e7e8a
  1. 8
      src/gui/UBActionPalette.cpp

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

Loading…
Cancel
Save