| 81 | } |
| 82 | |
| 83 | void 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 | |
| 99 | DToolButton *NavigationBar::createToolBtn(QAction *action, bool isNavigationItem) |
| 100 | { |
no test coverage detected