diff options
author | bd <bdunahu@operationnull.com> | 2025-04-26 14:41:02 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-26 14:41:02 -0400 |
commit | b32bc409c18ceb4cd8147f11021e2c4b2746184b (patch) | |
tree | 588f2a5955e7c122f1df430280925034c910c42d /gui/storageview.cc | |
parent | 1c174cc103cb1b00befed6e52b40bb3e76cc7797 (diff) |
right-align colum headers on table objects
Diffstat (limited to 'gui/storageview.cc')
-rw-r--r-- | gui/storageview.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/storageview.cc b/gui/storageview.cc index f6f9736..43837a9 100644 --- a/gui/storageview.cc +++ b/gui/storageview.cc @@ -48,6 +48,13 @@ QVariant StorageView::data(const QModelIndex &i, int role) const QVariant StorageView::headerData(int section, Qt::Orientation o, int role) const { + Qt::Alignment a; + + if (role == Qt::TextAlignmentRole) { + a = Qt::AlignRight | Qt::AlignVCenter; + return QVariant(static_cast<int>(a)); + } + if (role != Qt::DisplayRole) return QVariant(); |