Align the texts on the Left inside of Right for the DiveList

The Qt Framework adds a visual 'tab' on the children of a
node, but if we forced a right alignment on them, it will
lose that.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-06-30 15:34:55 -03:00 committed by Dirk Hohndel
parent fd22e8123b
commit 4c7ea24921

View file

@ -1053,17 +1053,8 @@ QVariant DiveItem::data(int column, int role) const
switch (role) {
case Qt::TextAlignmentRole:
switch (column) {
case DATE: /* fall through */
case SUIT: /* fall through */
case LOCATION:
retVal = int(Qt::AlignLeft | Qt::AlignVCenter);
break;
default:
retVal = int(Qt::AlignRight | Qt::AlignVCenter);
break;
}
break;
case DiveTripModel::SORT_ROLE:
Q_ASSERT(dive != NULL);
switch (column) {