Changed alignment of status column in the FileView

FossilOrigin-Name: 9362f078cb6e07ebe94d2e259c4d3e7c8f6f0d8b
This commit is contained in:
kostas
2012-05-04 09:46:44 +00:00
parent fbaeed47c7
commit 63d4a7d911
3 changed files with 10 additions and 10 deletions

View File

@ -815,7 +815,6 @@ void MainWindow::updateDirView()
void MainWindow::updateFileView()
{
// File View
// Clear all rows (except header)
repoFileModel.clear();
QStringList header;
@ -829,6 +828,7 @@ void MainWindow::updateFileView()
header << tr("Path");
repoFileModel.setHorizontalHeaderLabels(header);
repoFileModel.horizontalHeaderItem(COLUMN_STATUS)->setTextAlignment(Qt::AlignCenter);
struct { RepoFile::EntryType type; const char *tag; const char *tooltip; const char *icon; }
stats[] =
@ -890,8 +890,8 @@ void MainWindow::updateFileView()
filename_item->setData(e.getFilePath());
repoFileModel.setItem(item_id, COLUMN_FILENAME, filename_item);
repoFileModel.setItem(item_id, COLUMN_EXTENSION, new QStandardItem(finfo .completeSuffix()));
repoFileModel.setItem(item_id, COLUMN_MODIFIED, new QStandardItem(finfo .lastModified().toString(Qt::SystemLocaleShortDate)));
repoFileModel.setItem(item_id, COLUMN_EXTENSION, new QStandardItem(finfo.completeSuffix()));
repoFileModel.setItem(item_id, COLUMN_MODIFIED, new QStandardItem(finfo.lastModified().toString(Qt::SystemLocaleShortDate)));
++item_id;
}