Changeset View
Changeset View
Standalone View
Standalone View
ktorrent/view/viewmodel.cpp
Show First 20 Lines • Show All 672 Lines • ▼ Show 20 Line(s) | 633 | { | |||
---|---|---|---|---|---|
673 | else if (role == Qt::TextAlignmentRole) | 673 | else if (role == Qt::TextAlignmentRole) | ||
674 | { | 674 | { | ||
675 | switch (index.column()) | 675 | switch (index.column()) | ||
676 | { | 676 | { | ||
677 | case NAME: | 677 | case NAME: | ||
678 | case PERCENTAGE: | 678 | case PERCENTAGE: | ||
679 | case DOWNLOAD_LOCATION: | 679 | case DOWNLOAD_LOCATION: | ||
680 | case TIME_ADDED: | 680 | case TIME_ADDED: | ||
681 | return Qt::AlignLeft; | 681 | return Qt::AlignLeft + Qt::AlignVCenter; | ||
682 | default: | 682 | default: | ||
683 | return Qt::AlignRight; | 683 | return Qt::AlignRight + Qt::AlignVCenter; | ||
684 | } | 684 | } | ||
685 | } | 685 | } | ||
686 | else if (role == Qt::FontRole && item->highlight) | 686 | else if (role == Qt::FontRole && item->highlight) | ||
687 | { | 687 | { | ||
688 | QFont f = view->font(); | 688 | QFont f = view->font(); | ||
689 | f.setBold(true); | 689 | f.setBold(true); | ||
690 | return f; | 690 | return f; | ||
691 | } | 691 | } | ||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |