forked from qt-creator/qt-creator
Fixes: Make git diff work for staged files, do not launch submit if file list empty, make file model read only, add conveniences
Details: Add a type data field to the git file model
This commit is contained in:
@@ -234,6 +234,16 @@ void SubmitEditorWidget::setFileNameColumn(int c)
|
||||
m_d->m_fileNameColumn = c;
|
||||
}
|
||||
|
||||
QAbstractItemView::SelectionMode SubmitEditorWidget::fileListSelectionMode() const
|
||||
{
|
||||
return m_d->m_ui.fileView->selectionMode();
|
||||
}
|
||||
|
||||
void SubmitEditorWidget::setFileListSelectionMode(QAbstractItemView::SelectionMode sm)
|
||||
{
|
||||
m_d->m_ui.fileView->setSelectionMode(sm);
|
||||
}
|
||||
|
||||
void SubmitEditorWidget::setFileModel(QAbstractItemModel *model)
|
||||
{
|
||||
m_d->m_ui.fileView->clearSelection(); // trigger the change signals
|
||||
|
||||
Reference in New Issue
Block a user