From 50bd482496d2dcaec67351a140c86d7ac288b833 Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Mon, 7 Dec 2009 15:24:57 +0100 Subject: [PATCH] Set width of projects mode to 900px. We are targetting nothing below netbooks. These devices have screens that usually are 1024px wide (or wider), so this increase should be OK there. The 100px bonus do help a bit when editing environment variables, etc. Reviewed-by: dt --- src/plugins/projectexplorer/projectwindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp index 0d1ba2ef29d..5d2ffa7e348 100644 --- a/src/plugins/projectexplorer/projectwindow.cpp +++ b/src/plugins/projectexplorer/projectwindow.cpp @@ -114,14 +114,13 @@ PanelsWidget::PanelsWidget(QWidget *parent) : QScrollArea(parent), m_root(new QWidget(this)) { - // We want a 800px wide widget with and the scrollbar at the + // We want a 900px wide widget with and the scrollbar at the // side of the screen. - m_root->setMaximumWidth(800); + m_root->setFixedWidth(900); // The layout holding the individual panels: m_layout = new QGridLayout(m_root); m_layout->setColumnMinimumWidth(0, ICON_SIZE + 4); m_layout->setSpacing(0); - m_layout->setRowStretch(0, 10); // Add horizontal space to the left of our widget: QHBoxLayout *hbox = new QHBoxLayout; @@ -219,7 +218,7 @@ QWidget *PanelsWidget::rootWidget() const void PanelsWidget::clear() { - foreach (Panel* p, m_panels) { + foreach (Panel *p, m_panels) { if (p->iconLabel) m_layout->removeWidget(p->iconLabel); if (p->lineWidget) -- GitLab