* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#ifndef _BUFFERINFO_H_
-#define _BUFFERINFO_H_
+#ifndef BUFFERINFO_H
+#define BUFFERINFO_H
#include <QtCore>
#include "types.h"
if(!(config()->allowedBufferTypes() & (BufferInfo::Type)source_bufferIndex.data(NetworkModel::BufferTypeRole).toInt()))
return false;
- if(config()->hideInactiveBuffers() && !source_bufferIndex.data(NetworkModel::ItemActiveRole).toBool())
+ if(config()->hideInactiveBuffers() && !source_bufferIndex.data(NetworkModel::ItemActiveRole).toBool() && activityLevel <= BufferInfo::OtherActivity)
return false;
if(config()->minimumActivity() > activityLevel) {
}
QVariant BufferViewFilter::foreground(const QModelIndex &index) const {
- if(!index.data(NetworkModel::ItemActiveRole).toBool())
- return _FgColorInactiveActivity;
-
BufferInfo::ActivityLevel activity = (BufferInfo::ActivityLevel)index.data(NetworkModel::BufferActivityRole).toInt();
if(activity & BufferInfo::Highlight)
if(activity & BufferInfo::OtherActivity)
return _FgColorOtherActivity;
+ if(!index.data(NetworkModel::ItemActiveRole).toBool())
+ return _FgColorInactiveActivity;
+
return _FgColorNoActivity;
}