Mercurial > hg > svgui
comparison view/PaneStack.cpp @ 324:1f67b110c1a3
* fix pane layout problem; fix waveform butterfly mode
| author | Chris Cannam |
|---|---|
| date | Wed, 07 Nov 2007 16:52:52 +0000 |
| parents | 267586900360 |
| children | 6167a28d25fc |
comparison
equal
deleted
inserted
replaced
| 323:267586900360 | 324:1f67b110c1a3 |
|---|---|
| 67 layout->setMargin(0); | 67 layout->setMargin(0); |
| 68 layout->setSpacing(2); | 68 layout->setSpacing(2); |
| 69 | 69 |
| 70 QVBoxLayout *vlayout = new QVBoxLayout; | 70 QVBoxLayout *vlayout = new QVBoxLayout; |
| 71 layout->addLayout(vlayout); | 71 layout->addLayout(vlayout); |
| 72 layout->setStretchFactor(vlayout, 1); | 72 layout->setStretchFactor(vlayout, 0); |
| 73 | 73 |
| 74 QPushButton *xButton = new QPushButton(frame); | 74 QPushButton *xButton = new QPushButton(frame); |
| 75 xButton->setIcon(IconLoader().load("cross")); | 75 xButton->setIcon(IconLoader().load("cross")); |
| 76 xButton->setFixedSize(QSize(16, 16)); | 76 xButton->setFixedSize(QSize(16, 16)); |
| 77 vlayout->addWidget(xButton); | 77 vlayout->addWidget(xButton); |
| 78 vlayout->setStretchFactor(xButton, 1); | 78 vlayout->setStretchFactor(xButton, 0); |
| 79 connect(xButton, SIGNAL(clicked()), this, SLOT(paneDeleteButtonClicked())); | 79 connect(xButton, SIGNAL(clicked()), this, SLOT(paneDeleteButtonClicked())); |
| 80 | 80 |
| 81 QLabel *currentIndicator = new QLabel(frame); | 81 QLabel *currentIndicator = new QLabel(frame); |
| 82 // currentIndicator->setFixedWidth(QPainter(this).fontMetrics().width("x")); | 82 // currentIndicator->setFixedWidth(QPainter(this).fontMetrics().width("x")); |
| 83 vlayout->addWidget(currentIndicator); | 83 vlayout->addWidget(currentIndicator); |
