Commit 07892c4f authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

avoid auto-accel for the branch buttons, steal proper accels from other places

parent 24fd571b
Pipeline #141734 passed with stage
in 4 minutes and 4 seconds
......@@ -18,6 +18,7 @@
#include <KTextEditor/MainWindow>
#include <KTextEditor/View>
#include <KAcceleratorManager>
#include <KActionCollection>
#include <KLineEdit>
#include <KLocalizedString>
......@@ -51,6 +52,7 @@ KateProjectView::KateProjectView(KateProjectPluginView *pluginView, KateProject
m_branchBtn->setAutoRaise(true);
m_branchBtn->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
m_branchBtn->setSizePolicy(QSizePolicy::Minimum, m_branchBtn->sizePolicy().verticalPolicy());
KAcceleratorManager::setNoAccel(m_branchBtn);
// let tree get focus for keyboard selection of file to open
setFocusProxy(m_treeView);
......
......@@ -11,6 +11,7 @@
#include <KTextEditor/Document>
#include <KTextEditor/View>
#include <KAcceleratorManager>
#include <KActionCollection>
#include <KColorScheme>
#include <KLocalizedString>
......@@ -829,6 +830,7 @@ public:
{
m_currBranchBtn->setAutoRaise(true);
m_currBranchBtn->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
KAcceleratorManager::setNoAccel(m_currBranchBtn);
QTimer::singleShot(500, this, [this] {
auto *mw = m_urlBar->viewManager()->mainWindow();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment