Changeset View
Changeset View
Standalone View
Standalone View
processui/ksysguardprocesslist.cpp
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Line(s) | 307 | #endif | |||
---|---|---|---|---|---|
337 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingCommand); | 337 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingCommand); | ||
338 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingPid); | 338 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingPid); | ||
339 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingCPUTime); | 339 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingCPUTime); | ||
340 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingIoRead); | 340 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingIoRead); | ||
341 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingIoWrite); | 341 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingIoWrite); | ||
342 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingXMemory); | 342 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingXMemory); | ||
343 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingCGroup); | 343 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingCGroup); | ||
344 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingMACContext); | 344 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingMACContext); | ||
345 | d->mUi->treeView->header()->hideSection(ProcessModel::HeadingVmPSS); | ||||
345 | // NOTE! After this is all setup, the settings for the header are restored | 346 | // NOTE! After this is all setup, the settings for the header are restored | ||
346 | // from the user's last run. (in restoreHeaderState) | 347 | // from the user's last run. (in restoreHeaderState) | ||
347 | // So making changes here only affects the default settings. To | 348 | // So making changes here only affects the default settings. To | ||
348 | // test changes temporarily, comment out the lines in restoreHeaderState. | 349 | // test changes temporarily, comment out the lines in restoreHeaderState. | ||
349 | // When you are happy with the changes and want to commit, increase the | 350 | // When you are happy with the changes and want to commit, increase the | ||
350 | // value of PROCESSHEADERVERSION. This will force the header state | 351 | // value of PROCESSHEADERVERSION. This will force the header state | ||
351 | // to be reset back to the defaults for all users. | 352 | // to be reset back to the defaults for all users. | ||
352 | d->mUi->treeView->header()->resizeSection(ProcessModel::HeadingCPUUsage, d->mUi->treeView->header()->sectionSizeHint(ProcessModel::HeadingCPUUsage)); | 353 | d->mUi->treeView->header()->resizeSection(ProcessModel::HeadingCPUUsage, d->mUi->treeView->header()->sectionSizeHint(ProcessModel::HeadingCPUUsage)); | ||
▲ Show 20 Lines • Show All 406 Lines • ▼ Show 20 Line(s) | 741 | #endif | |||
759 | QAction *actionIoActualCharacters = nullptr; | 760 | QAction *actionIoActualCharacters = nullptr; | ||
760 | QAction *actionIoShowRate = nullptr; | 761 | QAction *actionIoShowRate = nullptr; | ||
761 | bool showIoRate = false; | 762 | bool showIoRate = false; | ||
762 | if(index == ProcessModel::HeadingIoRead || index == ProcessModel::HeadingIoWrite) | 763 | if(index == ProcessModel::HeadingIoRead || index == ProcessModel::HeadingIoWrite) | ||
763 | showIoRate = d->mModel.ioInformation() == ProcessModel::BytesRate || | 764 | showIoRate = d->mModel.ioInformation() == ProcessModel::BytesRate || | ||
764 | d->mModel.ioInformation() == ProcessModel::SyscallsRate || | 765 | d->mModel.ioInformation() == ProcessModel::SyscallsRate || | ||
765 | d->mModel.ioInformation() == ProcessModel::ActualBytesRate; | 766 | d->mModel.ioInformation() == ProcessModel::ActualBytesRate; | ||
766 | 767 | | |||
767 | if( index == ProcessModel::HeadingVmSize || index == ProcessModel::HeadingMemory || index == ProcessModel::HeadingXMemory || index == ProcessModel::HeadingSharedMemory || ( (index == ProcessModel::HeadingIoRead || index == ProcessModel::HeadingIoWrite) && d->mModel.ioInformation() != ProcessModel::Syscalls)) { | 768 | if( index == ProcessModel::HeadingVmSize || index == ProcessModel::HeadingMemory || index == ProcessModel::HeadingXMemory || index == ProcessModel::HeadingSharedMemory || index == ProcessModel::HeadingVmPSS || ( (index == ProcessModel::HeadingIoRead || index == ProcessModel::HeadingIoWrite) && d->mModel.ioInformation() != ProcessModel::Syscalls)) { | ||
768 | //If the user right clicks on a column that contains a memory size, show a toggle option for displaying | 769 | //If the user right clicks on a column that contains a memory size, show a toggle option for displaying | ||
769 | //the memory in different units. e.g. "2000 k" or "2 m" | 770 | //the memory in different units. e.g. "2000 k" or "2 m" | ||
770 | menu.addSeparator()->setText(i18n("Display Units")); | 771 | menu.addSeparator()->setText(i18n("Display Units")); | ||
771 | QActionGroup *unitsGroup = new QActionGroup(&menu); | 772 | QActionGroup *unitsGroup = new QActionGroup(&menu); | ||
772 | /* Automatic (human readable)*/ | 773 | /* Automatic (human readable)*/ | ||
773 | actionAuto = new QAction(&menu); | 774 | actionAuto = new QAction(&menu); | ||
774 | actionAuto->setText(i18n("Mixed")); | 775 | actionAuto->setText(i18n("Mixed")); | ||
775 | actionAuto->setCheckable(true); | 776 | actionAuto->setCheckable(true); | ||
▲ Show 20 Lines • Show All 814 Lines • Show Last 20 Lines |