#include <kmenu.h>
|
void | AppendAndConnect (KMenu::AppendType appendType, std::uintptr_t nID, const KString &label, std::function< void(std::uintptr_t nID)> slot) |
|
QAction * | AppendToMenu (AppendType nFlags, std::uintptr_t nIDNewItem=0, const KString &lpszNewItem={}) |
|
void | CheckMenuItem (unsigned int nIDCheckItem, Qt::CheckState nCheck) |
|
| KMenu (QWidget *parent=nullptr) |
|
bool | ModifyMenuItem (unsigned int nPosition, ModifyBy nFlags, std::uintptr_t nIDNewItem=0, const KString &lpszNewItem={}) |
|
bool | TrackPopupMenu (unsigned int nFlags, int x, int y, QWidget *pWnd=nullptr, KRect *lpRect=0) |
|
◆ AppendType
Enumerator |
---|
String | |
Separator | |
Popup | |
◆ ModifyBy
Enumerator |
---|
Command | |
Position | |
◆ KMenu()
KMenu::KMenu |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ AppendAndConnect()
void KMenu::AppendAndConnect |
( |
KMenu::AppendType | appendType, |
|
|
std::uintptr_t | nID, |
|
|
const KString & | label, |
|
|
std::function< void(std::uintptr_t nID)> | slot ) |
◆ AppendToMenu()
QAction * KMenu::AppendToMenu |
( |
AppendType | nFlags, |
|
|
std::uintptr_t | nIDNewItem = 0, |
|
|
const KString & | lpszNewItem = {} ) |
◆ CheckMenuItem()
void KMenu::CheckMenuItem |
( |
unsigned int | nIDCheckItem, |
|
|
Qt::CheckState | nCheck ) |
◆ ModifyMenuItem()
bool KMenu::ModifyMenuItem |
( |
unsigned int | nPosition, |
|
|
ModifyBy | nFlags, |
|
|
std::uintptr_t | nIDNewItem = 0, |
|
|
const KString & | lpszNewItem = {} ) |
◆ TrackPopupMenu()
bool KMenu::TrackPopupMenu |
( |
unsigned int | nFlags, |
|
|
int | x, |
|
|
int | y, |
|
|
QWidget * | pWnd = nullptr, |
|
|
KRect * | lpRect = 0 ) |
The documentation for this class was generated from the following file: