tst_qgraphicsanchorlayout: Fix warning about unused function result.
tst_qgraphicsanchorlayout.cpp:144:5: warning: ignoring return value of function declared with warn_unused_result attribute [-Wunused-result]
layoutGeometry.adjusted(+right, +top, -left, -bottom);
Change-Id: I411ccaa867e418f36869fc244ea2eeaa5b117312
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
bb10
parent
4b8cda8a36
commit
120cc9f78e
|
|
@ -133,7 +133,6 @@ static bool checkReverseDirection(QGraphicsWidget *widget)
|
|||
layout->getContentsMargins(&left, &top, &right, &bottom);
|
||||
widget->setLayoutDirection(Qt::LeftToRight);
|
||||
QApplication::processEvents();
|
||||
const QRectF layoutGeometry = layout->geometry();
|
||||
QMap<QGraphicsLayoutItem *, QRectF> geometries;
|
||||
for (int i = 0; i < layout->count(); ++i) {
|
||||
QGraphicsLayoutItem *item = layout->itemAt(i);
|
||||
|
|
@ -141,7 +140,7 @@ static bool checkReverseDirection(QGraphicsWidget *widget)
|
|||
}
|
||||
widget->setLayoutDirection(Qt::RightToLeft);
|
||||
QApplication::processEvents();
|
||||
layoutGeometry.adjusted(+right, +top, -left, -bottom);
|
||||
const QRectF layoutGeometry = layout->geometry().adjusted(+right, +top, -left, -bottom);
|
||||
for (int i = 0; i < layout->count(); ++i) {
|
||||
QGraphicsLayoutItem *item = layout->itemAt(i);
|
||||
const QRectF rightToLeftGeometry = item->geometry();
|
||||
|
|
|
|||
Loading…
Reference in New Issue