Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgtk3menu.cpp File Reference

(df9d882d41b741fef7c5beeddb0abe9d904443d8)

#include "qgtk3menu.h"
#include <QtGui/qwindow.h>
#include <QtGui/qpa/qplatformtheme.h>
#include <QtGui/qpa/qplatformwindow.h>
#include <gtk/gtk.h>
#include "moc_qgtk3menu.cpp"
+ Include dependency graph for qgtk3menu.cpp:

Go to the source code of this file.

Functions

static QString convertMnemonics (QString text, bool *found)
 
static void qt_gtk_menu_position_func (GtkMenu *, gint *x, gint *y, gboolean *push_in, gpointer data)
 

Function Documentation

◆ convertMnemonics()

static QString convertMnemonics ( QString text,
bool * found )
static

Definition at line 122 of file qgtk3menu.cpp.

References QString::at(), i, QString::insert(), QString::replace(), QString::size(), and text.

Referenced by QGtk3MenuItem::setText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_gtk_menu_position_func()

static void qt_gtk_menu_position_func ( GtkMenu * ,
gint * x,
gint * y,
gboolean * push_in,
gpointer data )
static

Definition at line 375 of file qgtk3menu.cpp.

References menu, QPoint::x(), and QPoint::y().

Referenced by QGtk3Menu::showPopup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: