comparison filestatuswidget.cpp @ 297:e4284fab6962 status_outside_tabs

Minor layout updates
author Chris Cannam
date Tue, 22 Feb 2011 13:12:16 +0000
parents 3fbafca196e4
children 1aba0914dcfc
comparison
equal deleted inserted replaced
296:d40294e164da 297:e4284fab6962
42 42
43 int row = 0; 43 int row = 0;
44 44
45 m_noModificationsLabel = new QLabel; 45 m_noModificationsLabel = new QLabel;
46 setNoModificationsLabelText(); 46 setNoModificationsLabelText();
47 layout->addWidget(m_noModificationsLabel, row, 1, 1, 2); 47 layout->addWidget(m_noModificationsLabel, row, 0);
48 m_noModificationsLabel->hide(); 48 m_noModificationsLabel->hide();
49 49
50 m_simpleLabels[FileStates::Clean] = tr("Unmodified:"); 50 m_simpleLabels[FileStates::Clean] = tr("Unmodified:");
51 m_simpleLabels[FileStates::Modified] = tr("Modified:"); 51 m_simpleLabels[FileStates::Modified] = tr("Modified:");
52 m_simpleLabels[FileStates::Added] = tr("Added:"); 52 m_simpleLabels[FileStates::Added] = tr("Added:");
73 73
74 m_highlightExplanation = tr("Files highlighted <font color=#d40000>in red</font> " 74 m_highlightExplanation = tr("Files highlighted <font color=#d40000>in red</font> "
75 "have appeared since your most recent commit or update."); 75 "have appeared since your most recent commit or update.");
76 76
77 m_boxesParent = new QWidget(this); 77 m_boxesParent = new QWidget(this);
78 layout->addWidget(m_boxesParent, ++row, 0, 1, 3); 78 layout->addWidget(m_boxesParent, ++row, 0);
79 79
80 QGridLayout *boxesLayout = new QGridLayout; 80 QGridLayout *boxesLayout = new QGridLayout;
81 boxesLayout->setMargin(0); 81 boxesLayout->setMargin(0);
82 m_boxesParent->setLayout(boxesLayout); 82 m_boxesParent->setLayout(boxesLayout);
83 int boxRow = 0; 83 int boxRow = 0;
118 layout->setRowStretch(++row, 20); 118 layout->setRowStretch(++row, 20);
119 119
120 layout->addItem(new QSpacerItem(8, 8), ++row, 0); 120 layout->addItem(new QSpacerItem(8, 8), ++row, 0);
121 121
122 m_showAllFiles = new QCheckBox(tr("Show all files"), this); 122 m_showAllFiles = new QCheckBox(tr("Show all files"), this);
123 layout->addWidget(m_showAllFiles, ++row, 0, 1, 3, Qt::AlignLeft); 123 layout->addWidget(m_showAllFiles, ++row, 0, Qt::AlignLeft);
124 connect(m_showAllFiles, SIGNAL(toggled(bool)), 124 connect(m_showAllFiles, SIGNAL(toggled(bool)),
125 this, SIGNAL(showAllChanged(bool))); 125 this, SIGNAL(showAllChanged(bool)));
126 } 126 }
127 127
128 FileStatusWidget::~FileStatusWidget() 128 FileStatusWidget::~FileStatusWidget()