forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -3,14 +3,19 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "utils_global.h"
|
||||
|
||||
#include <QList>
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <optional>
|
||||
|
||||
#if defined(UTILS_LIBRARY)
|
||||
# define QTCREATOR_UTILS_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
# define QTCREATOR_UTILS_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QLayout;
|
||||
class QSplitter;
|
||||
@@ -20,7 +25,7 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace Utils { class BoolAspect; }
|
||||
|
||||
namespace Utils::Layouting {
|
||||
namespace Layouting {
|
||||
|
||||
enum AttachType {
|
||||
WithMargins,
|
||||
@@ -180,7 +185,7 @@ QTCREATOR_UTILS_EXPORT extern HorizontalRule hr;
|
||||
// "Properties"
|
||||
|
||||
QTCREATOR_UTILS_EXPORT LayoutItem::Setter title(const QString &title,
|
||||
BoolAspect *checker = nullptr);
|
||||
Utils::BoolAspect *checker = nullptr);
|
||||
|
||||
QTCREATOR_UTILS_EXPORT LayoutItem::Setter text(const QString &text);
|
||||
QTCREATOR_UTILS_EXPORT LayoutItem::Setter tooltip(const QString &toolTip);
|
||||
@@ -289,4 +294,4 @@ public:
|
||||
Stack(std::initializer_list<LayoutItem> items) : LayoutBuilder(StackLayout, items) {}
|
||||
};
|
||||
|
||||
} // Utils::Layouting
|
||||
} // Layouting
|
||||
|
||||
Reference in New Issue
Block a user