MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / addNavButton

Method addNavButton

src/plugins/core/gui/navigationbar.cpp:83–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void NavigationBar::addNavButton(DToolButton *btn, itemPositioin pos, quint8 priority)
84{
85 if (!btn)
86 return;
87
88 btn->setFixedSize(QSize(36, 36));
89 btn->setIconSize(QSize(22, 22));
90
91 if (pos == top)
92 topBtnsByPriority[priority].append(btn);
93 else
94 bottomBtnsByPriority[priority].append(btn);
95
96 updateUi();
97}
98
99DToolButton *NavigationBar::createToolBtn(QAction *action, bool isNavigationItem)
100{

Callers 2

initDocksManagerMethod · 0.80
checkDocksManagerMethod · 0.80

Calls 2

setFixedSizeMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected