tests: Make braces consistent

Make the function brace policy consistent.

Change-Id: Iaf1f05a63958f19927e9b1953da06f99a4eba644
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
bb10
Jesus Fernandez 2017-10-27 09:20:29 +02:00 committed by Jesus Fernandez
parent c988a8a282
commit adf07e9223
1 changed files with 6 additions and 3 deletions

View File

@ -214,12 +214,14 @@ public:
QtTestModel(int _rows, int _cols, QObject *parent = 0): QAbstractItemModel(parent),
fetched(false), rows(_rows), cols(_cols), levels(INT_MAX), wrongIndex(false) { init(); }
void init() {
void init()
{
decorationsEnabled = false;
statusTipsEnabled = false;
}
inline qint32 level(const QModelIndex &index) const {
inline qint32 level(const QModelIndex &index) const
{
return index.isValid() ? qint32(index.internalId()) : qint32(-1);
}
@ -251,7 +253,8 @@ public:
return cols;
}
bool isEditable(const QModelIndex &index) const {
bool isEditable(const QModelIndex &index) const
{
if (index.isValid())
return true;
return false;