PulseView  0.3.0
A Qt-based sigrok GUI
pv::widgets::HidingMenuBar Class Reference

#include <hidingmenubar.hpp>

Inheritance diagram for pv::widgets::HidingMenuBar:
Collaboration diagram for pv::widgets::HidingMenuBar:

Public Member Functions

 HidingMenuBar (QWidget *parent=nullptr)
 

Private Slots

void item_triggered ()
 

Private Member Functions

void focusOutEvent (QFocusEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 

Detailed Description

A menu bar widget that only remains visible while it retains focus.

Definition at line 32 of file hidingmenubar.hpp.

Constructor & Destructor Documentation

pv::widgets::HidingMenuBar::HidingMenuBar ( QWidget *  parent = nullptr)

Constructor

Parameters
parentThe parent widget.

Definition at line 28 of file hidingmenubar.cpp.

Here is the call graph for this function:

Member Function Documentation

void pv::widgets::HidingMenuBar::focusOutEvent ( QFocusEvent *  e)
private

Handles the event that the widget loses keyboard focus.

Parameters
ethe representation of the event details.

Definition at line 36 of file hidingmenubar.cpp.

void pv::widgets::HidingMenuBar::item_triggered ( )
privateslot

Handles a menu items being triggered.

Definition at line 50 of file hidingmenubar.cpp.

Here is the caller graph for this function:

void pv::widgets::HidingMenuBar::keyPressEvent ( QKeyEvent *  e)
private

Handles the event that a key is depressed.

Parameters
ethe representation of the event details.

Definition at line 43 of file hidingmenubar.cpp.


The documentation for this class was generated from the following files: