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
69b50675
Commit
69b50675
authored
7 years ago
by
Pospelov, Gennady
Browse files
Options
Downloads
Patches
Plain Diff
QTreeView styling: open/close symbols for tree branch restored.
parent
a069f90c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/coregui/Views/CommonWidgets/ModelTreeView.cpp
+11
-1
11 additions, 1 deletion
GUI/coregui/Views/CommonWidgets/ModelTreeView.cpp
with
11 additions
and
1 deletion
GUI/coregui/Views/CommonWidgets/ModelTreeView.cpp
+
11
−
1
View file @
69b50675
...
...
@@ -44,7 +44,17 @@ ModelTreeView::ModelTreeView(QWidget* parent, SessionModel* model)
" border-right: 1px solid #c7c8c9;}"
"QTreeView::branch {border-bottom: 1px solid #c7c8c9;}"
;
// background of selected rows
// styling of branch to restore open/closed signs eliminated by previous styling
styleSheet
+=
"QTreeView::branch:has-children:!has-siblings:closed,"
"QTreeView::branch:closed:has-children:has-siblings {"
"border-image: none;"
"image: url(:/images/treeview-branch-closed.png);}"
"QTreeView::branch:open:has-children:!has-siblings,"
"QTreeView::branch:open:has-children:has-siblings {"
"border-image: none;image: url(:/images/treeview-branch-open.png);"
"}"
;
// background of selected rows restored
styleSheet
+=
"QTreeView::item:selected{"
" background:#3daee9;}"
;
...
...
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