Improve tooltips

This commit is contained in:
Martchus 2016-12-01 23:02:49 +01:00
parent 733fe08890
commit afac9c3348
2 changed files with 13 additions and 1 deletions

View File

@ -253,6 +253,9 @@ the file reverting all unsaved changings.</string>
</property>
<item row="1" column="0">
<widget class="QCommandLinkButton" name="saveButton">
<property name="toolTip">
<string>Saves all entered values and reparses the file to verify</string>
</property>
<property name="text">
<string>Save</string>
</property>
@ -263,6 +266,9 @@ the file reverting all unsaved changings.</string>
</item>
<item row="1" column="2">
<widget class="QCommandLinkButton" name="deleteTagsButton">
<property name="toolTip">
<string>Deletes all tags from the file and reparses the file to verify</string>
</property>
<property name="text">
<string>Delete</string>
</property>
@ -273,6 +279,9 @@ the file reverting all unsaved changings.</string>
</item>
<item row="1" column="1">
<widget class="QCommandLinkButton" name="nextButton">
<property name="toolTip">
<string>Saves all entered values and on success opens the next file</string>
</property>
<property name="text">
<string>Open next file</string>
</property>
@ -283,6 +292,9 @@ the file reverting all unsaved changings.</string>
</item>
<item row="1" column="3">
<widget class="QCommandLinkButton" name="closeButton">
<property name="toolTip">
<string>Closes the file without saving changes</string>
</property>
<property name="text">
<string>Close</string>
</property>

View File

@ -828,7 +828,7 @@ IconButton *TagFieldEdit::setupRestoreButton()
if(!m_restoreButton) { // setup restore button
m_restoreButton = new IconButton(this);
m_restoreButton->setPixmap(/*QIcon::fromTheme(QStringLiteral("edit-undo"), */QIcon(QStringLiteral(":/qtutilities/icons/hicolor/16x16/actions/edit-menu.png")/*)*/).pixmap(16));
m_restoreButton->setToolTip(tr("restore"));
m_restoreButton->setToolTip(tr("Restore value as it is currently present in the file"));
connect(m_restoreButton, &IconButton::clicked, this, &TagFieldEdit::handleRestoreButtonClicked);
// ownership might be transfered to a child widget/layout
connect(m_restoreButton, &IconButton::destroyed, this, &TagFieldEdit::handleRestoreButtonDestroyed);