projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a context menu to users
[quassel.git]
/
src
/
client
/
treemodel.cpp
diff --git
a/src/client/treemodel.cpp
b/src/client/treemodel.cpp
index
dd06446
..
f40fa7d
100644
(file)
--- a/
src/client/treemodel.cpp
+++ b/
src/client/treemodel.cpp
@@
-247,10
+247,18
@@
PropertyMapItem::~PropertyMapItem() {
}
QVariant PropertyMapItem::data(int column, int role) const {
}
QVariant PropertyMapItem::data(int column, int role) const {
- if(column >= columnCount()
|| role != Qt::DisplayRole
)
+ if(column >= columnCount())
return QVariant();
return QVariant();
- return property(_propertyOrder[column].toAscii());
+ switch(role) {
+ case Qt::ToolTipRole:
+ return toolTip(column);
+ case Qt::DisplayRole:
+ return property(_propertyOrder[column].toAscii());
+ default:
+ return QVariant();
+ }
+
}
bool PropertyMapItem::setData(int column, const QVariant &value, int role) {
}
bool PropertyMapItem::setData(int column, const QVariant &value, int role) {