projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved highlight pen into SelectableItem
[pulseview.git]
/
pv
/
view
/
selectableitem.h
diff --git
a/pv/view/selectableitem.h
b/pv/view/selectableitem.h
index 69204b29478b901ec703ee858ab3ba457ad318ec..d8545ce6e78c2e412153335f1fe1cad28774ebcd 100644
(file)
--- a/
pv/view/selectableitem.h
+++ b/
pv/view/selectableitem.h
@@
-23,7
+23,7
@@
#include <list>
#include <list>
-#include <Q
Object
>
+#include <Q
Pen
>
class QAction;
class QAction;
@@
-34,6
+34,9
@@
class SelectableItem : public QObject
{
Q_OBJECT
{
Q_OBJECT
+private:
+ static const int HighlightRadius;
+
public:
SelectableItem();
public:
SelectableItem();
@@
-48,6
+51,9
@@
public:
*/
void select(bool select = true);
*/
void select(bool select = true);
+protected:
+ static QPen highlight_pen();
+
private:
bool _selected;
};
private:
bool _selected;
};