Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
2ef87708
Commit
2ef87708
authored
Dec 02, 2021
by
Eugene Popov
🇺🇦
Committed by
Méven Car
Dec 02, 2021
Browse files
[Location Bar] Add the ability to show hidden folders in the subdirectories popup
parent
f1756dd1
Pipeline
#104165
passed with stage
in 4 minutes and 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
2ef87708
...
...
@@ -8,7 +8,7 @@ set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE
project
(
Dolphin VERSION
${
RELEASE_SERVICE_VERSION
}
)
set
(
QT_MIN_VERSION
"5.15.0"
)
set
(
KF5_MIN_VERSION
"5.8
3
.0"
)
set
(
KF5_MIN_VERSION
"5.8
7
.0"
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
...
...
src/dolphinviewcontainer.cpp
View file @
2ef87708
...
...
@@ -151,6 +151,10 @@ DolphinViewContainer::DolphinViewContainer(const QUrl& url, QWidget* parent) :
this
,
&
DolphinViewContainer
::
slotUrlIsFileError
);
connect
(
m_view
,
&
DolphinView
::
activated
,
this
,
&
DolphinViewContainer
::
activate
);
connect
(
m_view
,
&
DolphinView
::
hiddenFilesShownChanged
,
this
,
&
DolphinViewContainer
::
slotHiddenFilesShownChanged
);
connect
(
m_view
,
&
DolphinView
::
sortHiddenLastChanged
,
this
,
&
DolphinViewContainer
::
slotSortHiddenLastChanged
);
// Initialize status bar
m_statusBar
=
new
DolphinStatusBar
(
this
);
...
...
@@ -309,6 +313,8 @@ void DolphinViewContainer::connectUrlNavigator(DolphinUrlNavigator *urlNavigator
Q_CHECK_PTR
(
m_view
);
urlNavigator
->
setLocationUrl
(
m_view
->
url
());
urlNavigator
->
setShowHiddenFolders
(
m_view
->
hiddenFilesShown
());
urlNavigator
->
setSortHiddenFoldersLast
(
m_view
->
sortHiddenLast
());
if
(
m_urlNavigatorVisualState
)
{
urlNavigator
->
setVisualState
(
*
m_urlNavigatorVisualState
.
get
());
m_urlNavigatorVisualState
.
reset
();
...
...
@@ -809,6 +815,20 @@ void DolphinViewContainer::slotPlacesModelChanged()
}
}
void
DolphinViewContainer
::
slotHiddenFilesShownChanged
(
bool
showHiddenFiles
)
{
if
(
m_urlNavigatorConnected
)
{
m_urlNavigatorConnected
->
setShowHiddenFolders
(
showHiddenFiles
);
}
}
void
DolphinViewContainer
::
slotSortHiddenLastChanged
(
bool
hiddenLast
)
{
if
(
m_urlNavigatorConnected
)
{
m_urlNavigatorConnected
->
setSortHiddenFoldersLast
(
hiddenLast
);
}
}
bool
DolphinViewContainer
::
isSearchUrl
(
const
QUrl
&
url
)
const
{
return
url
.
scheme
().
contains
(
QLatin1String
(
"search"
));
...
...
src/dolphinviewcontainer.h
View file @
2ef87708
...
...
@@ -361,6 +361,9 @@ private Q_SLOTS:
*/
void
slotPlacesModelChanged
();
void
slotHiddenFilesShownChanged
(
bool
showHiddenFiles
);
void
slotSortHiddenLastChanged
(
bool
hiddenLast
);
private:
/**
* @return True if the URL protocol is a search URL (e. g. baloosearch:// or filenamesearch://).
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment