diff options
| author | Felix Ernst <[email protected]> | 2020-08-12 20:45:17 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-11-09 23:49:07 +0100 |
| commit | b6fc58c3c32b03f504a5f697b62c4834dc3f650a (patch) | |
| tree | cda0394689ba6001bc14b1895c2ef95a4baf2dcd /src/dolphinmainwindow.h | |
| parent | 00abc6d28031569de17e4888d8b21e6afbe0872f (diff) | |
Adress the first round of Angelaccio's review comments
- Split the viewContainers(bool includeInActive) into two methods
without parameters
- Prevent users from accidently hiding all Url Navigators by
preventing the dangerous action and then displaying a helpful
message instead
Unrelated to review comments: Remove a useless line of code
Diffstat (limited to 'src/dolphinmainwindow.h')
| -rw-r--r-- | src/dolphinmainwindow.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 529319e2a..251f50d8d 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -65,17 +65,19 @@ public: * having a split view setup, the nonactive view * is usually shown in darker colors. */ - DolphinViewContainer* activeViewContainer() const; + DolphinViewContainer *activeViewContainer() const; /** - * Returns view containers for all tabs - * @param includeInactive When true all view containers available in - * this window are returned. When false the - * view containers of split views that are not - * currently active are ignored. - * Default is true. + * Returns the active view containers of all tabs. + * @see activeViewContainer() + * Use viewContainers() to also include the inactive ones. */ - QVector<DolphinViewContainer*> viewContainers(bool includeInactive = true) const; + QVector<DolphinViewContainer *> activeViewContainers() const; + + /** + * Returns all view containers. + */ + QVector<DolphinViewContainer *> viewContainers() const; /** * Opens each directory in \p dirs in a separate tab. If \a splitView is set, |
