forked from qt-creator/qt-creator
Layouting: Remove some now unused functions
Change-Id: I9e91bdbf68c38da22bd2378cb7d9596306bbb413 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -239,9 +239,6 @@ public:
|
|||||||
|
|
||||||
void addItem(const LayoutItem &item);
|
void addItem(const LayoutItem &item);
|
||||||
void addItems(const LayoutItems &items);
|
void addItems(const LayoutItems &items);
|
||||||
void addRow(const LayoutItems &items);
|
|
||||||
|
|
||||||
bool isForm() const;
|
|
||||||
|
|
||||||
QList<Slice> stack;
|
QList<Slice> stack;
|
||||||
};
|
};
|
||||||
@@ -324,7 +321,7 @@ void doAddWidget(LayoutBuilder &builder, QWidget *widget)
|
|||||||
|
|
||||||
A LayoutBuilder instance is typically used locally within a function and never stored.
|
A LayoutBuilder instance is typically used locally within a function and never stored.
|
||||||
|
|
||||||
\sa addItem(), addItems(), addRow()
|
\sa addItem(), addItems()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -346,12 +343,6 @@ void LayoutBuilder::addItems(const LayoutItems &items)
|
|||||||
addItemHelper(*this, item);
|
addItemHelper(*this, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LayoutBuilder::addRow(const LayoutItems &items)
|
|
||||||
{
|
|
||||||
addItem(br);
|
|
||||||
addItems(items);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
This starts a new row containing \a items. The row can be further extended by
|
This starts a new row containing \a items. The row can be further extended by
|
||||||
other items using \c addItem() or \c addItems().
|
other items using \c addItem() or \c addItems().
|
||||||
@@ -401,11 +392,6 @@ QWidget *LayoutItem::emerge()
|
|||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LayoutBuilder::isForm() const
|
|
||||||
{
|
|
||||||
return qobject_cast<QFormLayout *>(stack.last().layout);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void layoutExit(LayoutBuilder &builder)
|
static void layoutExit(LayoutBuilder &builder)
|
||||||
{
|
{
|
||||||
builder.stack.last().flush();
|
builder.stack.last().flush();
|
||||||
|
|||||||
Reference in New Issue
Block a user