mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 22:15:13 +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,17 +1053,8 @@ QVariant DiveItem::data(int column, int role) const
|
||||||
|
|
||||||
switch (role) {
|
switch (role) {
|
||||||
case Qt::TextAlignmentRole:
|
case Qt::TextAlignmentRole:
|
||||||
switch (column) {
|
|
||||||
case DATE: /* fall through */
|
|
||||||
case SUIT: /* fall through */
|
|
||||||
case LOCATION:
|
|
||||||
retVal = int(Qt::AlignLeft | Qt::AlignVCenter);
|
retVal = int(Qt::AlignLeft | Qt::AlignVCenter);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
retVal = int(Qt::AlignRight | Qt::AlignVCenter);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case DiveTripModel::SORT_ROLE:
|
case DiveTripModel::SORT_ROLE:
|
||||||
Q_ASSERT(dive != NULL);
|
Q_ASSERT(dive != NULL);
|
||||||
switch (column) {
|
switch (column) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue