[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/PolicyKit-kde/authorization
From: Dario Freddi <drf54321 () gmail ! com>
Date: 2008-11-13 22:31:34
Message-ID: 1226615494.489911.16339.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 883970 by dafre:
Adding data too
M +1 -0 AuthorizationsModel.cpp
M +4 -1 AuthorizationsModel.h
--- trunk/playground/base/PolicyKit-kde/authorization/AuthorizationsModel.cpp #883969:883970
@@ -98,6 +98,7 @@
}*/
QStandardItem *itm = new QStandardItem(mypath);
itm->setData(mypath, IdRole);
+ itm->setData(entry, PolkitEntryRole);
parent->appendRow(itm);
emit reset();
//kDebug() << "Added entry to tree:" << m_tree->tree()["org"]->tree();
--- trunk/playground/base/PolicyKit-kde/authorization/AuthorizationsModel.h #883969:883970
@@ -34,7 +34,8 @@
Q_OBJECT
public:
enum {
- IdRole = Qt::UserRole
+ IdRole = 41,
+ PolkitEntryRole = 42
};
AuthorizationsModel(QObject* parent = 0);
@@ -48,4 +49,6 @@
}
+Q_DECLARE_METATYPE(PolKitPolicyFileEntry*)
+
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic