changeset 497:5e6991aefdc5

* os/x layout fixes (make the X button flat, otherwise the margins go all weird)
author Chris Cannam
date Mon, 23 Feb 2009 19:24:07 +0000
parents d01f2e406cc5
children dd6bd2d00f86
files view/PaneStack.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);