forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -114,14 +114,13 @@ PanelsWidget::PanelsWidget(QWidget *parent) :
|
|||||||
QScrollArea(parent),
|
QScrollArea(parent),
|
||||||
m_root(new QWidget(this))
|
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.
|
// side of the screen.
|
||||||
m_root->setMaximumWidth(800);
|
m_root->setFixedWidth(900);
|
||||||
// The layout holding the individual panels:
|
// The layout holding the individual panels:
|
||||||
m_layout = new QGridLayout(m_root);
|
m_layout = new QGridLayout(m_root);
|
||||||
m_layout->setColumnMinimumWidth(0, ICON_SIZE + 4);
|
m_layout->setColumnMinimumWidth(0, ICON_SIZE + 4);
|
||||||
m_layout->setSpacing(0);
|
m_layout->setSpacing(0);
|
||||||
m_layout->setRowStretch(0, 10);
|
|
||||||
|
|
||||||
// Add horizontal space to the left of our widget:
|
// Add horizontal space to the left of our widget:
|
||||||
QHBoxLayout *hbox = new QHBoxLayout;
|
QHBoxLayout *hbox = new QHBoxLayout;
|
||||||
@@ -219,7 +218,7 @@ QWidget *PanelsWidget::rootWidget() const
|
|||||||
|
|
||||||
void PanelsWidget::clear()
|
void PanelsWidget::clear()
|
||||||
{
|
{
|
||||||
foreach (Panel* p, m_panels) {
|
foreach (Panel *p, m_panels) {
|
||||||
if (p->iconLabel)
|
if (p->iconLabel)
|
||||||
m_layout->removeWidget(p->iconLabel);
|
m_layout->removeWidget(p->iconLabel);
|
||||||
if (p->lineWidget)
|
if (p->lineWidget)
|
||||||
|
Reference in New Issue
Block a user