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
QtAndroidDialogHelpers Namespace Reference

Classes

class  QAndroidPlatformMessageDialogHelper
 

Functions

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

Variables

static jclass g_messageDialogHelperClass = nullptr
 
static const 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 ( QJniEnvironment & env)

Definition at line 165 of file qandroidplatformdialoghelpers.cpp.

References QtAndroid::classErrorMsgFmt(), 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

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

Definition at line 153 of file qandroidplatformdialoghelpers.cpp.

Referenced by registerNatives().