forked from qt-creator/qt-creator
SubmitFileModel: Change enum naming according coding style
Change-Id: I2b2b37c8125076374c69cc638f1e9611dff27a8c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
9e2952cf8e
commit
a396c79702
@@ -39,7 +39,7 @@ namespace VcsBase {
|
|||||||
// Helpers:
|
// Helpers:
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
enum { stateColumn = 0, fileColumn = 1 };
|
enum { StateColumn = 0, FileColumn = 1 };
|
||||||
|
|
||||||
static QBrush fileStatusTextForeground(SubmitFileModel::FileStatusHint statusHint)
|
static QBrush fileStatusTextForeground(SubmitFileModel::FileStatusHint statusHint)
|
||||||
{
|
{
|
||||||
@@ -151,7 +151,7 @@ QString SubmitFileModel::file(int row) const
|
|||||||
{
|
{
|
||||||
if (row < 0 || row >= rowCount())
|
if (row < 0 || row >= rowCount())
|
||||||
return QString();
|
return QString();
|
||||||
return item(row, fileColumn)->text();
|
return item(row, FileColumn)->text();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SubmitFileModel::isCheckable(int row) const
|
bool SubmitFileModel::isCheckable(int row) const
|
||||||
@@ -246,7 +246,7 @@ void SubmitFileModel::setFileStatusQualifier(FileStatusQualifier &&func)
|
|||||||
const int topLevelRowCount = rowCount();
|
const int topLevelRowCount = rowCount();
|
||||||
const int topLevelColCount = columnCount();
|
const int topLevelColCount = columnCount();
|
||||||
for (int row = 0; row < topLevelRowCount; ++row) {
|
for (int row = 0; row < topLevelRowCount; ++row) {
|
||||||
const QStandardItem *statusItem = item(row, stateColumn);
|
const QStandardItem *statusItem = item(row, StateColumn);
|
||||||
const FileStatusHint statusHint =
|
const FileStatusHint statusHint =
|
||||||
func ? func(statusItem->text(), statusItem->data()) : FileStatusUnknown;
|
func ? func(statusItem->text(), statusItem->data()) : FileStatusUnknown;
|
||||||
const QBrush textForeground = fileStatusTextForeground(statusHint);
|
const QBrush textForeground = fileStatusTextForeground(statusHint);
|
||||||
|
|||||||
Reference in New Issue
Block a user