mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 08:09:26 +02:00
LCL: remove IFDEFs for old FPC versions. Lazarus won't compile anyway with old versions.
git-svn-id: trunk@34948 -
This commit is contained in:
parent
ca2975464a
commit
62fcc662c6
@ -2,7 +2,6 @@ unit chmcontentprovider;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
||||
//{$if (fpc_version=2) and (fpc_release>2) ((fpc_version=2) and (fpc_release=2) and (fpc_patch>2))}
|
||||
{$Note Compiling lhelp with search support}
|
||||
{$DEFINE CHM_SEARCH}
|
||||
|
||||
|
@ -76,11 +76,6 @@ type
|
||||
TWinControlClass = class of TWinControl;
|
||||
TControlClass = class of TControl;
|
||||
|
||||
{$if (FPC_VERSION <= 2) and (FPC_RELEASE <= 4) and (FPC_PATCH < 2)}
|
||||
TDate = type TDateTime;
|
||||
TTime = type TDateTime;
|
||||
{$endif}
|
||||
|
||||
// ToDo: move this to a message definition unit
|
||||
TCMMouseWheel = record
|
||||
MSg: Cardinal;
|
||||
|
@ -67,9 +67,6 @@ Type
|
||||
protected
|
||||
// Testing Events
|
||||
procedure ActiveChanged; override;
|
||||
{$IF ((FPC_VERSION = 2) and (FPC_RELEASE = 4) and (FPC_PATCH = 2))}
|
||||
procedure DataSetChanged; override;
|
||||
{$ENDIF}
|
||||
procedure EditingChanged; override;
|
||||
procedure LayoutChanged; override;
|
||||
procedure RecordChanged(aField: TField); override;
|
||||
@ -1446,20 +1443,6 @@ begin
|
||||
FOnActiveChange(Self);
|
||||
end;
|
||||
|
||||
{$IF ((FPC_VERSION = 2) and (FPC_RELEASE = 4) and (FPC_PATCH = 2))}
|
||||
{
|
||||
This is not necessary since TDataLink.DatasetChanged calls RecordChanged
|
||||
Keep for now as a workaround to fpc bug 16428 (LayoutChanged not being called)
|
||||
The bug is present in fpc 242 (the last LCL supported version) but fixed in fpc 244 and up
|
||||
}
|
||||
procedure TFieldDataLink.DataSetChanged;
|
||||
begin
|
||||
ValidateField;
|
||||
reset;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
|
||||
{ Delphi Help ->
|
||||
Changing the field binding can change the validity of the CanModify
|
||||
property, since individual field components can disallow edits. If
|
||||
|
Loading…
Reference in New Issue
Block a user