Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KPhotoAlbum
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Graphics
KPhotoAlbum
Commits
4ec9ae53
Commit
4ec9ae53
authored
Jul 17, 2020
by
Johannes Zarl-Zierl
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add indicator icon for read-only ListSelects.
parent
cacb0dc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
AnnotationDialog/ListSelect.cpp
AnnotationDialog/ListSelect.cpp
+7
-0
AnnotationDialog/ListSelect.h
AnnotationDialog/ListSelect.h
+1
-0
No files found.
AnnotationDialog/ListSelect.cpp
View file @
4ec9ae53
...
...
@@ -83,6 +83,11 @@ AnnotationDialog::ListSelect::ListSelect(const DB::CategoryPtr &category, QWidge
QHBoxLayout
*
lay2
=
new
QHBoxLayout
;
layout
->
addLayout
(
lay2
);
m_roIndicator
=
new
QLabel
;
m_roIndicator
->
setPixmap
(
smallIcon
(
QString
::
fromLatin1
(
"emblem-readonly"
)));
m_roIndicator
->
setVisible
(
m_editMode
==
ListSelectEditMode
::
ReadOnly
);
lay2
->
addWidget
(
m_roIndicator
);
m_or
=
new
QRadioButton
(
i18n
(
"or"
),
this
);
m_and
=
new
QRadioButton
(
i18n
(
"and"
),
this
);
lay2
->
addWidget
(
m_or
);
...
...
@@ -714,6 +719,8 @@ void ListSelect::updateLineEditMode()
m_lineEdit
->
setMode
(
SearchMode
);
else
m_lineEdit
->
setMode
(
m_mode
);
m_roIndicator
->
setVisible
(
computedEditMode
()
==
ListSelectEditMode
::
ReadOnly
);
}
void
AnnotationDialog
::
ListSelect
::
updateSelectionCount
()
...
...
AnnotationDialog/ListSelect.h
View file @
4ec9ae53
...
...
@@ -153,6 +153,7 @@ private: // Variables
QRadioButton
*
m_and
;
UsageMode
m_mode
;
ListSelectEditMode
m_editMode
=
ListSelectEditMode
::
Editable
;
QLabel
*
m_roIndicator
;
QToolButton
*
m_alphaTreeSort
;
QToolButton
*
m_alphaFlatSort
;
QToolButton
*
m_dateSort
;
...
...
Johannes Zarl-Zierl
@johanneszarl
mentioned in commit
956bdeb0
·
Jul 26, 2020
mentioned in commit
956bdeb0
mentioned in commit 956bdeb0b1c21b1ae8bfdadf4bff3258a7c52ed0
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment