Qt 4.8
Classes | Macros
qshortcut.cpp File Reference
#include "qshortcut.h"
#include "private/qwidget_p.h"
#include <qevent.h>
#include <qwhatsthis.h>
#include <qmenu.h>
#include <qapplication.h>
#include <private/qapplication_p.h>
#include <private/qshortcutmap_p.h>

Go to the source code of this file.

Classes

class  QShortcutPrivate
 

Macros

#define QAPP_CHECK(functionName)
 

Macro Definition Documentation

◆ QAPP_CHECK

#define QAPP_CHECK (   functionName)
Value:
if (!qApp) { \
qWarning("QShortcut: Initialize QApplication before calling '" functionName "'."); \
return; \
}
#define qApp

Definition at line 55 of file qshortcut.cpp.

Referenced by QShortcut::QShortcut(), QShortcut::setAutoRepeat(), QShortcut::setContext(), QShortcut::setEnabled(), and QShortcut::setKey().