mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 11:09:32 +02:00
remove csCaptureMouse from TCustomCalendar
git-svn-id: trunk@14221 -
This commit is contained in:
parent
27d0c29fb7
commit
a3704dd28e
@ -150,7 +150,7 @@ begin
|
||||
fCompStyle := csCalendar;
|
||||
SetInitialBounds(0,0,GetControlClassDefaultSize.X,GetControlClassDefaultSize.Y);
|
||||
fDisplaySettings := [dsShowHeadings, dsShowDayNames];
|
||||
ControlStyle:=ControlStyle-[csTripleClicks,csQuadClicks,csAcceptsControls];
|
||||
ControlStyle:=ControlStyle-[csTripleClicks,csQuadClicks,csAcceptsControls,csCaptureMouse];
|
||||
DateTime := Now;
|
||||
end;
|
||||
|
||||
|
@ -265,7 +265,7 @@ begin
|
||||
begin
|
||||
// remove tab from focus policy
|
||||
{$ifdef VerboseTabbedControls}
|
||||
WriteLn('found Taabed widget ', PtrInt(Sender));
|
||||
WriteLn('found Taabed widget ', PtrUInt(Sender));
|
||||
{$endif}
|
||||
QWidget_setFocusPolicy(QWidgetH(Sender), QtClickFocus);
|
||||
if FOldFocusWidget <> nil then
|
||||
|
@ -235,7 +235,7 @@ type
|
||||
procedure SlotRangeChanged(minimum: Integer; maximum: Integer); cdecl; virtual;
|
||||
procedure SlotSliderPressed; cdecl;
|
||||
procedure SlotSliderReleased; cdecl;
|
||||
public
|
||||
public
|
||||
function getOrientation: QtOrientation;
|
||||
function getValue: Integer;
|
||||
function getPageStep: Integer;
|
||||
@ -324,6 +324,7 @@ type
|
||||
end;
|
||||
|
||||
{ TQtViewPort }
|
||||
|
||||
TQtViewPort = class(TQtWidget)
|
||||
public
|
||||
function getClientBounds: TRect; override;
|
||||
@ -7337,9 +7338,8 @@ begin
|
||||
y := QDate_year(ADate);
|
||||
m := QDate_month(ADate);
|
||||
d := QDate_day(ADate);
|
||||
if (y <> aYear) or (m <> aMonth)
|
||||
or (d <> aDay) then
|
||||
DeliverMessage(Msg);
|
||||
if (y <> aYear) or (m <> aMonth) or (d <> aDay) then
|
||||
DeliverMessage(Msg);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
@ -7351,9 +7351,9 @@ end;
|
||||
procedure TQtCalendar.SignalClicked(ADate: QDateH); cdecl;
|
||||
var
|
||||
Msg: TLMessage;
|
||||
y,m,d: Integer;
|
||||
y, m, d: Integer;
|
||||
begin
|
||||
// writeln('TQtCalendar.signalClicked');
|
||||
//writeln('TQtCalendar.signalClicked');
|
||||
FillChar(Msg, SizeOf(Msg), #0);
|
||||
Msg.Msg := LM_DAYCHANGED;
|
||||
y := QDate_year(ADate);
|
||||
|
Loading…
Reference in New Issue
Block a user