Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
792c1a57
Commit
792c1a57
authored
Nov 11, 2011
by
Eike Ziller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://codereview.qt-project.org/qt-creator/qt-creator
parents
85cf2b66
a63fa620
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/plugins/vcsbase/submitfilemodel.cpp
src/plugins/vcsbase/submitfilemodel.cpp
+5
-0
No files found.
src/plugins/vcsbase/submitfilemodel.cpp
View file @
792c1a57
...
...
@@ -33,7 +33,10 @@
#include "submitfilemodel.h"
#include "vcsbaseconstants.h"
#include <coreplugin/fileiconprovider.h>
#include <QtGui/QStandardItem>
#include <QtCore/QFileInfo>
#include <QtCore/QDebug>
namespace
VCSBase
{
...
...
@@ -52,6 +55,7 @@ static QList<QStandardItem *> createFileRow(const QString &fileName, const QStri
statusItem
->
setData
(
v
);
QStandardItem
*
fileItem
=
new
QStandardItem
(
fileName
);
fileItem
->
setFlags
(
Qt
::
ItemIsSelectable
|
Qt
::
ItemIsEnabled
);
fileItem
->
setIcon
(
Core
::
FileIconProvider
::
instance
()
->
icon
(
QFileInfo
(
fileName
)));
QList
<
QStandardItem
*>
row
;
row
<<
statusItem
<<
fileItem
;
return
row
;
...
...
@@ -154,4 +158,5 @@ unsigned SubmitFileModel::filter(const QStringList &filter, int column)
qDebug
()
<<
Q_FUNC_INFO
<<
" deleted "
<<
rc
<<
" items using "
<<
filter
<<
" , remaining "
<<
rowCount
();
return
rc
;
}
}
Write
Preview
Markdown
is supported
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