Qt 4.8
Classes | Functions
qmenubar_x11.cpp File Reference
#include "qmenubar_x11_p.h"
#include "qapplication.h"
#include "qdebug.h"
#include "qevent.h"
#include "qmenu.h"
#include "qmenubar.h"
#include <private/qfactoryloader_p.h>

Go to the source code of this file.

Classes

struct  QX11MenuBarFactory
 

Functions

QPlatformMenuBarFactoryInterfaceqt_guiPlatformMenuBarFactory ()
 

Function Documentation

◆ qt_guiPlatformMenuBarFactory()

QPlatformMenuBarFactoryInterface* qt_guiPlatformMenuBarFactory ( )

Definition at line 121 of file qmenubar_x11.cpp.

Referenced by QMenuBarPrivate::init().

122 {
123  static QPlatformMenuBarFactoryInterface *factory = 0;
124  if (!factory) {
125 #ifndef QT_NO_LIBRARY
127  factory = qobject_cast<QPlatformMenuBarFactoryInterface *>(loader.instance(QLatin1String("default")));
128 #endif // QT_NO_LIBRARY
129  if(!factory) {
130  static QX11MenuBarFactory def;
131  factory = &def;
132  }
133  }
134  return factory;
135 }
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
T * qobject_cast(QObject *object)
Definition: qobject.h:375
#define QPlatformMenuBarFactoryInterface_iid