commit cab46ff9d1ea3bd801050eb4834f2e16a8ad3152
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Sep 29 09:18:26 2018 +0200
GuiCitation: Add some tooltips for the sake of keyboard users
Addresses #11317
---
src/frontends/qt4/GuiCitation.cpp | 3 ++-
src/frontends/qt4/ui/CitationUi.ui | 12 +++++++++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt4/GuiCitation.cpp
b/src/frontends/qt4/GuiCitation.cpp
index d9d45d1..ccd7425 100644
--- a/src/frontends/qt4/GuiCitation.cpp
+++ b/src/frontends/qt4/GuiCitation.cpp
@@ -579,9 +579,10 @@ void GuiCitation::regexChanged()
void GuiCitation::updateFilterHint()
{
- QString const hint = instant_->isChecked() ?
+ QString hint = instant_->isChecked() ?
qt_("Enter string to filter the list of available citations") :
qt_("Enter string to filter the list of available citations and
press <Enter>");
+ hint += qt_("\nThe down arrow key will get you into the list of
filtered citations.");
filter_->setToolTip(hint);
}
diff --git a/src/frontends/qt4/ui/CitationUi.ui
b/src/frontends/qt4/ui/CitationUi.ui
index 9def5a3..a329341 100644
--- a/src/frontends/qt4/ui/CitationUi.ui
+++ b/src/frontends/qt4/ui/CitationUi.ui
@@ -122,6 +122,11 @@
</item>
<item>
<widget class="QListView" name="availableLV">
+ <property name="toolTip">
+ <string>All references available for citing.
+To select one, hit Add, press Enter or double-click.
+Hit Ctrl-Enter to select and close the dialog.</string>
+ </property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
@@ -234,7 +239,12 @@
</widget>
</item>
<item>
- <widget class="QTableView" name="selectedLV"/>
+ <widget class="QTableView" name="selectedLV">
+ <property name="toolTip">
+ <string>Ordered list of all cited references.
+You can reorder, add and remove references with the buttons on the
left.</string>
+ </property>
+ </widget>
</item>
</layout>
</item>