mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-13 04:20:47 +01:00
Qt,Qt5: show text when TComboBox is csOwnerDrawEditableFixed or csOwnerDrawEditableVariable during design time. issue #33295
git-svn-id: trunk@59773 -
This commit is contained in:
parent
8eded5232b
commit
02e5547687
@ -9787,6 +9787,8 @@ begin
|
|||||||
begin
|
begin
|
||||||
Result := TQtComboBox(LCLObject.Handle).InUpdate or
|
Result := TQtComboBox(LCLObject.Handle).InUpdate or
|
||||||
(csDesigning in LCLObject.ComponentState);
|
(csDesigning in LCLObject.ComponentState);
|
||||||
|
if (QEvent_type(Event) = QEventPaint) and (csDesigning in LCLObject.ComponentState) then
|
||||||
|
QObject_event(Sender, Event);
|
||||||
if Result then
|
if Result then
|
||||||
QEvent_ignore(Event)
|
QEvent_ignore(Event)
|
||||||
else
|
else
|
||||||
|
|||||||
@ -9695,6 +9695,8 @@ begin
|
|||||||
begin
|
begin
|
||||||
Result := TQtComboBox(LCLObject.Handle).InUpdate or
|
Result := TQtComboBox(LCLObject.Handle).InUpdate or
|
||||||
(csDesigning in LCLObject.ComponentState);
|
(csDesigning in LCLObject.ComponentState);
|
||||||
|
if (QEvent_type(Event) = QEventPaint) and (csDesigning in LCLObject.ComponentState) then
|
||||||
|
QObject_event(Sender, Event);
|
||||||
if Result then
|
if Result then
|
||||||
QEvent_ignore(Event)
|
QEvent_ignore(Event)
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user