Deduplicate code for showing inline messages

Authored by rkflx on Jun 2 2018, 5:46 PM.

Description

Deduplicate code for showing inline messages

Summary:
By adding showInlineMessage(), we can avoid duplicating code to
control showing and hiding of mMessageWidget. This also ensures
consistent use of icons and hiding timeouts.

In addition, it should be easier to add new slots for new functionality
which also needs to show inline messages, e.g. D13221.

We also introduce a way to disable automatic hiding of the inline
message, to be used in a later patch.

Depends on D13245

Test Plan:
Copy to Clipboard and ExportShareImgur should show
inline messages as before.

Reviewers: Spectacle, ngraham

Reviewed By: Spectacle, ngraham

Subscribers: broulik, ngraham

Differential Revision: https://phabricator.kde.org/D13247

Details

Committed
rkflxJun 8 2018, 12:49 PM
Reviewer
Spectacle
Differential Revision
D13247: Deduplicate code for showing inline messages
Parents
R166:9a71f5bbd454: Deduplicate code for quitting
Branches
Unknown
Tags
Unknown