Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qaction.cpp File Reference
#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.

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, QString::remove(), and QString::trimmed().

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

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