mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:09:32 +02:00
Qt: removed unsupported QString_toHtmlEscaped. issue #38982
git-svn-id: trunk@65248 -
This commit is contained in:
parent
c144a64fe3
commit
0ecb8aad9b
@ -5259,9 +5259,6 @@ var
|
||||
//OkStr: WideString;
|
||||
AParent: QWidgetH;
|
||||
DialogType, DefButton, DefIcon : Cardinal;
|
||||
{$IFNDEF QTDIALOGSUSEHTMLTEXT}
|
||||
AQtString: QStringH;
|
||||
{$ENDIF}
|
||||
begin
|
||||
Result := 0;
|
||||
Str := lpText;
|
||||
@ -5276,14 +5273,6 @@ begin
|
||||
DefIcon := (uType and $000000FF) shr 4;
|
||||
|
||||
|
||||
{$IFNDEF QTDIALOGSUSEHTMLTEXT}
|
||||
//issue #37805 - we must show plain text.
|
||||
AQtString := QString_Create(PWideString(@Str));
|
||||
QString_toHtmlEscaped(AQtString, @Str);
|
||||
QString_destroy(AQtString);
|
||||
{$ENDIF}
|
||||
|
||||
|
||||
case IconToMessageType(DefIcon) of
|
||||
QMessageBoxInformation: Result := QMessageBox_information(AParent, @TitleStr, @Str, ButtonToQtButtons(DialogType), ButtonToQtDefButton(DialogType, DefButton));
|
||||
QMessageBoxQuestion: Result := QMessageBox_question(AParent, @TitleStr, @Str, ButtonToQtButtons(DialogType), ButtonToQtDefButton(DialogType, DefButton));
|
||||
|
Loading…
Reference in New Issue
Block a user