mirror of
https://github.com/zealdocs/zeal.git
synced 2024-07-14 17:40:31 +03:00
fix(ui): add tool tip when global shortcuts are not supported
This commit is contained in:
parent
c507362889
commit
1d92d3c737
@ -79,7 +79,10 @@ SettingsDialog::SettingsDialog(QWidget *parent)
|
||||
setTabOrder(ui->fontSizeComboBox, ui->serifFontComboBox);
|
||||
|
||||
// Disable global shortcut settings if not supported.
|
||||
ui->globalHotKeyGroupBox->setEnabled(QxtGlobalShortcut::isSupported());
|
||||
if (!QxtGlobalShortcut::isSupported()) {
|
||||
ui->globalHotKeyGroupBox->setEnabled(false);
|
||||
ui->globalHotKeyGroupBox->setToolTip(tr("Global shortcuts are not supported on the current platform."));
|
||||
}
|
||||
|
||||
QWebEngineSettings *webSettings = QWebEngineProfile::defaultProfile()->settings();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user