const QVariant& errorData,
const QString& udi)
{
- Q_UNUSED(udi);
+ Q_UNUSED(udi)
const int index = m_storageSetupInProgress.take(sender());
const PlacesItem* item = placesItem(index);
void PlacesItemModel::onSourceModelRowsAboutToBeMoved(const QModelIndex &parent, int start, int end, const QModelIndex &destination, int row)
{
- Q_UNUSED(destination);
- Q_UNUSED(row);
+ Q_UNUSED(destination)
+ Q_UNUSED(row)
for(int r = start; r <= end; r++) {
const QModelIndex sourceIndex = m_sourceModel->index(r, 0, parent);
void PlacesItemModel::onSourceModelRowsMoved(const QModelIndex &parent, int start, int end, const QModelIndex &destination, int row)
{
- Q_UNUSED(destination);
- Q_UNUSED(parent);
+ Q_UNUSED(destination)
+ Q_UNUSED(parent)
const int blockSize = (end - start) + 1;
void PlacesItemModel::onSourceModelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles)
{
- Q_UNUSED(roles);
+ Q_UNUSED(roles)
for (int r = topLeft.row(); r <= bottomRight.row(); r++) {
const QModelIndex sourceIndex = m_sourceModel->index(r, 0);
}
if (placeItem && !m_sourceModel->isDevice(sourceIndex)) {
- placeItem->setText(bookmark.text());
- placeItem->setIcon(sourceIndex.data(KFilePlacesModel::IconNameRole).toString());
- placeItem->setUrl(m_sourceModel->url(sourceIndex));
- placeItem->bookmark().setMetaDataItem(QStringLiteral("OnlyInApp"),
- bookmark.metaDataItem(QStringLiteral("OnlyInApp")));
// must update the bookmark object
placeItem->setBookmark(bookmark);
}
bool PlacesItemModel::isDir(int index) const
{
- Q_UNUSED(index);
+ Q_UNUSED(index)
return true;
}