30 #include <QGraphicsLinearLayout>
31 #include <QGraphicsWidget>
32 #include <QGraphicsView>
42 void heightForWidth_data();
43 void heightForWidth();
54 if (constraint.width() < 0)
56 return QSizeF(constraint.width(), constraint.width());
60 void tst_QGraphicsLinearLayout::heightForWidth_data()
62 QTest::addColumn<bool>(
"hfw");
63 QTest::addColumn<bool>(
"nested");
71 void tst_QGraphicsLinearLayout::heightForWidth()
83 for (
int i = 0;
i < 8;
i++) {
98 for (
int i = 0;
i < 1;
i++) {
110 QSizeF constraint(hfw ? 100 : -1, -1);
120 #include "tst_qgraphicslinearlayout.moc"
small capitals from c petite p scientific i
[1]
QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
The QGraphicsLinearLayout class provides a horizontal or vertical layout for managing widgets in Grap...
void addItem(QGraphicsLayoutItem *item)
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.
void addItem(QGraphicsItem *item)
The QObject class is the base class of all Qt objects.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.
constexpr void setHeightForWidth(bool b) noexcept
tst_QGraphicsLinearLayout()
~tst_QGraphicsLinearLayout()
Q_TESTLIB_EXPORT QTestData & newRow(const char *dataTag)
#define QTEST_MAIN(TestObject)
#define QFETCH(Type, name)