Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtAndroidDialogHelpers Namespace Reference

Classes

class  QAndroidPlatformMessageDialogHelper
 

Functions

static QString htmlText (QString text)
 
static void dialogResult (JNIEnv *, jobject, jlong handler, int buttonID)
 
bool registerNatives (JNIEnv *env)
 

Variables

static jclass g_messageDialogHelperClass = nullptr
 
static JNINativeMethod methods []
 

Function Documentation

◆ dialogResult()

static void QtAndroidDialogHelpers::dialogResult ( JNIEnv *  ,
jobject  ,
jlong  handler,
int  buttonID 
)
static

Definition at line 147 of file qandroidplatformdialoghelpers.cpp.

References QMetaObject::invokeMethod(), Q_ARG, and Qt::QueuedConnection.

+ Here is the call graph for this function:

◆ htmlText()

static QString QtAndroidDialogHelpers::htmlText ( QString  text)
static

Definition at line 38 of file qandroidplatformdialoghelpers.cpp.

References Qt::mightBeRichText(), QString::remove(), QString::replace(), text, and QString::toHtmlEscaped().

Referenced by QtAndroidDialogHelpers::QAndroidPlatformMessageDialogHelper::show().

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

◆ registerNatives()

bool QtAndroidDialogHelpers::registerNatives ( JNIEnv *  env)

Definition at line 165 of file qandroidplatformdialoghelpers.cpp.

References QtAndroid::classErrorMsgFmt(), FIND_AND_CHECK_CLASS, g_messageDialogHelperClass, methods, and QtAndroid::qtTagText().

Referenced by JNI_OnLoad().

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

Variable Documentation

◆ g_messageDialogHelperClass

jclass QtAndroidDialogHelpers::g_messageDialogHelperClass = nullptr
static

Definition at line 18 of file qandroidplatformdialoghelpers.cpp.

Referenced by registerNatives().

◆ methods

JNINativeMethod QtAndroidDialogHelpers::methods[]
static
Initial value:
= {
{"dialogResult", "(JI)V", (void *)dialogResult}
}

Definition at line 153 of file qandroidplatformdialoghelpers.cpp.

Referenced by registerNatives().