projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MainWindow, View::View: Fix two memory errors reported by valgrind
[pulseview.git]
/
pv
/
view
/
marginwidget.cpp
diff --git
a/pv/view/marginwidget.cpp
b/pv/view/marginwidget.cpp
index 2d663cdc18b17a18740dfc7126b11da13f99e579..4c3728710551bfceef85fad0234bffc51f44a119 100644
(file)
--- a/
pv/view/marginwidget.cpp
+++ b/
pv/view/marginwidget.cpp
@@
-30,7
+30,8
@@
using std::shared_ptr;
namespace pv {
using std::shared_ptr;
namespace pv {
-namespace view {
+namespace views {
+namespace TraceView {
MarginWidget::MarginWidget(View &parent) :
ViewWidget(parent)
MarginWidget::MarginWidget(View &parent) :
ViewWidget(parent)
@@
-62,12
+63,11
@@
void MarginWidget::contextMenuEvent(QContextMenuEvent *event)
menu->exec(event->globalPos());
}
menu->exec(event->globalPos());
}
-void MarginWidget::keyPressEvent(QKeyEvent *e)
+void MarginWidget::keyPressEvent(QKeyEvent *e
vent
)
{
{
- assert(e);
+ assert(e
vent
);
- if (e->key() == Qt::Key_Delete)
- {
+ if (event->key() == Qt::Key_Delete) {
const auto items = this->items();
for (auto &i : items)
if (i->selected())
const auto items = this->items();
for (auto &i : items)
if (i->selected())
@@
-75,5
+75,6
@@
void MarginWidget::keyPressEvent(QKeyEvent *e)
}
}
}
}
-} // namespace view
+} // namespace TraceView
+} // namespace views
} // namespace pv
} // namespace pv