mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-15 22:42:45 +02:00
(Qt): Fixed QPainter warning "QPainter::begin: Widget painting can only begin as a result of a paintEvent" when calling QtScreenContext for the first time.
git-svn-id: trunk@11738 -
This commit is contained in:
parent
bcc6d8567f
commit
f51fb2b0b1
@ -418,7 +418,7 @@ end;
|
||||
function QtScreenContext: TQtDeviceContext;
|
||||
begin
|
||||
if FScreenContext = nil then
|
||||
FScreenContext := TQtDeviceContext.Create(QApplication_desktop(), True);
|
||||
FScreenContext := TQtDeviceContext.Create(QApplication_desktop(), False);
|
||||
Result := FScreenContext;
|
||||
end;
|
||||
|
||||
@ -1092,7 +1092,7 @@ var
|
||||
H: Integer;
|
||||
begin
|
||||
{$ifdef VerboseQt}
|
||||
WriteLn('TQtDeviceContext.Create ( WidgetHandle: ', dbghex(WidgetHandle), ' FromPaintEvent:',BoolToStr(FromPaintEvent),' )');
|
||||
WriteLn('TQtDeviceContext.Create ( WidgetHandle: ', dbghex(AWidget), ' FromPaintEvent:',BoolToStr(APaintEvent),' )');
|
||||
{$endif}
|
||||
|
||||
{NOTE FOR QT DEVELOPERS: Whenever you call TQtDeviceContext.Create() outside
|
||||
|
Loading…
Reference in New Issue
Block a user