X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewfilter.cpp;h=bae2522d88a1bee5518f801747bd3e2505fc2231;hp=22b514134bcefb6a2b00716b843096dd4729cd1b;hb=8010224cf5bfe5685dc2cf535e8dc1ec19c4c364;hpb=1f02b7201ab7b86238e705d2ce5b22f50bf6acfe diff --git a/src/uisupport/bufferviewfilter.cpp b/src/uisupport/bufferviewfilter.cpp index 22b51413..bae2522d 100644 --- a/src/uisupport/bufferviewfilter.cpp +++ b/src/uisupport/bufferviewfilter.cpp @@ -173,13 +173,13 @@ QVariant BufferViewFilter::foreground(const QModelIndex &index) const { if(!index.data(NetworkModel::ItemActiveRole).toBool()) return inactiveActivity.value(); - BufferItem::ActivityLevel activity = (BufferItem::ActivityLevel)index.data(NetworkModel::BufferActivityRole).toInt(); + Buffer::ActivityLevel activity = (Buffer::ActivityLevel)index.data(NetworkModel::BufferActivityRole).toInt(); - if(activity & BufferItem::Highlight) + if(activity & Buffer::Highlight) return highlightActivity.value(); - if(activity & BufferItem::NewMessage) + if(activity & Buffer::NewMessage) return newMessageActivity.value(); - if(activity & BufferItem::OtherActivity) + if(activity & Buffer::OtherActivity) return otherActivity.value(); return noActivity.value();