Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
6df2abd9
Commit
6df2abd9
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ListItemDelegate + comment on Qt bug
parent
3af0d8db
No related branches found
No related tags found
1 merge request
!2387
unify code for list views
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/View/Widget/ListItemDelegate.h
+7
-0
7 additions, 0 deletions
GUI/View/Widget/ListItemDelegate.h
with
7 additions
and
0 deletions
GUI/View/Widget/ListItemDelegate.h
+
7
−
0
View file @
6df2abd9
...
@@ -18,6 +18,13 @@
...
@@ -18,6 +18,13 @@
#include
<QStyledItemDelegate>
#include
<QStyledItemDelegate>
//! Styling for items in list.
//! Styling for items in list.
//!
//! We need this not least because a long-standing bug in Qt prevents us from
//! using the style sheet to fine-tune the item layout.
//! Specifically, in a style sheet stance like QAbstractItemView::item,
//! the padding-left property is ignored unless there is also a border property.
//! However, as soon as there is a border, the style sheet takes control over colors
//! so that the BackgroundRole in the model's data() function is ignored.
class
ListItemDelegate
:
public
QStyledItemDelegate
{
class
ListItemDelegate
:
public
QStyledItemDelegate
{
Q_OBJECT
Q_OBJECT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment