mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
fd22e8123b
commit
4c7ea24921
1 changed files with 1 additions and 10 deletions
|
@ -1053,16 +1053,7 @@ 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;
|
||||
}
|
||||
retVal = int(Qt::AlignLeft | Qt::AlignVCenter);
|
||||
break;
|
||||
case DiveTripModel::SORT_ROLE:
|
||||
Q_ASSERT(dive != NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue