* @return the main window UI config group for a given area * * @note Each area has its own separate main window UI config group. This allows to customize * each area independently from others. For example, each area can have unique sets * and locations of visible toolbars, enabled tool views and visible tool views. */
| 38 | * and locations of visible toolbars, enabled tool views and visible tool views. |
| 39 | */ |
| 40 | [[nodiscard]] QString configGroupName(const Sublime::Area* area) |
| 41 | { |
| 42 | auto groupName = QStringLiteral("MainWindow"); |
| 43 | if (area) { |
| 44 | groupName += QLatin1Char('_') + area->objectName(); |
| 45 | } |
| 46 | return groupName; |
| 47 | } |
| 48 | |
| 49 | void optionallyFocusViewWidget(const Sublime::View* view, bool focus) |
| 50 | { |
no outgoing calls
no test coverage detected