Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KDeclarative
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 5
    • Merge requests 5
  • 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
  • FrameworksFrameworks
  • KDeclarative
  • Merge requests
  • !25

Inherit from AbstractKCM and use consistent margins

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Nate Graham requested to merge ngraham/kdeclarative:kcm-component-consistificationism into master Oct 04, 2020
  • Overview 12
  • Commits 2
  • Pipelines 0
  • Changes 4

Currently, margins, header, and footer logic is duplicated with slight differences across AbstractKCM, SimpleKCM, ScrollViewKCM, and GridViewKCM.

This causes the different QML-based KCMs to have slightly different margins in system settings and amounts to unnecessary code fragility.

This commit improves the situation by doing the following:

  1. ScrollViewKCM and GridViewKCM now inherit from AbstractKCM.
  2. AbstractKCM now uses the margin logic from GridViewKCM.
  3. Hardcoded size hacks for margins are removed because they didn't succeed in bringing about consistency with widget KCMs, and removing them in fact makes things better.
  4. SimpleKCM is switched to using the same margin calculation as AbstractKCM because it cannot inherit from AbstractKCM.

Visual changes are extremely minimal (a pixel more or less here or there) and result in all of these KCM components having consistent margins.

cc @mart @davidedmundson @iasensio

Edited Oct 05, 2020 by Nate Graham
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: kcm-component-consistificationism