Home
Phabricator
Search
Log In
Paste
P220
D13010 review
Active
Public
Actions
Authored by
rkflx
on May 21 2018, 9:08 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
diff --git a/lib/thumbnailview/previewitemdelegate.cpp b/lib/thumbnailview/previewitemdelegate.cpp
index ec72940b..7f2e4290 100644
--- a/lib/thumbnailview/previewitemdelegate.cpp
+++ b/lib/thumbnailview/previewitemdelegate.cpp
@@ -540,6 +540,8 @@ struct PreviewItemDelegatePrivate
void updateToggleSelectionButton()
{
+ static int i;
+ qDebug() << "update from previewitemdelegate" << i++;
mToggleSelectionButton->setIcon(QIcon::fromTheme(
mView->selectionModel()->isSelected(mIndexUnderCursor) ? "list-remove" : "list-add"
));
diff --git a/lib/thumbnailview/thumbnailbarview.cpp b/lib/thumbnailview/thumbnailbarview.cpp
index 260c1bd8..0a72c725 100644
--- a/lib/thumbnailview/thumbnailbarview.cpp
+++ b/lib/thumbnailview/thumbnailbarview.cpp
@@ -140,6 +140,8 @@ struct ThumbnailBarItemDelegatePrivate
void updateToggleSelectionButton()
{
+ static int i;
+ qDebug() << "update from thumbnailbarview" << i++;
bool isSelected = mView->selectionModel()->isSelected(mIndexUnderCursor);
mToggleSelectionButton->setIcon(QIcon::fromTheme(isSelected ? "list-remove" : "list-add"));
}
rkflx
created this paste.
May 21 2018, 9:08 PM
rkflx
created this object in space
S1 KDE Community
.
rkflx
mentioned this in
D13010: Update thumbnail de-/select hover button on selection change
.
Log In to Comment