};
+class QCustomTreeView : public QTreeView
+{
+ Q_OBJECT
+
+public:
+ void currentChanged(const QModelIndex& current, const QModelIndex& previous);
+
+Q_SIGNALS:
+ void currentChanged(const QModelIndex& current);
+};
+
class SubWindow : public SubWindowBase
{
Q_OBJECT
void new_decoders_selected(vector<const srd_decoder*> decoders);
public Q_SLOTS:
- void on_item_clicked(const QModelIndex& index);
- void on_item_double_clicked(const QModelIndex& index);
+ void on_item_changed(const QModelIndex& index);
+ void on_item_activated(const QModelIndex& index);
private:
QSplitter* splitter_;
- QTreeView* tree_view_;
+ QCustomTreeView* tree_view_;
QWidget* info_box_;
QLabel* info_label_header_;
QLabel* info_label_body_;