diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-06-10 19:49:18 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-06-11 10:30:55 +0200 |
commit | 69d0d6cdca6756fec05af609db6d6a14bb43c0e9 (patch) | |
tree | 45eabce2e608760f2c6fe96bf24add0e25ddc1a9 /src/plugins/git/gitorious/gitorioushostwidget.cpp | |
parent | 5cb29aec0b104179919d14573c7af88610c39e87 (diff) | |
download | qt-creator-69d0d6cdca6756fec05af609db6d6a14bb43c0e9.tar.gz |
Git: Style fixes
Change-Id: I600e939e99de77e92de1ff068a5ebad98eb736ca
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/gitorious/gitorioushostwidget.cpp')
-rw-r--r-- | src/plugins/git/gitorious/gitorioushostwidget.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/git/gitorious/gitorioushostwidget.cpp b/src/plugins/git/gitorious/gitorioushostwidget.cpp index 4c67c425a8..3aedcf0046 100644 --- a/src/plugins/git/gitorious/gitorioushostwidget.cpp +++ b/src/plugins/git/gitorious/gitorioushostwidget.cpp @@ -57,8 +57,8 @@ static QList<QStandardItem *> hostEntry(const QString &host, int projectCount, const QString &description, bool isDummyEntry) { - const Qt::ItemFlags nonEditableFlags = (Qt::ItemIsSelectable|Qt::ItemIsEnabled); - const Qt::ItemFlags editableFlags = nonEditableFlags|Qt::ItemIsEditable; + const Qt::ItemFlags nonEditableFlags = (Qt::ItemIsSelectable | Qt::ItemIsEnabled); + const Qt::ItemFlags editableFlags = nonEditableFlags | Qt::ItemIsEditable; QStandardItem *hostItem = new QStandardItem(host); hostItem->setFlags(isDummyEntry ? editableFlags : nonEditableFlags); // Empty for dummy, else "..." or count @@ -154,7 +154,10 @@ void GitoriousHostWidget::selectRow(int r) { if (r >= 0 && r != selectedRow()) { const QModelIndex index = m_model->index(r, 0); - ui->hostView->selectionModel()->setCurrentIndex(index, QItemSelectionModel::Select|QItemSelectionModel::Current|QItemSelectionModel::Rows); + ui->hostView->selectionModel()->setCurrentIndex(index, + QItemSelectionModel::Select + | QItemSelectionModel::Current + | QItemSelectionModel::Rows); } } |