From 38be0becb3227e42fad599e9ed5fcd3bc6b2117a Mon Sep 17 00:00:00 2001 From: Leonardo Date: Thu, 29 Dec 2016 07:37:24 -0800 Subject: [PATCH] Added frame around color widget. --- common/lc_mainwindow.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/common/lc_mainwindow.cpp b/common/lc_mainwindow.cpp index 08225392..0ca9c8b3 100644 --- a/common/lc_mainwindow.cpp +++ b/common/lc_mainwindow.cpp @@ -581,9 +581,18 @@ void lcMainWindow::CreateToolBars() mColorsToolBar = new QDockWidget(tr("Colors"), this); 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))); - mColorsToolBar->setWidget(mColorList); + + mColorsToolBar->setWidget(ColorFrame); addDockWidget(Qt::RightDockWidgetArea, mColorsToolBar); mPropertiesToolBar = new QDockWidget(tr("Properties"), this);