aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-04-25 10:15:07 +0200
committerhjk <hjk@qt.io>2023-04-25 13:31:25 +0000
commit8cf500c5bc2d2171f80f392d325ddcf5107e184c (patch)
tree20880282e81400d2f0aa70e327070ddc0b69f5fb /src/plugins/scxmleditor
parent68c92f6dfa2f431e784b3aebf38bc3f76a7cb0ce (diff)
Utils: Make Layouting a top level namespace
The whole machinery is now almost only layoutbuilder.{h,cpp}, mostly independent of the rest of Utils. Idea is to finish the separation to make it stand-alone usable also outside creator. Change-Id: I958aa667d17ae26b21209f22412309c5307a579c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor')
-rw-r--r--src/plugins/scxmleditor/common/colorpicker.cpp2
-rw-r--r--src/plugins/scxmleditor/common/colorsettings.cpp2
-rw-r--r--src/plugins/scxmleditor/common/colorthemedialog.cpp2
-rw-r--r--src/plugins/scxmleditor/common/navigatorslider.cpp2
-rw-r--r--src/plugins/scxmleditor/common/search.cpp2
-rw-r--r--src/plugins/scxmleditor/common/shapestoolbox.cpp2
-rw-r--r--src/plugins/scxmleditor/common/stateview.cpp2
-rw-r--r--src/plugins/scxmleditor/common/statistics.cpp2
-rw-r--r--src/plugins/scxmleditor/common/statisticsdialog.cpp2
9 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/scxmleditor/common/colorpicker.cpp b/src/plugins/scxmleditor/common/colorpicker.cpp
index 04e415224bf..32c3f6d6c46 100644
--- a/src/plugins/scxmleditor/common/colorpicker.cpp
+++ b/src/plugins/scxmleditor/common/colorpicker.cpp
@@ -34,7 +34,7 @@ ColorPicker::ColorPicker(const QString &key, QWidget *parent)
m_lastUsedColorContainer = new QHBoxLayout(lastUsedColorContainer);
m_lastUsedColorContainer->setContentsMargins(0, 0, 0, 0);
- using namespace Utils::Layouting;
+ using namespace Layouting;
Grid colorGrid;
for (int i = 0; i < colors.count(); ++i) {
QWidget *button = createButton(colors[i]);
diff --git a/src/plugins/scxmleditor/common/colorsettings.cpp b/src/plugins/scxmleditor/common/colorsettings.cpp
index c2ad9f22ce2..22761b7f02b 100644
--- a/src/plugins/scxmleditor/common/colorsettings.cpp
+++ b/src/plugins/scxmleditor/common/colorsettings.cpp
@@ -36,7 +36,7 @@ ColorSettings::ColorSettings(QWidget *parent)
s->value(Constants::C_SETTINGS_COLORSETTINGS_CURRENTCOLORTHEME).toString());
selectTheme(m_comboColorThemes->currentIndex());
- using namespace Utils::Layouting;
+ using namespace Layouting;
Column {
Row {
m_comboColorThemes,
diff --git a/src/plugins/scxmleditor/common/colorthemedialog.cpp b/src/plugins/scxmleditor/common/colorthemedialog.cpp
index 00f224d1f98..2f2b209b779 100644
--- a/src/plugins/scxmleditor/common/colorthemedialog.cpp
+++ b/src/plugins/scxmleditor/common/colorthemedialog.cpp
@@ -21,7 +21,7 @@ ColorThemeDialog::ColorThemeDialog(QWidget *parent)
QDialogButtonBox::Cancel |
QDialogButtonBox::Apply);
- using namespace Utils::Layouting;
+ using namespace Layouting;
Column {
m_colorSettings,
buttonBox,
diff --git a/src/plugins/scxmleditor/common/navigatorslider.cpp b/src/plugins/scxmleditor/common/navigatorslider.cpp
index 5f3fc345e1f..68d74dd1bed 100644
--- a/src/plugins/scxmleditor/common/navigatorslider.cpp
+++ b/src/plugins/scxmleditor/common/navigatorslider.cpp
@@ -29,7 +29,7 @@ NavigatorSlider::NavigatorSlider(QWidget *parent)
btn->setAutoRepeatInterval(10);
}
- using namespace Utils::Layouting;
+ using namespace Layouting;
Row {
zoomOut,
m_slider,
diff --git a/src/plugins/scxmleditor/common/search.cpp b/src/plugins/scxmleditor/common/search.cpp
index acfc5cda131..34f26017333 100644
--- a/src/plugins/scxmleditor/common/search.cpp
+++ b/src/plugins/scxmleditor/common/search.cpp
@@ -45,7 +45,7 @@ Search::Search(QWidget *parent)
m_searchView->setModel(m_proxyModel);
m_searchView->setFrameShape(QFrame::NoFrame);
- using namespace Utils::Layouting;
+ using namespace Layouting;
Column {
m_searchEdit,
m_searchView,
diff --git a/src/plugins/scxmleditor/common/shapestoolbox.cpp b/src/plugins/scxmleditor/common/shapestoolbox.cpp
index 988c762c347..1343859cc62 100644
--- a/src/plugins/scxmleditor/common/shapestoolbox.cpp
+++ b/src/plugins/scxmleditor/common/shapestoolbox.cpp
@@ -29,7 +29,7 @@ ShapesToolbox::ShapesToolbox(QWidget *parent)
m_shapeGroupsLayout->setContentsMargins(0, 0, 0, 0);
m_shapeGroupsLayout->setSpacing(0);
- using namespace Utils::Layouting;
+ using namespace Layouting;
Column {
scrollArea,
}.setSpacing(0).attachTo(this, WithoutMargins);
diff --git a/src/plugins/scxmleditor/common/stateview.cpp b/src/plugins/scxmleditor/common/stateview.cpp
index 1ee99034417..57759263fd4 100644
--- a/src/plugins/scxmleditor/common/stateview.cpp
+++ b/src/plugins/scxmleditor/common/stateview.cpp
@@ -31,7 +31,7 @@ StateView::StateView(StateItem *state, QWidget *parent)
m_graphicsView = new GraphicsView;
- using namespace Utils::Layouting;
+ using namespace Layouting;
Row {
PushButton{ text("Back"), onClicked([this] { closeView(); }, this) },
stateNameLabel,
diff --git a/src/plugins/scxmleditor/common/statistics.cpp b/src/plugins/scxmleditor/common/statistics.cpp
index 06c62f70b2a..ff1811eadd4 100644
--- a/src/plugins/scxmleditor/common/statistics.cpp
+++ b/src/plugins/scxmleditor/common/statistics.cpp
@@ -135,7 +135,7 @@ Statistics::Statistics(QWidget *parent)
m_statisticsView->setAlternatingRowColors(true);
m_statisticsView->setSortingEnabled(true);
- using namespace Utils::Layouting;
+ using namespace Layouting;
Grid {
Tr::tr("File"), m_fileNameLabel, br,
Tr::tr("Time"), m_timeLabel, br,
diff --git a/src/plugins/scxmleditor/common/statisticsdialog.cpp b/src/plugins/scxmleditor/common/statisticsdialog.cpp
index 7cfb6cd4637..d9a20dd81de 100644
--- a/src/plugins/scxmleditor/common/statisticsdialog.cpp
+++ b/src/plugins/scxmleditor/common/statisticsdialog.cpp
@@ -21,7 +21,7 @@ StatisticsDialog::StatisticsDialog(QWidget *parent)
m_statistics = new Statistics;
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
- using namespace Utils::Layouting;
+ using namespace Layouting;
Column {
m_statistics,
buttonBox,