diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/graphicsview/anchorlayout/main.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/graphicsview/anchorlayout/main.cpp b/examples/graphicsview/anchorlayout/main.cpp index 7fb04be..ce6e937 100644 --- a/examples/graphicsview/anchorlayout/main.cpp +++ b/examples/graphicsview/anchorlayout/main.cpp @@ -66,17 +66,17 @@ int main(int argc, char **argv) QGraphicsScene scene; scene.setSceneRect(0, 0, 800, 480); - QSizeF min(30, 100); - QSizeF pref(210, 100); - QSizeF max(300, 100); - - QGraphicsProxyWidget *a = createItem(min, pref, max, "A"); - QGraphicsProxyWidget *b = createItem(min, pref, max, "B"); - QGraphicsProxyWidget *c = createItem(min, pref, max, "C"); - QGraphicsProxyWidget *d = createItem(min, pref, max, "D"); - QGraphicsProxyWidget *e = createItem(min, pref, max, "E"); - QGraphicsProxyWidget *f = createItem(QSizeF(30, 50), QSizeF(150, 50), max, "F"); - QGraphicsProxyWidget *g = createItem(QSizeF(30, 50), QSizeF(30, 100), max, "G"); + QSizeF minSize(30, 100); + QSizeF prefSize(210, 100); + QSizeF maxSize(300, 100); + + QGraphicsProxyWidget *a = createItem(minSize, prefSize, maxSize, "A"); + QGraphicsProxyWidget *b = createItem(minSize, prefSize, maxSize, "B"); + QGraphicsProxyWidget *c = createItem(minSize, prefSize, maxSize, "C"); + QGraphicsProxyWidget *d = createItem(minSize, prefSize, maxSize, "D"); + QGraphicsProxyWidget *e = createItem(minSize, prefSize, maxSize, "E"); + QGraphicsProxyWidget *f = createItem(QSizeF(30, 50), QSizeF(150, 50), maxSize, "F"); + QGraphicsProxyWidget *g = createItem(QSizeF(30, 50), QSizeF(30, 100), maxSize, "G"); QGraphicsAnchorLayout *l = new QGraphicsAnchorLayout; |