forked from qt-creator/qt-creator
Utils: Add "Layouting::HorizontalRule" LayoutItem
We have many horizontal separator lines in the UI, which are each time repetitively created from a QFrame with some flags set. With the .ui inlining, we will have more of these separators coming. This change intoduces a Layouting::HorizontalRule LayoutItem and replaces various existing QFarme separators with it. Change-Id: I60bad89e2a2b777fbd2f9d0cf872af81e41dcfd7 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -60,10 +60,6 @@ BookmarkDialog::BookmarkDialog(BookmarkManager *manager, const QString &title,
|
||||
|
||||
m_toolButton = new QToolButton;
|
||||
m_toolButton->setFixedSize(24, 24);
|
||||
auto line = new QFrame;
|
||||
line->setFrameShape(QFrame::HLine);
|
||||
line->setFrameShadow(QFrame::Sunken);
|
||||
line->setForegroundRole(QPalette::Midlight);
|
||||
|
||||
m_treeView = new QTreeView;
|
||||
m_treeView->setModel(proxyModel);
|
||||
@@ -83,7 +79,7 @@ BookmarkDialog::BookmarkDialog(BookmarkManager *manager, const QString &title,
|
||||
tr("Bookmark:"), m_bookmarkEdit, br,
|
||||
tr("Add in folder:"), m_bookmarkFolders, br,
|
||||
},
|
||||
Row { m_toolButton, line, },
|
||||
Row { m_toolButton, HorizontalRule {}, },
|
||||
m_treeView,
|
||||
Row { m_newFolderButton, m_buttonBox, }
|
||||
}.attachTo(this);
|
||||
|
||||
Reference in New Issue
Block a user