forked from qt-creator/qt-creator
LayoutBuilder: Clean up a bit
Change-Id: I584e437f608126b0aceb292e6571ad51fc12fe87 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -244,10 +244,6 @@ LayoutItem::LayoutItem(const QString &t)
|
||||
: text(t), empty(t.isEmpty())
|
||||
{}
|
||||
|
||||
LayoutItem::LayoutItem(const LayoutModifier &inner)
|
||||
: empty(!inner), ownerModifier(inner)
|
||||
{}
|
||||
|
||||
/*!
|
||||
\fn template <class T> LayoutItem(const T &t)
|
||||
\internal
|
||||
|
@@ -142,7 +142,6 @@ public:
|
||||
class FlowLayout;
|
||||
class Layout;
|
||||
using LayoutModifier = std::function<void(Layout *)>;
|
||||
// using LayoutModifier = void(*)(Layout *);
|
||||
|
||||
class QTCREATOR_UTILS_EXPORT LayoutItem
|
||||
{
|
||||
@@ -152,7 +151,6 @@ public:
|
||||
LayoutItem(QLayout *l);
|
||||
LayoutItem(QWidget *w);
|
||||
LayoutItem(const QString &t);
|
||||
LayoutItem(const LayoutModifier &inner);
|
||||
|
||||
QString text;
|
||||
QLayout *layout = nullptr;
|
||||
@@ -161,8 +159,6 @@ public:
|
||||
int spanCols = 1;
|
||||
int spanRows = 1;
|
||||
bool empty = false;
|
||||
LayoutModifier ownerModifier;
|
||||
//Qt::Alignment align = {};
|
||||
};
|
||||
|
||||
class QTCREATOR_UTILS_EXPORT Layout : public Object
|
||||
|
Reference in New Issue
Block a user