|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|