LayoutBuilder: Clean up a bit

Change-Id: I584e437f608126b0aceb292e6571ad51fc12fe87
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2024-06-07 10:54:49 +02:00
parent 2b4212bfd6
commit dc2317ebb8
2 changed files with 0 additions and 8 deletions

View File

@@ -244,10 +244,6 @@ LayoutItem::LayoutItem(const QString &t)
: text(t), empty(t.isEmpty()) : text(t), empty(t.isEmpty())
{} {}
LayoutItem::LayoutItem(const LayoutModifier &inner)
: empty(!inner), ownerModifier(inner)
{}
/*! /*!
\fn template <class T> LayoutItem(const T &t) \fn template <class T> LayoutItem(const T &t)
\internal \internal

View File

@@ -142,7 +142,6 @@ public:
class FlowLayout; class FlowLayout;
class Layout; class Layout;
using LayoutModifier = std::function<void(Layout *)>; using LayoutModifier = std::function<void(Layout *)>;
// using LayoutModifier = void(*)(Layout *);
class QTCREATOR_UTILS_EXPORT LayoutItem class QTCREATOR_UTILS_EXPORT LayoutItem
{ {
@@ -152,7 +151,6 @@ public:
LayoutItem(QLayout *l); LayoutItem(QLayout *l);
LayoutItem(QWidget *w); LayoutItem(QWidget *w);
LayoutItem(const QString &t); LayoutItem(const QString &t);
LayoutItem(const LayoutModifier &inner);
QString text; QString text;
QLayout *layout = nullptr; QLayout *layout = nullptr;
@@ -161,8 +159,6 @@ public:
int spanCols = 1; int spanCols = 1;
int spanRows = 1; int spanRows = 1;
bool empty = false; bool empty = false;
LayoutModifier ownerModifier;
//Qt::Alignment align = {};
}; };
class QTCREATOR_UTILS_EXPORT Layout : public Object class QTCREATOR_UTILS_EXPORT Layout : public Object