ProjectExplorer: Some panels widget code cosmetics

Change-Id: I82fedcb9962e74c0b814f72f36b4a3ee968c3103
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2020-01-22 12:39:14 +01:00
parent d062ec28d8
commit 1f4d5ff743

View File

@@ -34,25 +34,18 @@
#include <utils/qtcassert.h>
#include <utils/styledbar.h>
namespace {
const int ICON_SIZE(64);
const int ABOVE_HEADING_MARGIN(10);
const int ABOVE_CONTENTS_MARGIN(4);
const int BELOW_CONTENTS_MARGIN(16);
const int PANEL_LEFT_MARGIN = 70;
} // anonymous namespace
///
// OnePixelBlackLine
///
/// \brief The OnePixelBlackLine class
using namespace ProjectExplorer;
using namespace Utils;
namespace ProjectExplorer {
namespace {
const int ICON_SIZE(64);
const int ABOVE_HEADING_MARGIN = 10;
const int ABOVE_CONTENTS_MARGIN = 4;
const int BELOW_CONTENTS_MARGIN = 16;
const int PANEL_LEFT_MARGIN = 70;
class RootWidget : public QWidget
{
public:
@@ -182,3 +175,5 @@ void PanelsWidget::addPropertiesPanel(const QString &displayName, const QIcon &i
widget->setParent(m_root);
m_layout->addWidget(widget, widgetRow, 0, 1, 2);
}
} // ProjectExplorer