Qt 4.8
Public Functions | Properties | List of all members
QX11MenuBar Class Reference

#include <qmenubar_x11_p.h>

Inheritance diagram for QX11MenuBar:
QAbstractPlatformMenuBar

Public Functions

virtual void actionEvent (QActionEvent *e)
 
virtual bool allowCornerWidgets () const
 
virtual void handleReparent (QWidget *oldParent, QWidget *newParent, QWidget *oldWindow, QWidget *newWindow)
 
virtual void init (QMenuBar *)
 
virtual bool isNativeMenuBar () const
 
virtual bool menuBarEventFilter (QObject *, QEvent *event)
 
virtual void popupAction (QAction *)
 
virtual void setNativeMenuBar (bool)
 
virtual void setVisible (bool visible)
 
virtual bool shortcutsHandledByNativeMenuBar () const
 Return true if the native menubar is capable of listening to the shortcut keys. More...
 
 ~QX11MenuBar ()
 
- Public Functions inherited from QAbstractPlatformMenuBar
virtual ~QAbstractPlatformMenuBar ()
 

Properties

QMenuBarmenuBar
 
int nativeMenuBar: 3
 

Detailed Description

Definition at line 53 of file qmenubar_x11_p.h.

Constructors and Destructors

◆ ~QX11MenuBar()

QX11MenuBar::~QX11MenuBar ( )

Definition at line 56 of file qmenubar_x11.cpp.

57 {
58 }

Functions

◆ actionEvent()

void QX11MenuBar::actionEvent ( QActionEvent e)
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 71 of file qmenubar_x11.cpp.

72 {
73  Q_UNUSED(e);
74 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ allowCornerWidgets()

bool QX11MenuBar::allowCornerWidgets ( ) const
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 84 of file qmenubar_x11.cpp.

85 {
86  return true;
87 }

◆ handleReparent()

void QX11MenuBar::handleReparent ( QWidget oldParent,
QWidget newParent,
QWidget oldWindow,
QWidget newWindow 
)
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 76 of file qmenubar_x11.cpp.

77 {
78  Q_UNUSED(oldParent)
79  Q_UNUSED(newParent)
80  Q_UNUSED(oldWindow)
81  Q_UNUSED(newWindow)
82 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ init()

void QX11MenuBar::init ( QMenuBar _menuBar)
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 60 of file qmenubar_x11.cpp.

61 {
62  nativeMenuBar = -1;
63  menuBar = _menuBar;
64 }
QMenuBar * menuBar

◆ isNativeMenuBar()

bool QX11MenuBar::isNativeMenuBar ( ) const
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 100 of file qmenubar_x11.cpp.

101 {
102  return false;
103 }

◆ menuBarEventFilter()

bool QX11MenuBar::menuBarEventFilter ( QObject ,
QEvent event 
)
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 110 of file qmenubar_x11.cpp.

111 {
112  return false;
113 }

◆ popupAction()

void QX11MenuBar::popupAction ( QAction )
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 89 of file qmenubar_x11.cpp.

90 {
91 }

◆ setNativeMenuBar()

void QX11MenuBar::setNativeMenuBar ( bool  value)
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 93 of file qmenubar_x11.cpp.

94 {
95  if (nativeMenuBar == -1 || (value != bool(nativeMenuBar))) {
96  nativeMenuBar = value;
97  }
98 }

◆ setVisible()

void QX11MenuBar::setVisible ( bool  visible)
virtual

Implements QAbstractPlatformMenuBar.

Definition at line 66 of file qmenubar_x11.cpp.

67 {
68  menuBar->QWidget::setVisible(visible);
69 }
QMenuBar * menuBar

◆ shortcutsHandledByNativeMenuBar()

bool QX11MenuBar::shortcutsHandledByNativeMenuBar ( ) const
virtual

Return true if the native menubar is capable of listening to the shortcut keys.

If false is returned, QMenuBar will trigger actions on shortcut itself.

Implements QAbstractPlatformMenuBar.

Definition at line 105 of file qmenubar_x11.cpp.

106 {
107  return false;
108 }

Properties

◆ menuBar

QMenuBar* QX11MenuBar::menuBar
private

Definition at line 77 of file qmenubar_x11_p.h.

Referenced by init(), and setVisible().

◆ nativeMenuBar

int QX11MenuBar::nativeMenuBar
private

Definition at line 78 of file qmenubar_x11_p.h.

Referenced by init(), and setNativeMenuBar().


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