Mercurial > projects > qtd
comparison examples/layouts/dynamiclayouts/dialog.d @ 337:5896535a03cd
moved enums back to classes
author | maxter <spambox@d-coding.com> |
---|---|
date | Sat, 13 Mar 2010 00:38:42 +0200 |
parents | 7a3c43424dca |
children | 185df9220ea7 |
comparison
equal
deleted
inserted
replaced
336:b0a7819153bb | 337:5896535a03cd |
---|---|
94 | 94 |
95 QSize oldSizeHint = buttonBox.sizeHint() + QSize(spacing, spacing); | 95 QSize oldSizeHint = buttonBox.sizeHint() + QSize(spacing, spacing); |
96 buttonBox.setOrientation(orientation); | 96 buttonBox.setOrientation(orientation); |
97 QSize newSizeHint = buttonBox.sizeHint() + QSize(spacing, spacing); | 97 QSize newSizeHint = buttonBox.sizeHint() + QSize(spacing, spacing); |
98 | 98 |
99 if (orientation == Qt_Orientation.Horizontal) { | 99 if (orientation == Qt.Orientation.Horizontal) { |
100 mainLayout.addWidget(buttonBox, 2, 0); | 100 mainLayout.addWidget(buttonBox, 2, 0); |
101 resize(size() + QSize(-1 * oldSizeHint.width(), newSizeHint.height())); | 101 resize(size() + QSize(-1 * oldSizeHint.width(), newSizeHint.height())); |
102 } else { | 102 } else { |
103 mainLayout.addWidget(buttonBox, 0, 3, 2, 1); | 103 mainLayout.addWidget(buttonBox, 0, 3, 2, 1); |
104 resize(size() + QSize(newSizeHint.width(), -1 * oldSizeHint.height())); | 104 resize(size() + QSize(newSizeHint.width(), -1 * oldSizeHint.height())); |