Files
giesCANne/re/sniffer/SnifferDelegate.h
T
Collin Kidder b54777d1aa Completion of adding a new mode to sniffer window (View Bits). Also
now it loads and saves the window position, size, and column sizes for
the sniffer window.
2019-02-20 21:14:25 -05:00

28 lines
669 B
C++

#ifndef SNIFFERDELEGATE_H
#define SNIFFERDELEGATE_H
#include <QItemDelegate>
class SnifferDelegate : public QItemDelegate
{
Q_OBJECT
public:
explicit SnifferDelegate(QWidget *parent = nullptr);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
bool getFadeInactive();
void setFadeInactive(bool val);
signals:
public slots:
private:
QBrush blackBrush, whiteBrush, redBrush, greenBrush, grayBrush;
QFont mainFont;
QFontInfo* mainFontInfo;
bool mFadeInactive;
};
#endif