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
Marco Bubke
flatpak-qt-creator
Commits
d5cdca00
Commit
d5cdca00
authored
May 03, 2010
by
Robert Loehning
Browse files
Fixed handling of file patterns similar to "filename*"
Task-Nr: QTCREATORBUG-1314
parent
6a4d08ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/allprojectsfind.cpp
View file @
d5cdca00
...
...
@@ -36,6 +36,7 @@
#include
<utils/qtcassert.h>
#include
<QtCore/QDebug>
#include
<QtCore/QFileInfo>
#include
<QtCore/QSettings>
#include
<QtCore/QRegExp>
#include
<QtGui/QGridLayout>
...
...
@@ -91,7 +92,7 @@ QStringList AllProjectsFind::files()
if
(
!
filterRegs
.
isEmpty
())
{
foreach
(
const
QString
&
file
,
projectFiles
)
{
foreach
(
const
QRegExp
&
reg
,
filterRegs
)
{
if
(
reg
.
exactMatch
(
file
))
{
if
(
reg
.
exactMatch
(
file
)
||
reg
.
exactMatch
(
QFileInfo
(
file
).
fileName
())
)
{
files
.
append
(
file
);
break
;
}
...
...
src/plugins/projectexplorer/currentprojectfind.cpp
View file @
d5cdca00
...
...
@@ -35,6 +35,7 @@
#include
<utils/qtcassert.h>
#include
<QtCore/QDebug>
#include
<QtCore/QFileInfo>
#include
<QtCore/QSettings>
#include
<QtCore/QRegExp>
#include
<QtGui/QGridLayout>
...
...
@@ -87,7 +88,7 @@ QStringList CurrentProjectFind::files()
if
(
!
filterRegs
.
isEmpty
())
{
foreach
(
const
QString
&
file
,
project
->
files
(
Project
::
AllFiles
))
{
foreach
(
const
QRegExp
&
reg
,
filterRegs
)
{
if
(
reg
.
exactMatch
(
file
))
{
if
(
reg
.
exactMatch
(
file
)
||
reg
.
exactMatch
(
QFileInfo
(
file
).
fileName
())
)
{
files
.
append
(
file
);
break
;
}
...
...
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