Skip to content
Snippets Groups Projects
Commit afba9211 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed wrong usages of the Q_D() macro.

parent 293f6758
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ QDeclarativeListProperty<QmlProjectContentItem> QmlProjectItem::content() ...@@ -53,7 +53,7 @@ QDeclarativeListProperty<QmlProjectContentItem> QmlProjectItem::content()
QString QmlProjectItem::sourceDirectory() const QString QmlProjectItem::sourceDirectory() const
{ {
const Q_D(QmlProjectItem); Q_D(const QmlProjectItem);
return d->sourceDirectory; return d->sourceDirectory;
} }
...@@ -81,7 +81,7 @@ void QmlProjectItem::setSourceDirectory(const QString &directoryPath) ...@@ -81,7 +81,7 @@ void QmlProjectItem::setSourceDirectory(const QString &directoryPath)
QStringList QmlProjectItem::libraryPaths() const QStringList QmlProjectItem::libraryPaths() const
{ {
const Q_D(QmlProjectItem); Q_D(const QmlProjectItem);
return d->libraryPaths; return d->libraryPaths;
} }
...@@ -99,7 +99,7 @@ void QmlProjectItem::setLibraryPaths(const QStringList &libraryPaths) ...@@ -99,7 +99,7 @@ void QmlProjectItem::setLibraryPaths(const QStringList &libraryPaths)
/* Returns list of absolute paths */ /* Returns list of absolute paths */
QStringList QmlProjectItem::files() const QStringList QmlProjectItem::files() const
{ {
const Q_D(QmlProjectItem); Q_D(const QmlProjectItem);
QStringList files; QStringList files;
for (int i = 0; i < d->content.size(); ++i) { for (int i = 0; i < d->content.size(); ++i) {
...@@ -123,7 +123,7 @@ QStringList QmlProjectItem::files() const ...@@ -123,7 +123,7 @@ QStringList QmlProjectItem::files() const
*/ */
bool QmlProjectItem::matchesFile(const QString &filePath) const bool QmlProjectItem::matchesFile(const QString &filePath) const
{ {
const Q_D(QmlProjectItem); Q_D(const QmlProjectItem);
for (int i = 0; i < d->content.size(); ++i) { for (int i = 0; i < d->content.size(); ++i) {
QmlProjectContentItem *contentElement = d->content.at(i); QmlProjectContentItem *contentElement = d->content.at(i);
FileFilterBaseItem *fileFilter = qobject_cast<FileFilterBaseItem*>(contentElement); FileFilterBaseItem *fileFilter = qobject_cast<FileFilterBaseItem*>(contentElement);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment