MCPcopy Create free account
hub / github.com/c3d/tao3D / attachToolWindowToButton

Method attachToolWindowToButton

tao/git_toolbar.cpp:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99
100
101void 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
114void GitToolBar::setRepository(Repository *repo)

Callers

nothing calls this directly

Calls 1

createVisibleMethod · 0.80

Tested by

no test coverage detected