Lines 20-25
Link Here
|
20 |
#include "PassagewayView.h" |
20 |
#include "PassagewayView.h" |
21 |
|
21 |
|
22 |
#include <QWidget> |
22 |
#include <QWidget> |
|
|
23 |
#include <QGraphicsSceneMouseEvent> |
24 |
#include <QGraphicsView> |
25 |
#include <QApplication> |
26 |
#include <climits> |
27 |
|
23 |
|
28 |
|
24 |
namespace Lancelot { |
29 |
namespace Lancelot { |
25 |
|
30 |
|
Lines 65-70
Link Here
|
65 |
: layout(NULL), buttonsLayout(NULL), listsLayout(NULL), parent(p), focusIndex(0) |
70 |
: layout(NULL), buttonsLayout(NULL), listsLayout(NULL), parent(p), focusIndex(0) |
66 |
{ |
71 |
{ |
67 |
parent->setLayout(layout = new NodeLayout()); |
72 |
parent->setLayout(layout = new NodeLayout()); |
|
|
73 |
layout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); |
74 |
layout->setMaximumSize(INT_MAX, INT_MAX); |
68 |
|
75 |
|
69 |
layout->addItem( |
76 |
layout->addItem( |
70 |
buttonsLayout = new QGraphicsLinearLayout(Qt::Horizontal), |
77 |
buttonsLayout = new QGraphicsLinearLayout(Qt::Horizontal), |
Lines 72-77
Link Here
|
72 |
NodeLayout::NodeCoordinate(1, 0, 0, 32) |
79 |
NodeLayout::NodeCoordinate(1, 0, 0, 32) |
73 |
); |
80 |
); |
74 |
|
81 |
|
|
|
82 |
buttonsLayout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); |
83 |
buttonsLayout->setMaximumSize(INT_MAX, INT_MAX); |
84 |
|
75 |
ExtenderButton * spacer = |
85 |
ExtenderButton * spacer = |
76 |
new ExtenderButton(parent); |
86 |
new ExtenderButton(parent); |
77 |
spacer->setGroupByName("PassagewayView-Spacer"); |
87 |
spacer->setGroupByName("PassagewayView-Spacer"); |
Lines 88-93
Link Here
|
88 |
|
98 |
|
89 |
listsLayout->setSizer(new PassagewayViewSizer()); |
99 |
listsLayout->setSizer(new PassagewayViewSizer()); |
90 |
|
100 |
|
|
|
101 |
listsLayout->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); |
102 |
listsLayout->setMaximumSize(INT_MAX, INT_MAX); |
103 |
|
91 |
buttonsLayout->setSpacing(0.0); |
104 |
buttonsLayout->setSpacing(0.0); |
92 |
|
105 |
|
93 |
next(Step("", QIcon(), entranceModel)); |
106 |
next(Step("", QIcon(), entranceModel)); |
Lines 161-167
Link Here
|
161 |
path.takeLast(); |
174 |
path.takeLast(); |
162 |
|
175 |
|
163 |
buttonsLayout->removeItem(button); |
176 |
buttonsLayout->removeItem(button); |
164 |
layout->activate(); |
177 |
|
|
|
178 |
// This really shouldn't be needed :( |
179 |
buttonsLayout->setGeometry(buttonsLayout->geometry()); |
180 |
|
165 |
listsLayout->pop(); |
181 |
listsLayout->pop(); |
166 |
|
182 |
|
167 |
button->deleteLater(); |
183 |
button->deleteLater(); |