Fix password preview font, add some documentation (#3425)

* Fix #3376. Set font for password preview to Font::fixedFont()
* Add a menu entry opening the shortcuts documentation in the browser
* Fixed duplicate item in CLI documentation
This commit is contained in:
Soham Gumaste 2019-08-31 08:25:02 +05:30 committed by Jonathan White
parent eb1882453f
commit 018e9f30be
6 changed files with 21 additions and 2 deletions

View File

@ -22,7 +22,7 @@ so please check out your distribution's package list to see if KeePassXC is avai
- YubiKey challenge-response support
- TOTP generation
- CSV import
- Command line interface
- A [Command Line Interface (keepassxc-cli)](./src/cli/keepassxc-cli.1)
- DEP and ASLR hardening
- Stand-alone password and passphrase generator
- Password strength meter

View File

@ -28,6 +28,7 @@ Toggle Passwords Hidden | Ctrl + Shift + C
Toggle Usernames Hidden | Ctrl + Shift + B
Focus Search | Ctrl + F
Clear Search | ESC
Show Keyboard Shortcuts | Ctrl + /

View File

@ -50,6 +50,7 @@ EntryPreviewWidget::EntryPreviewWidget(QWidget* parent)
// Entry
m_ui->entryTotpButton->setIcon(filePath()->icon("actions", "chronometer"));
m_ui->entryCloseButton->setIcon(filePath()->icon("actions", "dialog-close"));
m_ui->entryPasswordLabel->setFont(Font::fixedFont());
m_ui->togglePasswordButton->setIcon(filePath()->onOffIcon("actions", "password-show"));
m_ui->toggleEntryNotesButton->setIcon(filePath()->onOffIcon("actions", "password-show"));
m_ui->toggleGroupNotesButton->setIcon(filePath()->onOffIcon("actions", "password-show"));

View File

@ -407,6 +407,7 @@ MainWindow::MainWindow()
connect(m_ui->actionGettingStarted, SIGNAL(triggered()), SLOT(openGettingStartedGuide()));
connect(m_ui->actionUserGuide, SIGNAL(triggered()), SLOT(openUserGuide()));
connect(m_ui->actionOnlineHelp, SIGNAL(triggered()), SLOT(openOnlineHelp()));
connect(m_ui->actionKeyboardShortcuts, SIGNAL(triggered()), SLOT(openKeyboardShortcuts()));
#ifdef Q_OS_MACOS
setUnifiedTitleAndToolBarOnMac(true);
@ -814,6 +815,12 @@ void MainWindow::openOnlineHelp()
{
customOpenUrl("https://keepassxc.org/docs/");
}
void MainWindow::openKeyboardShortcuts()
{
customOpenUrl("https://github.com/keepassxreboot/keepassxc/blob/develop/docs/KEYBINDS.md");
}
void MainWindow::switchToDatabases()
{
if (m_ui->tabWidget->currentIndex() == -1) {

View File

@ -94,6 +94,7 @@ private slots:
void openGettingStartedGuide();
void openUserGuide();
void openOnlineHelp();
void openKeyboardShortcuts();
void switchToDatabases();
void switchToSettings(bool enabled);
void switchToPasswordGen(bool enabled);

View File

@ -195,7 +195,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>21</height>
<height>20</height>
</rect>
</property>
<property name="focusPolicy">
@ -252,6 +252,7 @@
<addaction name="separator"/>
<addaction name="actionGettingStarted"/>
<addaction name="actionUserGuide"/>
<addaction name="actionKeyboardShortcuts"/>
<addaction name="actionOnlineHelp"/>
<addaction name="separator"/>
<addaction name="actionCheckForUpdates"/>
@ -759,6 +760,14 @@
<string>Open User Guide PDF</string>
</property>
</action>
<action name="actionKeyboardShortcuts">
<property name="text">
<string>&amp;Keyboard Shortcuts</string>
</property>
<property name="shortcut">
<string>Ctrl+/</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>