Commit 99e8d610 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

No arrows for toolbutton with menu please

parent cd940be9
......@@ -31,12 +31,14 @@ GitWidget::GitWidget(KateProject *project, QWidget *parent, KTextEditor::MainWin
, m_project(project)
, m_mainWin(mainWindow)
{
m_menuBtn = new QToolButton(this);
m_commitBtn = new QPushButton(this);
m_treeView = new QTreeView(this);
buildMenu();
m_menuBtn = new QToolButton(this);
m_menuBtn->setMenu(m_gitMenu);
m_menuBtn->setArrowType(Qt::NoArrow);
m_menuBtn->setStyleSheet(QStringLiteral("QToolButton::menu-indicator{ image: none; }"));
connect(m_menuBtn, &QToolButton::clicked, this, [this](bool) {
m_menuBtn->showMenu();
});
......
......@@ -19,6 +19,7 @@ class KateProjectPluginView;
class BranchesDialog;
class QStackedWidget;
class GitWidget;
class QToolButton;
/**
* Class representing a view of a project.
......
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