diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-02 03:11:14 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-02 03:11:14 (GMT) |
commit | dafd625842e2c66551857810a3660c534962746e (patch) | |
tree | ba8029030ad5f744af4633547cf866b2ac9bee1a /src/declarative/extra | |
parent | c9525d561fa05f0914546315fc33d8942b80742a (diff) | |
download | Qt-dafd625842e2c66551857810a3660c534962746e.zip Qt-dafd625842e2c66551857810a3660c534962746e.tar.gz Qt-dafd625842e2c66551857810a3660c534962746e.tar.bz2 |
Fix warnings.
Diffstat (limited to 'src/declarative/extra')
-rw-r--r-- | src/declarative/extra/qfxflowview.cpp | 3 | ||||
-rw-r--r-- | src/declarative/extra/qmlfolderlistmodel.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/extra/qfxflowview.cpp b/src/declarative/extra/qfxflowview.cpp index 254e423..412cbc8 100644 --- a/src/declarative/extra/qfxflowview.cpp +++ b/src/declarative/extra/qfxflowview.cpp @@ -199,8 +199,6 @@ void QFxFlowView::reflowDrag(const QPointF &dp) qreal maxY = 0; qreal x = 0; - int flowedItems = 0; - clearTimeLine(); QList<QFxItem *> items; @@ -316,6 +314,7 @@ QRectF QFxFlowView::rectForItem(int idx) const void QFxFlowView::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) { + Q_UNUSED(event); if (m_dragItem) { m_dragItem->setZ(0); diff --git a/src/declarative/extra/qmlfolderlistmodel.cpp b/src/declarative/extra/qmlfolderlistmodel.cpp index 8b008a5..acee5e1 100644 --- a/src/declarative/extra/qmlfolderlistmodel.cpp +++ b/src/declarative/extra/qmlfolderlistmodel.cpp @@ -51,7 +51,7 @@ class QmlFolderListModelPrivate : public QObjectPrivate public: QmlFolderListModelPrivate() : count(0) { folder = QDir::currentPath(); - nameFilters << "*"; + nameFilters << QLatin1String("*"); } QDirModel model; @@ -81,6 +81,7 @@ QmlFolderListModel::~QmlFolderListModel() QHash<int,QVariant> QmlFolderListModel::data(int index, const QList<int> &roles) const { + Q_UNUSED(roles); Q_D(const QmlFolderListModel); QHash<int,QVariant> folderData; QModelIndex modelIndex = d->model.index(index, 0, d->folderIndex); |