----------------------------------------------------------------------------
| 181 | } |
| 182 | //---------------------------------------------------------------------------- |
| 183 | void pqPythonMacroSupervisor::addWidgetForMacros(QWidget* widget, int actionType) |
| 184 | { |
| 185 | QList<QPointer<QWidget>>* widgetContainers = nullptr; |
| 186 | switch (actionType) |
| 187 | { |
| 188 | case 0: // run |
| 189 | widgetContainers = &this->Internal->RunWidgetContainers; |
| 190 | break; |
| 191 | case 1: // edit |
| 192 | widgetContainers = &this->Internal->EditWidgetContainers; |
| 193 | break; |
| 194 | case 2: // delete |
| 195 | widgetContainers = &this->Internal->DeleteWidgetContainers; |
| 196 | break; |
| 197 | } |
| 198 | |
| 199 | if (widget && !widgetContainers->contains(widget)) |
| 200 | { |
| 201 | addPlaceHolderIfNeeded(widget); |
| 202 | widgetContainers->append(widget); |
| 203 | } |
| 204 | this->resetActions(); |
| 205 | } |
| 206 | //---------------------------------------------------------------------------- |
| 207 | QMap<QString, QString> pqPythonMacroSupervisor::getStoredMacros() |
| 208 | { |
no test coverage detected