Commit 7a580e83 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[ProcessModel] Center more column headings

Also horizontally center TTY, Relative Start Time, and CPU Time.
Those are typically narrow columns and so should be horizontally centered like the others.

BUG: 394467
FIXED-IN: 5.12.6

Differential Revision: https://phabricator.kde.org/D13031
parent 03f6ea24
......@@ -955,9 +955,11 @@ QVariant ProcessModel::headerData(int section, Qt::Orientation orientation,
{
switch(section) {
case HeadingPid:
case HeadingTty:
case HeadingMemory:
case HeadingXMemory:
case HeadingSharedMemory:
case HeadingStartTime:
case HeadingIoRead:
case HeadingIoWrite:
case HeadingVmSize:
......@@ -965,6 +967,7 @@ QVariant ProcessModel::headerData(int section, Qt::Orientation orientation,
// return QVariant(Qt::AlignRight);
case HeadingUser:
case HeadingCPUUsage:
case HeadingCPUTime:
return QVariant(Qt::AlignCenter);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment