| 136 | } |
| 137 | |
| 138 | void SwitchToBuddyPlugin::switchHeaderSource() |
| 139 | { |
| 140 | qCDebug(PLUGIN_SWITCHTOBUDDY) << "switching header/source"; |
| 141 | |
| 142 | auto doc = ICore::self()->documentController()->activeDocument(); |
| 143 | if (!doc) |
| 144 | return; |
| 145 | |
| 146 | QString buddyUrl = findSwitchCandidate(doc->url()); |
| 147 | if (!buddyUrl.isEmpty()) |
| 148 | switchToBuddy(buddyUrl); |
| 149 | } |
| 150 | |
| 151 | void SwitchToBuddyPlugin::switchToBuddy(const QString& url) |
| 152 | { |
nothing calls this directly
no test coverage detected