Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Johannes Zarl-Zierl
KPhotoAlbum
Commits
4ec9ae53
Commit
4ec9ae53
authored
Jul 17, 2020
by
Johannes Zarl-Zierl
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
;
...
...
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