GUI: clarify click/shift+click result table choice by using radiobuttons

This commit is contained in:
Jean-Francois Dockes 2021-03-17 16:59:20 +01:00
parent 52448ddfb6
commit f128909d1e
2 changed files with 29 additions and 13 deletions

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>700</width> <width>731</width>
<height>760</height> <height>762</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -259,14 +259,29 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="restabShowTxtNoShiftCB"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="text"> <item>
<string>Show text contents when clicking result table row (else use Shift+click).</string> <widget class="QLabel" name="restabShowTxtLBL">
</property> <property name="text">
<property name="checked"> <string>To display document text instead of metadata in result table detail area, use:</string>
<bool>false</bool> </property>
</property> </widget>
</widget> </item>
<item>
<widget class="QRadioButton" name="restabShowTxtNoShiftRB">
<property name="text">
<string>left mouse click</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="restabShowTxtShiftRB">
<property name="text">
<string>Shift+click</string>
</property>
</widget>
</item>
</layout>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="noResTableHeaderCB"> <widget class="QCheckBox" name="noResTableHeaderCB">
@ -573,7 +588,7 @@
<item> <item>
<widget class="QPushButton" name="stylesheetPB"> <widget class="QPushButton" name="stylesheetPB">
<property name="toolTip"> <property name="toolTip">
<string>Opens a dialog to select the style sheet file</string> <string>Opens a dialog to select the style sheet file.&lt;br&gt;Look at /usr/share/recoll/examples/recoll[-dark].qss for an example.</string>
</property> </property>
<property name="text"> <property name="text">
<string>Choose QSS File</string> <string>Choose QSS File</string>

View File

@ -157,7 +157,8 @@ void UIPrefsDialog::setFromPrefs()
noStatusBarCB->setChecked(prefs.noStatusBar); noStatusBarCB->setChecked(prefs.noStatusBar);
noMenuBarCB->setChecked(prefs.noMenuBar); noMenuBarCB->setChecked(prefs.noMenuBar);
noSSTypCMBCB->setChecked(prefs.noSSTypCMB); noSSTypCMBCB->setChecked(prefs.noSSTypCMB);
restabShowTxtNoShiftCB->setChecked(prefs.resTableTextNoShift); restabShowTxtNoShiftRB->setChecked(prefs.resTableTextNoShift);
restabShowTxtShiftRB->setChecked(!prefs.resTableTextNoShift);
noResTableHeaderCB->setChecked(prefs.noResTableHeader); noResTableHeaderCB->setChecked(prefs.noResTableHeader);
showResTableVHeaderCB->setChecked(prefs.showResTableVHeader); showResTableVHeaderCB->setChecked(prefs.showResTableVHeader);
noRowJumpShortcutsCB->setChecked(prefs.noResTableRowJumpSC); noRowJumpShortcutsCB->setChecked(prefs.noResTableRowJumpSC);
@ -440,7 +441,7 @@ void UIPrefsDialog::accept()
prefs.noMenuBar = noMenuBarCB->isChecked(); prefs.noMenuBar = noMenuBarCB->isChecked();
m_mainWindow->setupMenus(); m_mainWindow->setupMenus();
prefs.noSSTypCMB = noSSTypCMBCB->isChecked(); prefs.noSSTypCMB = noSSTypCMBCB->isChecked();
prefs.resTableTextNoShift = restabShowTxtNoShiftCB->isChecked(); prefs.resTableTextNoShift = restabShowTxtNoShiftRB->isChecked();
prefs.noResTableHeader = noResTableHeaderCB->isChecked(); prefs.noResTableHeader = noResTableHeaderCB->isChecked();
prefs.showResTableVHeader = showResTableVHeaderCB->isChecked(); prefs.showResTableVHeader = showResTableVHeaderCB->isChecked();
prefs.noResTableRowJumpSC = noRowJumpShortcutsCB->isChecked(); prefs.noResTableRowJumpSC = noRowJumpShortcutsCB->isChecked();