projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecodeSelector: Use custom treeview to hook into selection changes
[pulseview.git]
/
pv
/
subwindows
/
decoder_selector
/
subwindow.hpp
diff --git
a/pv/subwindows/decoder_selector/subwindow.hpp
b/pv/subwindows/decoder_selector/subwindow.hpp
index baeedd36dad343a7247a8bdf53be2b2643c49916..4434f0a610bcd2030e867acc598b5417eb3184c4 100644
(file)
--- a/
pv/subwindows/decoder_selector/subwindow.hpp
+++ b/
pv/subwindows/decoder_selector/subwindow.hpp
@@
-84,6
+84,17
@@
private:
};
};
+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
class SubWindow : public SubWindowBase
{
Q_OBJECT
@@
-112,12
+123,12
@@
Q_SIGNALS:
void new_decoders_selected(vector<const srd_decoder*> decoders);
public Q_SLOTS:
void new_decoders_selected(vector<const srd_decoder*> decoders);
public Q_SLOTS:
- void on_item_c
lick
ed(const QModelIndex& index);
- void on_item_
double_click
ed(const QModelIndex& index);
+ void on_item_c
hang
ed(const QModelIndex& index);
+ void on_item_
activat
ed(const QModelIndex& index);
private:
QSplitter* splitter_;
private:
QSplitter* splitter_;
- QTreeView* tree_view_;
+ Q
Custom
TreeView* tree_view_;
QWidget* info_box_;
QLabel* info_label_header_;
QLabel* info_label_body_;
QWidget* info_box_;
QLabel* info_label_header_;
QLabel* info_label_body_;