| 99 | |
| 100 | |
| 101 | void GitToolBar::attachToolWindowToButton(ToolWindow *w, QToolButton* b) |
| 102 | // ---------------------------------------------------------------------------- |
| 103 | // Associate a tool window with a toolbar button |
| 104 | // ---------------------------------------------------------------------------- |
| 105 | { |
| 106 | connect(b, SIGNAL(toggled(bool)), w, SLOT(setVisible(bool))); |
| 107 | connect(w, SIGNAL(visibilityChanged(bool)), b, SLOT(setChecked(bool))); |
| 108 | |
| 109 | if (w->createVisible()) |
| 110 | w->show(); |
| 111 | } |
| 112 | |
| 113 | |
| 114 | void GitToolBar::setRepository(Repository *repo) |
nothing calls this directly
no test coverage detected