projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ViewItem: Added rect parameter to point()
[pulseview.git]
/
pv
/
view
/
marginwidget.cpp
diff --git
a/pv/view/marginwidget.cpp
b/pv/view/marginwidget.cpp
index 539551dda022091bf4c470ea4bfc4db4d1e85c36..f8302f646f73867589e68027580fb8435e378895 100644
(file)
--- a/
pv/view/marginwidget.cpp
+++ b/
pv/view/marginwidget.cpp
@@
-18,16
+18,24
@@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "view.h"
+#include "view.h
pp
"
-#include "marginwidget.h"
+#include "marginwidget.h
pp
"
namespace pv {
namespace view {
MarginWidget::MarginWidget(View &parent) :
QWidget(&parent),
namespace pv {
namespace view {
MarginWidget::MarginWidget(View &parent) :
QWidget(&parent),
- _view(parent)
+ view_(parent),
+ dragging_(false)
+{
+ setAttribute(Qt::WA_NoSystemBackground, true);
+ setFocusPolicy(Qt::ClickFocus);
+ setMouseTracking(true);
+}
+
+void MarginWidget::clear_selection()
{
}
{
}