MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / setChatButtonMenu

Method setChatButtonMenu

UpdateStatusWidget.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void UpdateStatusWidget::setChatButtonMenu(QMenu *menu)
64{
65 m_chatButton->setMenu(menu);
66 m_chatButton->setPopupMode(QToolButton::DelayedPopup);
67 m_chatButton->setContextMenuPolicy(Qt::CustomContextMenu);
68 connect(m_chatButton, &QWidget::customContextMenuRequested, m_chatButton, [this, menu](const QPoint &pos) {
69 menu->exec(m_chatButton->mapToGlobal(pos));
70 });
71}
72
73QPushButton *UpdateStatusWidget::updateButton() const
74{

Callers 1

initializeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected