Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O Oxygen
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Plasma
  • Oxygen
  • Merge requests
  • !14

Merged
Created Oct 23, 2021 by Michail Vourlakos@mvourlakosDeveloper

fix paint for standalone buttons with dynamic size

  • Overview 2
  • Commits 1
  • Changes 1

m_iconSize for standalone buttons can be changed dynamically based on user or container preferences. Such an example could be the window buttons applet that is resizing its buttons based on panel thickness or when the applet is on the desktop and the user resizes it. Previous implementation was failing because even though m_iconSize was set as NULL for StandAlone buttons, on the first painting m_iconSize was set based on Button::geometry(). This of course was failing because the Button::geometry() could change afterwards and painting was not considering it to calculate m_iconSize again.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix_standalone_painting