diff main/MainWindow.cpp @ 129:20ec0c6d4a97

* Experiment with sizing the property stacks and using a frame on the overview widget with an eye to making the default empty window look a bit nicer
author Chris Cannam
date Mon, 16 Apr 2007 12:20:27 +0000
parents fbd09fcda469
children 47b5b6952189
line wrap: on
line diff
--- a/main/MainWindow.cpp	Mon Apr 02 12:12:36 2007 +0000
+++ b/main/MainWindow.cpp	Mon Apr 16 12:20:27 2007 +0000
@@ -167,6 +167,7 @@
     m_overview = new Overview(frame);
     m_overview->setViewManager(m_viewManager);
     m_overview->setFixedHeight(40);
+    m_overview->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
     connect(m_overview, SIGNAL(contextHelpChanged(const QString &)),
             this, SLOT(contextHelpChanged(const QString &)));
 
@@ -236,6 +237,7 @@
     m_playMono->setChecked(settings.value("playmono", false).toBool());
     settings.endGroup();
 
+    layout->setSpacing(4);
     layout->addWidget(m_paneStack, 0, 0, 1, 5);
     layout->addWidget(m_overview, 1, 0);
     layout->addWidget(m_fader, 1, 1);
@@ -243,6 +245,10 @@
     layout->addWidget(m_playSharpen, 1, 3);
     layout->addWidget(m_playMono, 1, 4);
 
+    m_paneStack->setPropertyStackMinWidth
+        (m_fader->width() + m_playSpeed->width() + m_playSharpen->width() +
+         m_playMono->width() + layout->spacing() * 4);
+
     layout->setColumnStretch(0, 10);
 
     frame->setLayout(layout);