Konfigurator: Ease management of tooltips and “What's This” texts by changing create* functions. Add a tooltip also useful as a test item
ClosedPublic

Authored by asensi on Fri, May 8, 9:13 PM.

Details

Summary

Add inside some create* methods the setWhatsThis() and setToolTip()
callings. That way the management of tooltips and “What's This” help is
facilitated.

Note: The parameter const QString &toolTip was already used in:

KonfiguratorCheckBox *createCheckBox(QString configGroup, QString name, bool defaultValue,
                        QString text, QWidget *parent = nullptr, bool restart = false,
                        const QString &toolTip = QString(), int page = FIRST_PAGE);

A tooltip (related to Krusader lister) was added, with the text: "If a text file
is bigger than this size then lister will be used"
. That tooltip is also useful
as an example and in order to perform tests with it.

GUI: A new translation string was added, which is visible on a tooltip and a “What's This” help.

Test Plan

Diff Detail

Repository
R167 Krusader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
asensi requested review of this revision.Fri, May 8, 9:13 PM
asensi created this revision.
asensi edited the summary of this revision. (Show Details)
yurchor accepted this revision as: yurchor.Sat, May 9, 6:33 AM
yurchor added a subscriber: yurchor.

Works for me. Thanks.

This revision is now accepted and ready to land.Sat, May 9, 6:33 AM

Compiled and tested, no problems found.

gengisdave accepted this revision.Sat, May 9, 3:37 PM
This revision was automatically updated to reflect the committed changes.