mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Compare commits
1 Commits
copilot/fi
...
fix/underl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
858f8150ad |
@@ -5631,10 +5631,6 @@ Are you sure you want to continue with this file?</source>
|
|||||||
<source>&Tools</source>
|
<source>&Tools</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>View</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Theme</source>
|
<source>Theme</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
@@ -6300,6 +6296,10 @@ Expect some bugs and minor issues, this version is meant for testing purposes.</
|
|||||||
<source>E&xpire Entry…</source>
|
<source>E&xpire Entry…</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>&View</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Clear SSH Agent</source>
|
<source>Clear SSH Agent</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
|
|||||||
@@ -377,7 +377,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuView">
|
<widget class="QMenu" name="menuView">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>View</string>
|
<string>&View</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuTheme">
|
<widget class="QMenu" name="menuTheme">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
#include <QListView>
|
#include <QListView>
|
||||||
|
#include <QMenuBar>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QPainterPath>
|
#include <QPainterPath>
|
||||||
#include <QPoint>
|
#include <QPoint>
|
||||||
@@ -4694,7 +4695,24 @@ int BaseStyle::styleHint(StyleHint hint,
|
|||||||
case SH_WindowFrame_Mask:
|
case SH_WindowFrame_Mask:
|
||||||
return 0;
|
return 0;
|
||||||
case SH_UnderlineShortcut: {
|
case SH_UnderlineShortcut: {
|
||||||
return false;
|
#if defined(Q_OS_WIN) or defined(Q_OS_LINUX)
|
||||||
|
// Only show underline shortcuts if the user focused with ALT (Win/Linux only)
|
||||||
|
auto menu = qobject_cast<const QMenu*>(widget);
|
||||||
|
if (menu) {
|
||||||
|
auto p = menu->parentWidget();
|
||||||
|
while (p) {
|
||||||
|
auto mb = qobject_cast<QMenuBar*>(p);
|
||||||
|
if (mb && mb->hasFocus()) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
p = p->parentWidget();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
auto mb = qobject_cast<const QMenuBar*>(widget);
|
||||||
|
return (mb && mb->hasFocus()) ? 1 : 0;
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
case SH_Widget_Animate:
|
case SH_Widget_Animate:
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user