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
qaction.cpp File Reference

(d2db1d511ddbc4d676bcd93881e17e42edd37b84)

#include "qaction.h"
#include "qactiongroup.h"
#include "qaction_p.h"
#include "qguiapplication.h"
#include "qevent.h"
#include "qlist.h"
#include "qstylehints.h"
#include <private/qguiapplication_p.h>
#include <private/qdebug_p.h>
#include "moc_qaction.cpp"
+ Include dependency graph for qaction.cpp:

Go to the source code of this file.

Macros

#define QAPP_CHECK(functionName)
 

Functions

static QString qt_strippedText (QString s)
 
Q_GUI_EXPORT QDebug operator<< (QDebug d, const QAction *action)
 

Macro Definition Documentation

◆ QAPP_CHECK

#define QAPP_CHECK ( functionName)
Value:
qWarning("QAction: Initialize Q(Gui)Application before calling '" functionName "'."); \
return; \
}
static QCoreApplication * instance() noexcept
Returns a pointer to the application's QCoreApplication (or QGuiApplication/QApplication) instance.
#define Q_UNLIKELY(x)

Definition at line 18 of file qaction.cpp.

Referenced by QShortcut::setAutoRepeat(), QShortcut::setContext(), QShortcut::setEnabled(), QAction::setEnabled(), QShortcut::setKeys(), and QActionPrivate::setVisible().

Function Documentation

◆ operator<<()

Q_GUI_EXPORT QDebug operator<< ( QDebug d,
const QAction * action )

Definition at line 1299 of file qaction.cpp.

References d, QtDebugUtils::formatQEnum(), QAction::isCheckable(), QAction::isChecked(), QString::isEmpty(), QAction::isEnabled(), QAction::isVisible(), QAction::menuRole, QAction::text, and QAction::toolTip.

+ Here is the call graph for this function:

◆ qt_strippedText()

static QString qt_strippedText ( QString s)
static

Definition at line 31 of file qaction.cpp.

References i.

Referenced by QAction::iconText(), and QAction::toolTip().

+ Here is the caller graph for this function: