Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
ec688e5c
Commit
ec688e5c
authored
Apr 21, 2010
by
Robert Loehning
Browse files
Resurrecting the title and tooltip of FolderNavigationWidget
parent
fa2d2717
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/foldernavigationwidget.cpp
View file @
ec688e5c
...
...
@@ -224,8 +224,13 @@ bool FolderNavigationWidget::setCurrentDirectory(const QString &directory)
// Set the root path on the model instead of changing the top index
// of the view to cause the model to clean out its file watchers.
const
QModelIndex
index
=
m_fileSystemModel
->
setRootPath
(
newDirectory
);
QTC_ASSERT
(
index
.
isValid
(),
return
false
)
if
(
!
index
.
isValid
())
{
setCurrentTitle
(
QString
(),
QString
());
return
false
;
}
m_listView
->
setRootIndex
(
m_filterModel
->
mapFromSource
(
index
));
const
QDir
current
(
QDir
::
cleanPath
(
newDirectory
));
setCurrentTitle
(
current
.
dirName
(),
current
.
absolutePath
());
return
!
directory
.
isEmpty
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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