Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,083
    • Issues 2,083
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #29343
Closed
Open
Created Jan 05, 2016 by FPC Admin account@fpc_adminOwner

TFloatSpinEdit on Linux QT does not fire OnChange when Text is changed (unless Value is changed by it)

Original Reporter info from Mantis: Bart @flyingsheep
  • Reporter name: Bart Broersma

Description:

On Windows and GTK2 TFloatSpinEdit fires OnChange whenevr the Text is changed.
This is as it should be, since the control derives from TCustomEdit.
On QT however, OnChange is only fired when altering the Text also alters the Value:
Change text from 50.0 to 50: no OnChange fires.
Change text from 50 yo 5: OnChange fires.

Steps to reproduce:

Unzip attached sample project.
Set buildmode to QT
Buid and run

Set cursor at end of text, press BackSpace until there is only one digit ("5") left.
Expected behaviour:
OnChange: Value = 50.00, Text = "50.0"
OnChange: Value = 50.00, Text = "50."
OnChange: Value = 50.00, Text = "50"
OnChange: Value = 5.00, Text = "5"

Observed behaviour:
Only one OnChange is fired:
OnChange: Value = 5.00, Text = "5"

Mantis conversion info:

  • Mantis ID: 29343
  • OS: Linux
  • OS Build: Fedora Core 18
  • Platform: i386
  • Version: 1.7 (SVN)
  • Fixed in version: 1.6
  • Fixed in revision: r51302 (#07d5c8be)
  • Target version: 1.6
Assignee
Assign to
Time tracking