21 #ifndef _ENABLE_QT_EXPERIMENTAL_
22 #error You should define _ENABLE_QT_EXPERIMENTAL_ in order to use this experimental header file.
25 #include <unity/util/DefinesPtrs.h>
27 #pragma GCC diagnostic push
28 #pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
29 #include <QtCore/QVariant>
30 #pragma GCC diagnostic pop
31 #include <QtCore/QVector>
44 class QColumnLayoutImpl;
45 class QPreviewReplyImpl;
101 int size()
const noexcept;
115 QVector<QString>
column(
int index)
const;
118 QVariantMap serialize()
const;
124 std::unique_ptr<internal::QColumnLayoutImpl> p;
125 friend class internal::QColumnLayoutImpl;
126 friend class internal::QPreviewReplyImpl;
134 typedef QList<QColumnLayout> QColumnLayoutList;
int number_of_columns() const noexcept
Get the number of columns expected by this layout as specified in the constructor.
int size() const noexcept
Get the current number of columns in this layout.
Top-level namespace for all things Unity-related.
Definition: Version.h:49
QVector< QString > column(int index) const
Retrieve the list of widgets for given column.
Definition: ActionMetadata.h:31
void add_column(QVector< QString > widget_ids)
Adds a new column and assigns widgets to it.
QColumnLayout(int num_of_columns)
Creates a layout definition that expects num_of_columns columns to be added with ColumnLayout::add_co...
Represents a column layout.
Definition: QColumnLayout.h:58