mirror of
https://github.com/leozide/leocad
synced 2025-02-07 08:45:49 +01:00
Added frame around color widget.
This commit is contained in:
parent
ee49480334
commit
38be0becb3
1 changed files with 11 additions and 2 deletions
|
@ -581,9 +581,18 @@ void lcMainWindow::CreateToolBars()
|
||||||
mColorsToolBar = new QDockWidget(tr("Colors"), this);
|
mColorsToolBar = new QDockWidget(tr("Colors"), this);
|
||||||
mColorsToolBar->setObjectName("ColorsToolbar");
|
mColorsToolBar->setObjectName("ColorsToolbar");
|
||||||
|
|
||||||
mColorList = new lcQColorList();
|
QFrame* ColorFrame = new QFrame(mColorsToolBar);
|
||||||
|
ColorFrame->setFrameShape(QFrame::StyledPanel);
|
||||||
|
ColorFrame->setFrameShadow(QFrame::Sunken);
|
||||||
|
|
||||||
|
QGridLayout* ColorLayout = new QGridLayout(ColorFrame);
|
||||||
|
ColorLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
||||||
|
mColorList = new lcQColorList(ColorFrame);
|
||||||
|
ColorLayout->addWidget(mColorList);
|
||||||
connect(mColorList, SIGNAL(colorChanged(int)), this, SLOT(ColorChanged(int)));
|
connect(mColorList, SIGNAL(colorChanged(int)), this, SLOT(ColorChanged(int)));
|
||||||
mColorsToolBar->setWidget(mColorList);
|
|
||||||
|
mColorsToolBar->setWidget(ColorFrame);
|
||||||
addDockWidget(Qt::RightDockWidgetArea, mColorsToolBar);
|
addDockWidget(Qt::RightDockWidgetArea, mColorsToolBar);
|
||||||
|
|
||||||
mPropertiesToolBar = new QDockWidget(tr("Properties"), this);
|
mPropertiesToolBar = new QDockWidget(tr("Properties"), this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue