KDEUI
#include <kmenubar.h>
KDE Style-able menubar.
This is required since QMenuBar is currently not handled by QStyle.
- Author
- Daniel "Mosfet" Duley.
Definition at line 38 of file kmenubar.h.
◆ KMenuBar()
KMenuBar::KMenuBar |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ~KMenuBar()
◆ closeEvent()
void KMenuBar::closeEvent |
( |
QCloseEvent * |
e | ) |
|
|
protectedvirtual |
◆ eventFilter()
bool KMenuBar::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
ev |
|
) |
| |
|
protectedvirtual |
◆ isTopLevelMenu()
bool KMenuBar::isTopLevelMenu |
( |
| ) |
const |
Is our menubar a top-level (Macintosh style) menubar?
- Returns
- True if it is top-level.
Definition at line 224 of file kmenubar.cpp.
◆ paintEvent()
void KMenuBar::paintEvent |
( |
QPaintEvent * |
pe | ) |
|
|
protectedvirtual |
◆ resize() [1/2]
void KMenuBar::resize |
( |
const QSize & |
s | ) |
|
◆ resize() [2/2]
void KMenuBar::resize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
virtual |
◆ resizeEvent()
void KMenuBar::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
protectedvirtual |
◆ setFrameStyle()
void KMenuBar::setFrameStyle |
( |
int |
style | ) |
|
|
virtual |
◆ setGeometry() [1/2]
void KMenuBar::setGeometry |
( |
const QRect & |
r | ) |
|
|
virtual |
◆ setGeometry() [2/2]
void KMenuBar::setGeometry |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
virtual |
◆ setLineWidth()
void KMenuBar::setLineWidth |
( |
int |
width | ) |
|
|
virtual |
◆ setMargin()
void KMenuBar::setMargin |
( |
int |
margin | ) |
|
|
virtual |
◆ setTopLevelMenu()
void KMenuBar::setTopLevelMenu |
( |
bool |
top_level = true | ) |
|
This controls whether or not this menubar will be a top-level bar similar to the way Macintosh handles menubars.
This overrides any global config settings.
Keep in mind that it is probably a really bad idea to use this unless you really know what you're doing. A feature like a top-level menubar is one that should really be shared by all applications. If your app is the only one with a top-level bar, then things might look very... odd.
This is included only for those people that do
know that they need to use it.
- Parameters
-
top_level | If set to true, then this menubar will be a top-level menu |
Definition at line 155 of file kmenubar.cpp.
◆ sizeHint()
QSize KMenuBar::sizeHint |
( |
| ) |
const |
|
virtual |
◆ slotReadConfig
void KMenuBar::slotReadConfig |
( |
| ) |
|
|
protectedslot |
◆ x11Event()
bool KMenuBar::x11Event |
( |
XEvent * |
ev | ) |
|
|
protectedvirtual |
◆ topLevelMenu
bool KMenuBar::topLevelMenu |
|
readwrite |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.