X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fmarginwidget.cpp;h=0d35c5fc6e981718513e7c56d421fd3d8be98ada;hp=0d657611021dd3fdd8e58fd0b39ef64924833c46;hb=efdec55aec1a137460fa362a381ed1904182bfed;hpb=2ad82c2e40b6865481733913a2c32735602f63c4 diff --git a/pv/view/marginwidget.cpp b/pv/view/marginwidget.cpp index 0d65761..0d35c5f 100644 --- a/pv/view/marginwidget.cpp +++ b/pv/view/marginwidget.cpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #include @@ -30,7 +29,8 @@ using std::shared_ptr; namespace pv { -namespace view { +namespace views { +namespace TraceView { MarginWidget::MarginWidget(View &parent) : ViewWidget(parent) @@ -62,11 +62,11 @@ void MarginWidget::contextMenuEvent(QContextMenuEvent *event) menu->exec(event->globalPos()); } -void MarginWidget::keyPressEvent(QKeyEvent *e) +void MarginWidget::keyPressEvent(QKeyEvent *event) { - assert(e); + assert(event); - if (e->key() == Qt::Key_Delete) { + if (event->key() == Qt::Key_Delete) { const auto items = this->items(); for (auto &i : items) if (i->selected()) @@ -74,5 +74,6 @@ void MarginWidget::keyPressEvent(QKeyEvent *e) } } -} // namespace view +} // namespace TraceView +} // namespace views } // namespace pv