Changeset 34 in tspsg-svn for trunk/src/tspmodel.cpp


Ignore:
Timestamp:
Jun 30, 2009, 7:22:29 PM (15 years ago)
Author:
laleppa
Message:

Explicit braces to avoid ambiguous ‘else’.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tspmodel.cpp

    r31 r34  
    4747QVariant CTSPModel::headerData(int section, Qt::Orientation orientation, int role) const
    4848{
    49         if (role == Qt::DisplayRole)
     49        if (role == Qt::DisplayRole) {
    5050                if (orientation == Qt::Vertical)
    5151                        return trUtf8("City %1").arg(section + 1);
    5252                else
    5353                        return trUtf8("%1").arg(section + 1);
     54        }
    5455        return QVariant();
    5556}
Note: See TracChangeset for help on using the changeset viewer.