diff options
Diffstat (limited to 'qt/traffic_panel.hpp')
-rw-r--r-- | qt/traffic_panel.hpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/qt/traffic_panel.hpp b/qt/traffic_panel.hpp deleted file mode 100644 index 0cf25e3357..0000000000 --- a/qt/traffic_panel.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -#include <QtWidgets/QStyledItemDelegate> - -class QAbstractItemModel; -class QComboBox; -class QTableView; -class QWidget; - -class ComboBoxDelegate : public QStyledItemDelegate -{ - Q_OBJECT - -public: - ComboBoxDelegate(QObject * parent = 0); - - QWidget * createEditor(QWidget * parent, QStyleOptionViewItem const & option, - QModelIndex const & index) const Q_DECL_OVERRIDE; - - void setEditorData(QWidget * editor, QModelIndex const & index) const Q_DECL_OVERRIDE; - - void setModelData(QWidget * editor, QAbstractItemModel * model, - QModelIndex const & index) const Q_DECL_OVERRIDE; - - void updateEditorGeometry(QWidget * editor, QStyleOptionViewItem const & option, - QModelIndex const & index) const Q_DECL_OVERRIDE; -}; - -class TrafficPanel : public QWidget -{ - Q_OBJECT - -public: - explicit TrafficPanel(QAbstractItemModel * trafficModel, QWidget * parent); - -private: - void CreateTable(QAbstractItemModel * trafficModel); - void FillTable(); - -signals: - -public slots: - // void OnCheckBoxClicked(int row, int state); - -private: - QTableView * m_table = Q_NULLPTR; -}; |