comparison filestatuswidget.cpp @ 340:bb189827f6d1

Disable "Show All Files" when there's no repo; refuse to run Hg commands without working dir; increase first-start window size a bit
author Chris Cannam
date Tue, 15 Mar 2011 12:00:31 +0000
parents acfe9390d5c6
children 293d91cf44de
comparison
equal deleted inserted replaced
339:8b244f3b3111 340:bb189827f6d1
155 layout->setRowStretch(++row, 20); 155 layout->setRowStretch(++row, 20);
156 156
157 layout->addItem(new QSpacerItem(8, 8), ++row, 0); 157 layout->addItem(new QSpacerItem(8, 8), ++row, 0);
158 158
159 m_showAllFiles = new QCheckBox(tr("Show all files"), this); 159 m_showAllFiles = new QCheckBox(tr("Show all files"), this);
160 m_showAllFiles->setEnabled(false);
160 layout->addWidget(m_showAllFiles, ++row, 0, Qt::AlignLeft); 161 layout->addWidget(m_showAllFiles, ++row, 0, Qt::AlignLeft);
161 connect(m_showAllFiles, SIGNAL(toggled(bool)), 162 connect(m_showAllFiles, SIGNAL(toggled(bool)),
162 this, SIGNAL(showAllChanged(bool))); 163 this, SIGNAL(showAllChanged(bool)));
163 } 164 }
164 165
363 << m_dateReference->absoluteFilePath() 364 << m_dateReference->absoluteFilePath()
364 << " does not exist, is not a file, or cannot be read" 365 << " does not exist, is not a file, or cannot be read"
365 << endl; 366 << endl;
366 delete m_dateReference; 367 delete m_dateReference;
367 m_dateReference = 0; 368 m_dateReference = 0;
369 m_showAllFiles->setEnabled(false);
370 } else {
371 m_showAllFiles->setEnabled(true);
368 } 372 }
369 } 373 }
370 374
371 void 375 void
372 FileStatusWidget::setFileStates(FileStates p) 376 FileStatusWidget::setFileStates(FileStates p)