Added missing Icons to Places Panel code from KIO
AbandonedPublic

Authored by alexde on Oct 8 2018, 6:00 PM.

Details

Reviewers
ngraham
Group Reviewers
VDG
Frameworks
Summary

The items "Hide", "Hide Entry" and "Show All Entries" of the places panel did not have icons.
Therefor I replicated the changes for the KIO code, which I already submitted for Dolphin.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
alexde created this revision.Oct 8 2018, 6:00 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptOct 8 2018, 6:00 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
alexde requested review of this revision.Oct 8 2018, 6:00 PM
ngraham accepted this revision.Oct 8 2018, 7:22 PM
ngraham added a reviewer: Frameworks.
This revision is now accepted and ready to land.Oct 8 2018, 7:24 PM
ngraham requested changes to this revision.Oct 9 2018, 9:27 PM

This doesn't apply cleanly:

Checking patch src/filewidgets/kfileplacesview.cpp...
Hunk #1 succeeded at 745 (offset 3 lines).
error: while searching for:
            add = menu.addAction(QIcon::fromTheme(QStringLiteral("document-new")), i18n("Add Entry..."));
        }

        hide = menu.addAction(i18n("&Hide Entry '%1'", label));
        hide->setCheckable(true);
        hide->setChecked(placesModel->isHidden(index));
        // if a parent is hidden no interaction should be possible with children, show it first to do so

error: patch failed: src/filewidgets/kfileplacesview.cpp:778
Hunk #3 succeeded at 802 (offset 12 lines).
Applying patch src/filewidgets/kfileplacesview.cpp with 1 reject...
Hunk #1 applied cleanly.
Rejected hunk #2.
Hunk #3 applied cleanly.

 Patch Failed! 
Usage Exception: Unable to apply patch!

Can you rebase the patch on master?

Also, you might want to set up arc, which makes it much simpler and faster to submit patches, and easier for me too. https://community.kde.org/Infrastructure/Phabricator#Using_Arcanist_to_post_patches

This revision now requires changes to proceed.Oct 9 2018, 9:27 PM
alexde added a comment.Oct 9 2018, 9:58 PM

Also, you might want to set up arc, which makes it much simpler and faster to submit patches, and easier for me too.

I tried it again, but I forgot to add the "Differential Revision" and did not expect arc diff to automatically upload the diff. That is why you will find the new revision here: https://phabricator.kde.org/D16091

Sorry for the inconveniences I caused.

No problem at all, just Abandon this one (available via the Add Action... button on the bottom of the page.

alexde abandoned this revision.Oct 9 2018, 10:00 PM