forked from qt-creator/qt-creator
Fix wrong color of line/column label
Fix up of a8aa4bbb31
. That introduced a
non-QToolBar widget that should be styled like a tool bar, so use a
StyledBar instead of plain widget.
Task-number: QTCREATORBUG-20916
Change-Id: Ifd899fac136ef4e3310cd5d2b9cd9f0cd2de1376
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
#include <utils/hostosinfo.h>
|
||||
#include <utils/mimetypes/mimedatabase.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/styledbar.h>
|
||||
#include <utils/stylehelper.h>
|
||||
#include <utils/tooltip/tooltip.h>
|
||||
#include <utils/uncommentselection.h>
|
||||
@@ -804,7 +805,7 @@ TextEditorWidgetPrivate::TextEditorWidgetPrivate(TextEditorWidget *parent)
|
||||
auto toolBarLayout = new QHBoxLayout;
|
||||
toolBarLayout->setContentsMargins(0, 0, 0, 0);
|
||||
toolBarLayout->setSpacing(0);
|
||||
m_toolBarWidget = new QWidget;
|
||||
m_toolBarWidget = new Utils::StyledBar;
|
||||
m_toolBarWidget->setLayout(toolBarLayout);
|
||||
m_stretchWidget = new QWidget;
|
||||
m_stretchWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
|
Reference in New Issue
Block a user