| 44 | using namespace GammaRay; |
| 45 | |
| 46 | ProcessFilterModel::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 | |
| 59 | bool ProcessFilterModel::lessThan(const QModelIndex &left, const QModelIndex &right) const |
| 60 | { |