# HG changeset patch # User Chris Cannam # Date 1235417047 0 # Node ID 5e6991aefdc5e9615aa05af2ce690a6118edb72d # Parent d01f2e406cc586272f234eeb97e0627933297617 * os/x layout fixes (make the X button flat, otherwise the margins go all weird) diff -r d01f2e406cc5 -r 5e6991aefdc5 view/PaneStack.cpp --- a/view/PaneStack.cpp Mon Feb 23 19:23:20 2009 +0000 +++ b/view/PaneStack.cpp Mon Feb 23 19:24:07 2009 +0000 @@ -67,6 +67,7 @@ layout->setMargin(0); layout->setSpacing(2); + // QHBoxLayout *layout = new QHBoxLayout; // QVBoxLayout *vlayout = new QVBoxLayout; @@ -76,6 +77,7 @@ QPushButton *xButton = new QPushButton(frame); xButton->setIcon(IconLoader().load("cross")); xButton->setFixedSize(QSize(16, 16)); + xButton->setFlat(true); layout->addWidget(xButton, 0, 0); // vlayout->setStretchFactor(xButton, 0); connect(xButton, SIGNAL(clicked()), this, SLOT(paneDeleteButtonClicked())); @@ -84,6 +86,7 @@ // currentIndicator->setFixedWidth(QPainter(this).fontMetrics().width("x")); layout->addWidget(currentIndicator, 1, 0); layout->setRowStretch(1, 20); + currentIndicator->setMinimumWidth(8); currentIndicator->setScaledContents(true); Pane *pane = new Pane(frame);