2 * SPDX-FileCopyrightText: 2006-2009 Peter Penz <peter.penz19@gmail.com>
3 * SPDX-FileCopyrightText: 2006 Gregor Kališnik <gregor@podnapisi.net>
5 * SPDX-License-Identifier: GPL-2.0-or-later
11 #include "dolphintabwidget.h"
12 #include "dolphin_export.h"
13 #include "tooltips/tooltipmanager.h"
17 #include "config-dolphin.h"
18 #include <kio/fileundomanager.h>
19 #include <kparts/part.h>
28 typedef KIO::FileUndoManager::CommandType CommandType
;
30 class DolphinItemListView
;
32 class KItemListContainer
;
36 class VersionControlObserver
;
39 class QGraphicsSceneDragDropEvent
;
42 class QRegularExpression
;
45 * @short Represents a view for the directory content.
47 * View modes for icons, compact and details are supported. It's
55 class DOLPHIN_EXPORT DolphinView
: public QWidget
61 * Defines the view mode for a directory. The
62 * view mode is automatically updated if the directory itself
63 * defines a view mode (see class ViewProperties for details).
68 * The items are shown as icons with a name-label below.
73 * The icon, the name and the size of the items are
74 * shown per default as a table.
79 * The items are shown as icons with the name-label aligned
86 * @param url Specifies the content which should be shown.
87 * @param parent Parent widget of the view.
89 DolphinView(const QUrl
& url
, QWidget
* parent
);
91 ~DolphinView() override
;
94 * Returns the current active URL, where all actions are applied.
95 * The URL navigator is synchronized with this URL.
100 * If \a active is true, the view will marked as active. The active
101 * view is defined as view where all actions are applied to.
103 void setActive(bool active
);
104 bool isActive() const;
107 * Changes the view mode for the current directory to \a mode.
108 * If the view properties should be remembered for each directory
109 * (GeneralSettings::globalViewProps() returns false), then the
110 * changed view mode will be stored automatically.
112 void setViewMode(Mode mode
);
113 Mode
viewMode() const;
116 * Enables or disables a mode for quick and easy selection of items.
118 void setSelectionModeEnabled(bool enabled
);
119 bool selectionMode() const;
122 * Turns on the file preview for the all files of the current directory,
123 * if \a show is true.
124 * If the view properties should be remembered for each directory
125 * (GeneralSettings::globalViewProps() returns false), then the
126 * preview setting will be stored automatically.
128 void setPreviewsShown(bool show
);
129 bool previewsShown() const;
132 * Shows all hidden files of the current directory,
133 * if \a show is true.
134 * If the view properties should be remembered for each directory
135 * (GeneralSettings::globalViewProps() returns false), then the
136 * show hidden file setting will be stored automatically.
138 void setHiddenFilesShown(bool show
);
139 bool hiddenFilesShown() const;
142 * Turns on sorting by groups if \a enable is true.
144 void setGroupedSorting(bool grouped
);
145 bool groupedSorting() const;
148 * Returns the items of the view.
150 KFileItemList
items() const;
153 * @return The number of items. itemsCount() is faster in comparison
154 * to items().count().
156 int itemsCount() const;
159 * Returns the selected items. The list is empty if no item has been
162 KFileItemList
selectedItems() const;
165 * Returns the number of selected items (this is faster than
166 * invoking selectedItems().count()).
168 int selectedItemsCount() const;
171 * Marks the items indicated by \p urls to get selected after the
172 * directory DolphinView::url() has been loaded. Note that nothing
173 * gets selected if no loading of a directory has been triggered
174 * by DolphinView::setUrl() or DolphinView::reload().
176 void markUrlsAsSelected(const QList
<QUrl
> &urls
);
179 * Marks the item indicated by \p url to be scrolled to and as the
180 * current item after directory DolphinView::url() has been loaded.
182 void markUrlAsCurrent(const QUrl
& url
);
185 * All items that match the regular expression \a regexp will get selected
186 * if \a enabled is true and deselected if \a enabled is false.
188 * Note that to match the whole string the pattern should be anchored:
189 * - you can anchor the pattern with QRegularExpression::anchoredPattern()
190 * - if you use QRegularExpresssion::wildcardToRegularExpression(), don't use
191 * QRegularExpression::anchoredPattern() as the former already returns an
194 void selectItems(const QRegularExpression
®exp
, bool enabled
);
197 * Sets the zoom level to \a level. It is assured that the used
198 * level is adjusted to be inside the range ZoomLevelInfo::minimumLevel() and
199 * ZoomLevelInfo::maximumLevel().
201 void setZoomLevel(int level
);
202 int zoomLevel() const;
205 * Resets the view's icon size to the default value
207 void resetZoomLevel();
209 void setSortRole(const QByteArray
& role
);
210 QByteArray
sortRole() const;
212 void setSortOrder(Qt::SortOrder order
);
213 Qt::SortOrder
sortOrder() const;
215 /** Sets a separate sorting with folders first (true) or a mixed sorting of files and folders (false). */
216 void setSortFoldersFirst(bool foldersFirst
);
217 bool sortFoldersFirst() const;
219 /** Sets a separate sorting with hidden files and folders last (true) or not (false). */
220 void setSortHiddenLast(bool hiddenLast
);
221 bool sortHiddenLast() const;
223 /** Sets the additional information which should be shown for the items. */
224 void setVisibleRoles(const QList
<QByteArray
>& roles
);
226 /** Returns the additional information which should be shown for the items. */
227 QList
<QByteArray
> visibleRoles() const;
232 * Refreshes the view to get synchronized with the settings (e.g. icons size,
238 * Saves the current settings (e.g. icons size, font, ..).
240 void writeSettings();
243 * Filters the currently shown items by \a nameFilter. All items
244 * which contain the given filter string will be shown.
246 void setNameFilter(const QString
& nameFilter
);
247 QString
nameFilter() const;
250 * Filters the currently shown items by \a filters. All items
251 * whose content-type matches those given by the list of filters
254 void setMimeTypeFilters(const QStringList
& filters
);
255 QStringList
mimeTypeFilters() const;
258 * Tells the view to generate an updated status bar text. The result
259 * is returned through the statusBarTextChanged(QString statusBarText) signal.
260 * It will carry a textual representation of the state of the current
261 * folder or selected items, suitable for use in the status bar.
262 * Any pending requests of status bar text are killed.
264 void requestStatusBarText();
267 * Returns the version control actions that are provided for the items \p items.
268 * Usually the actions are presented in the context menu.
270 QList
<QAction
*> versionControlActions(const KFileItemList
& items
) const;
273 * Returns the state of the paste action:
274 * first is whether the action should be enabled
275 * second is the text for the action
277 QPair
<bool, QString
> pasteInfo() const;
280 * If \a tabsForFiles is true, the signal tabRequested() will also
281 * emitted also for files. Per default tabs for files is disabled
282 * and hence the signal tabRequested() will only be emitted for
285 void setTabsForFilesEnabled(bool tabsForFiles
);
286 bool isTabsForFilesEnabled() const;
289 * Returns true if the current view allows folders to be expanded,
290 * i.e. presents a hierarchical view to the user.
292 bool itemsExpandable() const;
295 * Restores the view state (current item, contents position, details view expansion state)
297 void restoreState(QDataStream
& stream
);
300 * Saves the view state (current item, contents position, details view expansion state)
302 void saveState(QDataStream
& stream
);
305 * Returns the root item which represents the current URL.
307 KFileItem
rootItem() const;
310 * Sets a context that is used for remembering the view-properties.
311 * Per default the context is empty and the path of the currently set URL
312 * is used for remembering the view-properties. Setting a custom context
313 * makes sense if specific types of URLs (e.g. search-URLs) should
314 * share common view-properties.
316 void setViewPropertiesContext(const QString
& context
);
317 QString
viewPropertiesContext() const;
320 * Checks if the given \a item can be opened as folder (e.g. archives).
321 * This function will also adjust the \a url (e.g. change the protocol).
322 * @return a valid and adjusted url if the item can be opened as folder,
323 * otherwise return an empty url.
325 static QUrl
openItemAsFolderUrl(const KFileItem
& item
, const bool browseThroughArchives
= true);
328 * Hides tooltip displayed over element.
330 void hideToolTip(const ToolTipManager::HideBehavior behavior
= ToolTipManager::HideBehavior::Later
);
334 * Changes the directory to \a url. If the current directory is equal to
335 * \a url, nothing will be done (use DolphinView::reload() instead).
337 void setUrl(const QUrl
& url
);
341 * @see DolphinView::selectedItems()
346 * Inverts the current selection: selected items get unselected,
347 * unselected items get selected.
348 * @see DolphinView::selectedItems()
350 void invertSelection();
352 void clearSelection();
355 * Triggers the renaming of the currently selected items, where
356 * the user must input a new name for the items.
358 void renameSelectedItems();
361 * Moves all selected items to the trash.
363 void trashSelectedItems();
366 * Deletes all selected items.
368 void deleteSelectedItems();
371 * Copies all selected items to the clipboard and marks
374 void cutSelectedItemsToClipboard();
376 /** Copies all selected items to the clipboard. */
377 void copySelectedItemsToClipboard();
380 * Copies all selected items to @p destinationUrl.
382 void copySelectedItems(const KFileItemList
&selection
, const QUrl
&destinationUrl
);
385 * Moves all selected items to @p destinationUrl.
387 void moveSelectedItems(const KFileItemList
&selection
, const QUrl
&destinationUrl
);
389 /** Pastes the clipboard data to this view. */
393 * Pastes the clipboard data into the currently selected
394 * folder. If the current selection is not exactly one folder, no
395 * paste operation is done.
397 void pasteIntoFolder();
400 * Copies the path of the first selected KFileItem into Clipboard.
402 void copyPathToClipboard();
405 * Creates duplicates of selected items, appending "copy"
408 void duplicateSelectedItems();
411 * Handles a drop of @p dropEvent onto widget @p dropWidget and destination @p destUrl
413 void dropUrls(const QUrl
&destUrl
, QDropEvent
*dropEvent
, QWidget
*dropWidget
);
418 * Applies the state that has been restored by restoreViewState()
421 void updateViewState();
423 /** Activates the view if the item list container gets focus. */
424 bool eventFilter(QObject
* watched
, QEvent
* event
) override
;
428 * Is emitted if the view has been activated by e. g. a mouse click.
432 /** Is emitted if the URL of the view has been changed to \a url. */
433 void urlChanged(const QUrl
& url
);
436 * Is emitted when clicking on an item with the left mouse button.
438 void itemActivated(const KFileItem
&item
);
441 * Is emitted when multiple items have been activated by e. g.
442 * context menu open with.
444 void itemsActivated(const KFileItemList
&items
);
447 * Is emitted if items have been added or deleted.
449 void itemCountChanged();
452 * Is emitted if a new tab should be opened for the URL \a url.
454 void tabRequested(const QUrl
& url
);
457 * Is emitted if a new tab should be opened for the URL \a url and set as active.
459 void activeTabRequested(const QUrl
&url
);
462 * Is emitted if a new window should be opened for the URL \a url.
464 void windowRequested(const QUrl
&url
);
467 * Is emitted if the view mode (IconsView, DetailsView,
468 * PreviewsView) has been changed.
470 void modeChanged(DolphinView::Mode current
, DolphinView::Mode previous
);
472 /** Is emitted if the 'show preview' property has been changed. */
473 void previewsShownChanged(bool shown
);
475 /** Is emitted if the 'show hidden files' property has been changed. */
476 void hiddenFilesShownChanged(bool shown
);
478 /** Is emitted if the 'grouped sorting' property has been changed. */
479 void groupedSortingChanged(bool groupedSorting
);
481 /** Is emitted in reaction to a requestStatusBarText() call.
482 * @see requestStatusBarText() */
483 void statusBarTextChanged(QString statusBarText
);
485 /** Is emitted if the sorting by name, size or date has been changed. */
486 void sortRoleChanged(const QByteArray
& role
);
488 /** Is emitted if the sort order (ascending or descending) has been changed. */
489 void sortOrderChanged(Qt::SortOrder order
);
492 * Is emitted if the sorting of files and folders (separate with folders
493 * first or mixed) has been changed.
495 void sortFoldersFirstChanged(bool foldersFirst
);
498 * Is emitted if the sorting of hidden files has been changed.
500 void sortHiddenLastChanged(bool hiddenLast
);
502 /** Is emitted if the additional information shown for this view has been changed. */
503 void visibleRolesChanged(const QList
<QByteArray
>& current
,
504 const QList
<QByteArray
>& previous
);
506 /** Is emitted if the zoom level has been changed by zooming in or out. */
507 void zoomLevelChanged(int current
, int previous
);
510 * Is emitted if information of an item is requested to be shown e. g. in the panel.
511 * If item is null, no item information request is pending.
513 void requestItemInfo(const KFileItem
& item
);
516 * Is emitted whenever the selection has been changed.
518 void selectionChanged(const KFileItemList
& selection
);
521 * Is emitted if a context menu is requested for the item \a item,
522 * which is part of \a url. If the item is null, the context menu
523 * for the URL should be shown.
525 void requestContextMenu(const QPoint
& pos
,
526 const KFileItem
& item
,
527 const KFileItemList
&selectedItems
,
531 * Is emitted if an information message with the content \a msg
534 void infoMessage(const QString
& msg
);
537 * Is emitted if an error message with the content \a msg
540 void errorMessage(const QString
& msg
);
543 * Is emitted if an "operation completed" message with the content \a msg
546 void operationCompletedMessage(const QString
& msg
);
549 * Is emitted after DolphinView::setUrl() has been invoked and
550 * the current directory is loaded. If this signal is emitted,
551 * it is assured that the view contains already the correct root
552 * URL and property settings.
554 void directoryLoadingStarted();
557 * Is emitted after the directory triggered by DolphinView::setUrl()
560 void directoryLoadingCompleted();
563 * Is emitted after the directory loading triggered by DolphinView::setUrl()
566 void directoryLoadingCanceled();
569 * Is emitted after DolphinView::setUrl() has been invoked and provides
570 * the information how much percent of the current directory have been loaded.
572 void directoryLoadingProgress(int percent
);
575 * Is emitted if the sorting is done asynchronously and provides the
576 * progress information of the sorting.
578 void directorySortingProgress(int percent
);
581 * Emitted when the file-item-model emits redirection.
582 * Testcase: fish://localhost
584 void redirection(const QUrl
& oldUrl
, const QUrl
& newUrl
);
587 * Is emitted when the URL set by DolphinView::setUrl() represents a file.
588 * In this case no signal errorMessage() will be emitted.
590 void urlIsFileError(const QUrl
& url
);
593 * Is emitted when the write state of the folder has been changed. The application
594 * should disable all actions like "Create New..." that depend on the write
597 void writeStateChanged(bool isFolderWritable
);
600 * Is emitted if the URL should be changed to the previous URL of the
601 * history (e.g. because the "back"-mousebutton has been pressed).
603 void goBackRequested();
606 * Is emitted if the URL should be changed to the next URL of the
607 * history (e.g. because the "next"-mousebutton has been pressed).
609 void goForwardRequested();
612 * Used to request either entering or leaving of selection mode
613 * Entering is typically requested on press and hold.
614 * Leaving by pressing Escape when no item is selected.
616 void selectionModeChangeRequested(bool enabled
);
619 * Is emitted when the user wants to move the focus to another view.
621 void toggleActiveViewRequested();
624 * Is emitted when the user clicks a tag or a link
625 * in the metadata widget of a tooltip.
627 void urlActivated(const QUrl
& url
);
629 void goUpRequested();
631 void fileItemsChanged(const KFileItemList
&changedFileItems
);
634 /** Changes the zoom level if Control is pressed during a wheel event. */
635 void wheelEvent(QWheelEvent
* event
) override
;
637 void hideEvent(QHideEvent
* event
) override
;
638 bool event(QEvent
* event
) override
;
642 * Marks the view as active (DolphinView:isActive() will return true)
643 * and emits the 'activated' signal if it is not already active.
647 void slotItemActivated(int index
);
648 void slotItemsActivated(const KItemSet
&indexes
);
649 void slotItemMiddleClicked(int index
);
650 void slotItemContextMenuRequested(int index
, const QPointF
& pos
);
651 void slotViewContextMenuRequested(const QPointF
& pos
);
652 void slotHeaderContextMenuRequested(const QPointF
& pos
);
653 void slotHeaderColumnWidthChangeFinished(const QByteArray
& role
, qreal current
);
654 void slotSidePaddingWidthChanged(qreal width
);
655 void slotItemHovered(int index
);
656 void slotItemUnhovered(int index
);
657 void slotItemDropEvent(int index
, QGraphicsSceneDragDropEvent
* event
);
658 void slotModelChanged(KItemModelBase
* current
, KItemModelBase
* previous
);
659 void slotMouseButtonPressed(int itemIndex
, Qt::MouseButtons buttons
);
660 void slotRenameDialogRenamingFinished(const QList
<QUrl
>& urls
);
661 void slotSelectedItemTextPressed(int index
);
662 void slotCopyingDone(KIO::Job
*, const QUrl
&, const QUrl
&to
);
663 void slotIncreaseZoom();
664 void slotDecreaseZoom();
668 * Is called when new items get pasted or dropped.
670 void slotItemCreated(const QUrl
&url
);
672 * Is called after all pasted or dropped items have been copied to destination.
674 void slotJobResult(KJob
*job
);
677 * Emits the signal \a selectionChanged() with a small delay. This is
678 * because getting all file items for the selection can be an expensive
679 * operation. Fast selection changes are collected in this case and
680 * the signal is emitted only after no selection change has been done
681 * within a small delay.
683 void slotSelectionChanged(const KItemSet
& current
, const KItemSet
& previous
);
686 * Is called by emitDelayedSelectionChangedSignal() and emits the
687 * signal \a selectionChanged() with all selected file items as parameter.
689 void emitSelectionChangedSignal();
692 * Helper method for DolphinView::requestStatusBarText().
693 * Calculates the amount of folders and files and their total size in
694 * response to a KStatJob::result(), then calls emitStatusBarText().
695 * @see requestStatusBarText()
696 * @see emitStatusBarText()
698 void slotStatJobResult(KJob
*job
);
701 * Updates the view properties of the current URL to the
702 * sorting given by \a role.
704 void updateSortRole(const QByteArray
& role
);
707 * Updates the view properties of the current URL to the
708 * sort order given by \a order.
710 void updateSortOrder(Qt::SortOrder order
);
713 * Updates the view properties of the current URL to the
714 * sorting of files and folders (separate with folders first or mixed) given by \a foldersFirst.
716 void updateSortFoldersFirst(bool foldersFirst
);
719 * Updates the view properties of the current URL to the
720 * sorting of hidden files given by \a hiddenLast.
722 void updateSortHiddenLast(bool hiddenLast
);
725 * Indicates in the status bar that the delete operation
726 * of the job \a job has been finished.
728 void slotDeleteFileFinished(KJob
* job
);
731 * Indicates in the status bar that the trash operation
732 * of the job \a job has been finished.
734 void slotTrashFileFinished(KJob
* job
);
737 * Invoked when the rename job is done, for error handling.
739 void slotRenamingResult(KJob
* job
);
742 * Invoked when the file item model has started the loading
743 * of the directory specified by DolphinView::url().
745 void slotDirectoryLoadingStarted();
748 * Invoked when the file item model indicates that the loading of a directory has
749 * been completed. Assures that pasted items and renamed items get selected.
751 void slotDirectoryLoadingCompleted();
754 * Invoked when the file item model indicates that the loading of a directory has
757 void slotDirectoryLoadingCanceled();
760 * Is invoked when items of KFileItemModel have been changed.
762 void slotItemsChanged();
765 * Is invoked when the sort order has been changed by the user by clicking
766 * on a header item. The view properties of the directory will get updated.
768 void slotSortOrderChangedByHeader(Qt::SortOrder current
, Qt::SortOrder previous
);
771 * Is invoked when the sort role has been changed by the user by clicking
772 * on a header item. The view properties of the directory will get updated.
774 void slotSortRoleChangedByHeader(const QByteArray
& current
, const QByteArray
& previous
);
777 * Is invoked when the visible roles have been changed by the user by dragging
778 * a header item. The view properties of the directory will get updated.
780 void slotVisibleRolesChangedByHeader(const QList
<QByteArray
>& current
,
781 const QList
<QByteArray
>& previous
);
783 void slotRoleEditingCanceled();
784 void slotRoleEditingFinished(int index
, const QByteArray
& role
, const QVariant
& value
);
787 * Observes the item with the URL \a url. As soon as the directory
788 * model indicates that the item is available, the item will
789 * get selected and it is assured that the item stays visible.
791 void observeCreatedItem(const QUrl
&url
);
794 * Called when a redirection happens.
795 * Testcase: fish://localhost
797 void slotDirectoryRedirection(const QUrl
& oldUrl
, const QUrl
& newUrl
);
799 void slotTwoClicksRenamingTimerTimeout();
802 void loadDirectory(const QUrl
& url
, bool reload
= false);
805 * Applies the view properties which are defined by the current URL
806 * to the DolphinView properties. The view properties are read from a
807 * .directory file either in the current directory, or in the
808 * share/apps/dolphin/view_properties/ subfolder of the user's .kde folder.
810 void applyViewProperties();
813 * Applies the given view properties to the DolphinView.
815 void applyViewProperties(const ViewProperties
& props
);
818 * Applies the m_mode property to the corresponding
819 * itemlayout-property of the KItemListView.
821 void applyModeToView();
828 * Helper method for DolphinView::requestStatusBarText().
829 * Generates the status bar text from the parameters and
830 * then emits statusBarTextChanged().
831 * @param totalFileSize the sum of the sizes of the files
832 * @param selection if HasSelection is passed, the emitted status bar text will say
833 * that the folders and files which are counted here are selected.
835 void emitStatusBarText(const int folderCount
, const int fileCount
,
836 KIO::filesize_t totalFileSize
, const Selection selection
);
839 * Helper method for DolphinView::paste() and DolphinView::pasteIntoFolder().
840 * Pastes the clipboard data into the URL \a url.
842 void pasteToUrl(const QUrl
& url
);
845 * Returns a list of URLs for all selected items. The list is
846 * simplified, so that when the URLs are part of different tree
847 * levels, only the parent is returned.
849 QList
<QUrl
> simplifiedSelectedUrls() const;
852 * Returns the MIME data for all selected items.
854 QMimeData
* selectionMimeData() const;
857 * Updates m_isFolderWritable dependent on whether the folder represented by
858 * the current URL is writable. If the state has changed, the signal
859 * writeableStateChanged() will be emitted.
861 void updateWritableState();
864 * @return The current URL if no viewproperties-context is given (see
865 * DolphinView::viewPropertiesContext(), otherwise the context
868 QUrl
viewPropertiesUrl() const;
871 * Clears the selection and updates current item and selection according to the parameters
873 * @param current URL to be set as current
874 * @param selected list of selected items
876 void forceUrlsSelection(const QUrl
& current
, const QList
<QUrl
>& selected
);
878 void abortTwoClicksRenaming();
880 void updatePlaceholderLabel();
882 void tryShowNameToolTip(QHelpEvent
* event
);
885 void updatePalette();
886 void showLoadingPlaceholder();
890 bool m_assureVisibleCurrentIndex
;
891 bool m_isFolderWritable
;
892 bool m_dragging
; // True if a dragging is done. Required to be able to decide whether a
893 // tooltip may be shown when hovering an item.
895 enum class LoadingState
{
901 LoadingState m_loadingState
= LoadingState::Idle
;
904 QString m_viewPropertiesContext
;
906 QList
<QByteArray
> m_visibleRoles
;
908 QPointer
<KIO::StatJob
> m_statJobForStatusBarText
;
910 QVBoxLayout
* m_topLayout
;
912 KFileItemModel
* m_model
;
913 DolphinItemListView
* m_view
;
914 KItemListContainer
* m_container
;
916 ToolTipManager
* m_toolTipManager
;
918 QTimer
* m_selectionChangedTimer
;
920 QUrl m_currentItemUrl
; // Used for making the view to remember the current URL after F5
921 bool m_scrollToCurrentItem
; // Used for marking we need to scroll to current item or not
922 QPoint m_restoredContentsPosition
;
924 QList
<QUrl
> m_selectedUrls
; // Used for making the view to remember selections after F5
925 bool m_clearSelectionBeforeSelectingNewItems
;
926 bool m_markFirstNewlySelectedItemAsCurrent
;
928 VersionControlObserver
* m_versionControlObserver
;
930 QTimer
* m_twoClicksRenamingTimer
;
931 QUrl m_twoClicksRenamingItemUrl
;
932 QLabel
* m_placeholderLabel
;
933 QTimer
* m_showLoadingPlaceholderTimer
;
935 /// Used for selection mode. @see setSelectionMode()
936 std::unique_ptr
<QProxyStyle
> m_proxyStyle
;
939 friend class TestBase
;
940 friend class DolphinDetailsViewTest
;
941 friend class DolphinMainWindowTest
;
942 friend class DolphinPart
; // Accesses m_model
945 /// Allow using DolphinView::Mode in QVariant
946 Q_DECLARE_METATYPE(DolphinView::Mode
)
948 #endif // DOLPHINVIEW_H