KDE3Support
Go to the documentation of this file.
19 #ifndef _K3POPUPMENU_H
20 #define _K3POPUPMENU_H
28 #include <Qt3Support/Q3PopupMenu>
29 #include <QtGui/QMenuItem>
84 void setKeyboardShortcutsEnabled(
bool enable);
90 void setKeyboardShortcutsExecute(
bool enable);
105 void hideContextMenu();
115 static QAction* contextMenuFocusAction();
122 Qt::ButtonState state()
const;
128 Qt::MouseButtons mouseButtons()
const;
133 Qt::KeyboardModifiers keyboardModifiers()
const;
139 int insertTitle(
const QString &text,
int id=-1,
int index=-1);
143 int insertTitle(
const QPixmap &icon,
const QString &text,
int id=-1,
149 void changeTitle(
int id,
const QString &text);
153 void changeTitle(
int id,
const QPixmap &icon,
const QString &text);
159 QString title(
int id=-1)
const;
163 QPixmap titlePixmap(
int id)
const;
177 void setTitle(
const QString &title);
182 static int contextMenuFocusItem();
187 virtual void activateItemAt(
int index);
198 return static_cast<QMenuItem*
>(action)->
id();
213 virtual void closeEvent(QCloseEvent *);
214 virtual void keyPressEvent(QKeyEvent* e);
215 virtual void mouseReleaseEvent(QMouseEvent* e);
216 virtual void mousePressEvent(QMouseEvent* e);
217 virtual bool focusNextPrevChild(
bool next );
218 virtual void contextMenuEvent(QContextMenuEvent *e);
219 virtual void hideEvent(QHideEvent*);
221 virtual void virtual_hook(
int id,
void* data );
225 void resetKeyboardVars(
bool noMatches =
false);
226 void actionHovered(
QAction* action);
227 void showCtxMenu(
const QPoint &pos);
228 void ctxMenuHiding();
229 void ctxMenuHideShowingMenu();
232 class K3PopupMenuPrivate;
233 K3PopupMenuPrivate *d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.