MCPcopy Create free account
hub / github.com/KDAB/GammaRay / ProcessFilterModel

Method ProcessFilterModel

launcher/ui/processfiltermodel.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44using namespace GammaRay;
45
46ProcessFilterModel::ProcessFilterModel(QObject *parent)
47 : QSortFilterProxyModel(parent)
48{
49 m_currentProcId = qApp->applicationPid();
50 m_currentUser = qGetLogin();
51#ifndef Q_OS_WIN
52 if (m_currentUser == QLatin1String("root")) {
53 // empty current user == no filter. as root we want to show all
54 m_currentUser.clear();
55 }
56#endif
57}
58
59bool ProcessFilterModel::lessThan(const QModelIndex &left, const QModelIndex &right) const
60{

Callers

nothing calls this directly

Calls 2

qGetLoginFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected