#include "bufferinfo.h"
#include "buffermodel.h"
+#include "buffersettings.h"
#include "client.h"
#include "iconloader.h"
#include "networkmodel.h"
connect(this, SIGNAL(_dataChanged(const QModelIndex &, const QModelIndex &)),
this, SLOT(_q_sourceDataChanged(QModelIndex,QModelIndex)));
+
+ BufferSettings bufferSettings;
+ _showUserStateIcons = bufferSettings.showUserStateIcons();
+ bufferSettings.notify("ShowUserStateIcons", this, SLOT(showUserStateIconsChanged()));
}
void BufferViewFilter::loadColors() {
_FgColorOtherActivity = s.value("otherActivityFG", QVariant(QColor(Qt::darkGreen))).value<QColor>();
}
+void BufferViewFilter::showUserStateIconsChanged() {
+ BufferSettings bufferSettings;
+ _showUserStateIcons = bufferSettings.showUserStateIcons();
+}
+
void BufferViewFilter::setConfig(BufferViewConfig *config) {
if(_config == config)
return;
}
QVariant BufferViewFilter::icon(const QModelIndex &index) const {
+ if(!_showUserStateIcons)
+ return QVariant();
+
if(index.column() != 0)
return QVariant();