MCPcopy Create free account
hub / github.com/KDE/okular / createWidget

Method createWidget

part/actionbar.cpp:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94QWidget *ActionBar::createWidget(QWidget *parent)
95{
96 QToolBar *parentToolbar = qobject_cast<QToolBar *>(parent);
97 if (!parentToolbar) {
98 return new QWidget();
99 }
100 ActionBarWidget *widget = new ActionBarWidget(parentToolbar);
101 widget->recreateButtons(m_actions);
102 return widget;
103}
104
105void ActionBar::addAction(QAction *action)
106{

Callers 2

testSetDefaultActionMethod · 0.45

Calls 1

recreateButtonsMethod · 0.80

Tested by 2

testSetDefaultActionMethod · 0.36