MCPcopy Create free account
hub / github.com/KDE/labplot / AddMenuManager

Method AddMenuManager

src/frontend/spreadsheet/SearchReplaceWidget.cpp:1455–1465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1453
1454public:
1455 AddMenuManager(QMenu* parent, int expectedItemCount)
1456 : m_insertBefore(QVector<QString>(expectedItemCount))
1457 , m_insertAfter(QVector<QString>(expectedItemCount)) {
1458 Q_ASSERT(parent != nullptr);
1459
1460 m_menu = parent->addMenu(i18n("Add..."));
1461 if (!m_menu)
1462 return;
1463
1464 m_menu->setIcon(QIcon::fromTheme(QStringLiteral("list-add")));
1465 }
1466
1467 void enableMenu(bool enabled) {
1468 if (m_menu == nullptr)

Callers

nothing calls this directly

Calls 1

setIconMethod · 0.45

Tested by

no test coverage detected