kitemviews/private/kfileitemmodelfilter.cpp
kitemviews/private/kitemlistheaderwidget.cpp
kitemviews/private/kitemlistkeyboardsearchmanager.cpp
+ kitemviews/private/kitemlistroleeditor.cpp
kitemviews/private/kitemlistrubberband.cpp
kitemviews/private/kitemlistselectiontoggle.cpp
kitemviews/private/kitemlistsizehintresolver.cpp
this, SLOT(slotHandleUrlStatFinished(KJob*)));
} else {
- new KRun(url, this);
+ new KRun(url, this); // Automatically deletes itself after being finished
}
}
if (entry.isDir()) {
activeViewContainer()->setUrl(url);
} else {
- new KRun(url, this);
+ new KRun(url, this); // Automatically deletes itself after being finished
}
}
#include <KDebug>
#include <KIcon>
+#include <KTextEdit>
#include <QPainter>
#include <QTextLine>
#include <KDebug>
#include "private/kfileitemclipboard.h"
+#include "private/kitemlistroleeditor.h"
#include "private/kpixmapmodifier.h"
#include <QFontMetricsF>
+#include <QGraphicsScene>
#include <QGraphicsSceneResizeEvent>
+#include <QGraphicsView>
#include <QPainter>
#include <QStyleOption>
#include <QTextLayout>
m_customTextColor(),
m_additionalInfoTextColor(),
m_overlay(),
- m_rating()
+ m_rating(),
+ m_roleEditor(0)
{
}
{
qDeleteAll(m_textInfo);
m_textInfo.clear();
+
+ delete m_roleEditor;
}
void KFileItemListWidget::setLayout(Layout layout)
m_dirtyLayout = true;
}
+void KFileItemListWidget::editedRoleChanged(const QByteArray& current, const QByteArray& previous)
+{
+ Q_UNUSED(previous);
+
+ QGraphicsView* parent = scene()->views()[0];
+ if (current.isEmpty() || !parent || current != "name") {
+ if (m_roleEditor) {
+ emit roleEditingCanceled(index(), current, data().value(current));
+ m_roleEditor->deleteLater();
+ m_roleEditor = 0;
+ }
+ return;
+ }
+
+ Q_ASSERT(!m_roleEditor);
+
+ const TextInfo* textInfo = m_textInfo.value("name");
+
+ m_roleEditor = new KItemListRoleEditor(parent);
+ m_roleEditor->setIndex(index());
+ m_roleEditor->setRole(current);
+
+ const QString text = data().value(current).toString();
+ m_roleEditor->setPlainText(text);
+
+ QTextOption textOption = textInfo->staticText.textOption();
+ m_roleEditor->document()->setDefaultTextOption(textOption);
+
+ // Select the text without MIME-type extension
+ int selectionLength = text.length();
+
+ const QString extension = KMimeType::extractKnownExtension(text);
+ if (!extension.isEmpty()) {
+ selectionLength -= extension.length() + 1;
+ }
+
+ if (selectionLength > 0) {
+ QTextCursor cursor = m_roleEditor->textCursor();
+ cursor.movePosition(QTextCursor::StartOfBlock);
+ cursor.movePosition(QTextCursor::NextCharacter, QTextCursor::KeepAnchor, selectionLength);
+ m_roleEditor->setTextCursor(cursor);
+ }
+
+ connect(m_roleEditor, SIGNAL(roleEditingCanceled(int,QByteArray,QVariant)),
+ this, SLOT(slotRoleEditingCanceled(int,QByteArray,QVariant)));
+ connect(m_roleEditor, SIGNAL(roleEditingFinished(int,QByteArray,QVariant)),
+ this, SLOT(slotRoleEditingFinished(int,QByteArray,QVariant)));
+
+ // Adjust the geometry of the editor
+ QRectF rect = roleEditingRect(current);
+ const int frameWidth = m_roleEditor->frameWidth();
+ rect.adjust(-frameWidth, -frameWidth, frameWidth, frameWidth);
+ rect.translate(pos());
+ if (rect.right() > parent->width()) {
+ rect.setWidth(parent->width() - rect.left());
+ }
+ m_roleEditor->setGeometry(rect.toRect());
+ m_roleEditor->show();
+ m_roleEditor->setFocus();
+}
void KFileItemListWidget::resizeEvent(QGraphicsSceneResizeEvent* event)
{
+ if (m_roleEditor) {
+ setEditedRole(QByteArray());
+ Q_ASSERT(!m_roleEditor);
+ }
+
KItemListWidget::resizeEvent(event);
+
m_dirtyLayout = true;
}
}
}
+void KFileItemListWidget::slotRoleEditingCanceled(int index,
+ const QByteArray& role,
+ const QVariant& value)
+{
+ m_roleEditor->deleteLater();
+ m_roleEditor = 0;
+ emit roleEditingCanceled(index, role, value);
+ setEditedRole(QByteArray());
+}
+
+void KFileItemListWidget::slotRoleEditingFinished(int index,
+ const QByteArray& role,
+ const QVariant& value)
+{
+ m_roleEditor->deleteLater();
+ m_roleEditor = 0;
+ emit roleEditingFinished(index, role, value);
+ setEditedRole(QByteArray());
+}
+
void KFileItemListWidget::triggerCacheRefreshing()
{
if ((!m_dirtyContent && !m_dirtyLayout) || index() < 0) {
}
}
+QRectF KFileItemListWidget::roleEditingRect(const QByteArray& role) const
+{
+ const TextInfo* textInfo = m_textInfo.value(role);
+ if (!textInfo) {
+ return QRectF();
+ }
+
+ QRectF rect(textInfo->pos, textInfo->staticText.size());
+ if (m_layout == DetailsLayout) {
+ rect.setWidth(columnWidth(role) - rect.x());
+ }
+
+ return rect;
+}
+
QPixmap KFileItemListWidget::pixmapForIcon(const QString& name, int size)
{
const KIcon icon(name);
#include <QPointF>
#include <QStaticText>
-class KItemListView;
+class KItemListRoleEditor;
class KItemListStyleOption;
+class KItemListView;
class LIBDOLPHINPRIVATE_EXPORT KFileItemListWidget : public KItemListWidget
{
virtual void hoveredChanged(bool hovered);
virtual void selectedChanged(bool selected);
virtual void siblingsInformationChanged(const QBitArray& current, const QBitArray& previous);
+ virtual void editedRoleChanged(const QByteArray& current, const QByteArray& previous);
virtual void resizeEvent(QGraphicsSceneResizeEvent* event);
virtual void showEvent(QShowEvent* event);
virtual void hideEvent(QHideEvent* event);
private slots:
void slotCutItemsChanged();
+ void slotRoleEditingCanceled(int index, const QByteArray& role, const QVariant& value);
+ void slotRoleEditingFinished(int index, const QByteArray& role, const QVariant& value);
private:
/**
void drawPixmap(QPainter* painter, const QPixmap& pixmap);
void drawSiblingsInformation(QPainter* painter);
+ QRectF roleEditingRect(const QByteArray &role) const;
+
static QPixmap pixmapForIcon(const QString& name, int size);
static void applyCutEffect(QPixmap& pixmap);
static void applyHiddenEffect(QPixmap& pixmap);
QPixmap m_overlay;
QPixmap m_rating;
+
+ KItemListRoleEditor* m_roleEditor;
};
#endif
m_enabledSelectionToggles(false),
m_grouped(false),
m_supportsItemExpanding(false),
+ m_editingRole(false),
m_activeTransactions(0),
m_endTransactionAnimationHint(Animation),
m_itemSize(),
return QPixmap();
}
+void KItemListView::editRole(int index, const QByteArray& role)
+{
+ KItemListWidget* widget = m_visibleItems.value(index);
+ if (!widget) {
+ return;
+ }
+
+ Q_ASSERT(!m_editingRole);
+ m_editingRole = true;
+ widget->setEditedRole(role);
+
+ connect(widget, SIGNAL(roleEditingCanceled(int,QByteArray,QVariant)),
+ this, SLOT(slotRoleEditingCanceled(int,QByteArray,QVariant)));
+ connect(widget, SIGNAL(roleEditingFinished(int,QByteArray,QVariant)),
+ this, SLOT(slotRoleEditingFinished(int,QByteArray,QVariant)));
+}
+
void KItemListView::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
{
QGraphicsWidget::paint(painter, option, widget);
bool KItemListView::event(QEvent* event)
{
// Forward all events to the controller and handle them there
- if (m_controller && m_controller->processEvent(event, transform())) {
+ if (!m_editingRole && m_controller && m_controller->processEvent(event, transform())) {
event->accept();
return true;
}
updateGroupHeaderLayout(widget);
}
+void KItemListView::slotRoleEditingCanceled(int index, const QByteArray& role, const QVariant& value)
+{
+ emit roleEditingCanceled(index, role, value);
+ m_editingRole = false;
+}
+
+void KItemListView::slotRoleEditingFinished(int index, const QByteArray& role, const QVariant& value)
+{
+ emit roleEditingFinished(index, role, value);
+ m_editingRole = false;
+}
+
void KItemListView::setController(KItemListController* controller)
{
if (m_controller != controller) {
*/
virtual QPixmap createDragPixmap(const QSet<int>& indexes) const;
+ /**
+ * Lets the user edit the role \a role for item with the index \a index.
+ */
+ void editRole(int index, const QByteArray& role);
+
/**
* @reimp
*/
*/
void visibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous);
+ void roleEditingCanceled(int index, const QByteArray& role, const QVariant& value);
+ void roleEditingFinished(int index, const QByteArray& role, const QVariant& value);
+
protected:
+ /**
+ * Is called when creating a new KItemListWidget instance and allows derived
+ * classes to do a custom initialization.
+ */
virtual void initializeItemListWidget(KItemListWidget* item);
/**
*/
void slotGeometryOfGroupHeaderParentChanged();
+ void slotRoleEditingCanceled(int index, const QByteArray& role, const QVariant& value);
+ void slotRoleEditingFinished(int index, const QByteArray& role, const QVariant& value);
+
private:
enum LayoutAnimationHint
{
bool m_enabledSelectionToggles;
bool m_grouped;
bool m_supportsItemExpanding;
+ bool m_editingRole;
int m_activeTransactions; // Counter for beginTransaction()/endTransaction()
LayoutAnimationHint m_endTransactionAnimationHint;
m_hoverOpacity(0),
m_hoverCache(0),
m_hoverAnimation(0),
- m_selectionToggle(0)
+ m_selectionToggle(0),
+ m_editedRole()
{
}
painter->fillRect(backgroundRect, backgroundColor);
}
- if (m_selected) {
+ if (m_selected && m_editedRole.isEmpty()) {
const QStyle::State activeState(isActiveWindow() ? QStyle::State_Active : 0);
drawItemStyleOption(painter, widget, activeState |
QStyle::State_Enabled |
QStyle::State_Item);
}
- if (isCurrent()) {
+ if (m_current && m_editedRole.isEmpty()) {
QStyleOptionFocusRect focusRectOption;
focusRectOption.initFrom(widget);
focusRectOption.rect = textFocusRect().toRect();
return m_siblingsInfo;
}
+void KItemListWidget::setEditedRole(const QByteArray& role)
+{
+ if (m_editedRole != role) {
+ const QByteArray previous = m_editedRole;
+ m_editedRole = role;
+ editedRoleChanged(role, previous);
+ }
+}
+
+QByteArray KItemListWidget::editedRole() const
+{
+ return m_editedRole;
+}
+
bool KItemListWidget::contains(const QPointF& point) const
{
if (!QGraphicsWidget::contains(point)) {
Q_UNUSED(previous);
}
+void KItemListWidget::editedRoleChanged(const QByteArray& current, const QByteArray& previous)
+{
+ Q_UNUSED(current);
+ Q_UNUSED(previous);
+}
+
void KItemListWidget::resizeEvent(QGraphicsSceneResizeEvent* event)
{
QGraphicsWidget::resizeEvent(event);
void setSiblingsInformation(const QBitArray& siblings);
QBitArray siblingsInformation() const;
+ /**
+ * Allows the user to edit the role \a role. The signals
+ * roleEditingCanceled() or roleEditingFinished() will be
+ * emitted after editing. An ongoing editing gets canceled if
+ * the role is empty. Derived classes must implement
+ * editedRoleChanged().
+ */
+ void setEditedRole(const QByteArray& role);
+ QByteArray editedRole() const;
+
/**
* @return True if \a point is inside KItemListWidget::hoverRect(),
* KItemListWidget::textRect(), KItemListWidget::selectionToggleRect()
*/
virtual QRectF expansionToggleRect() const;
+signals:
+ void roleEditingCanceled(int index, const QByteArray& role, const QVariant& value);
+ void roleEditingFinished(int index, const QByteArray& role, const QVariant& value);
+
protected:
virtual void dataChanged(const QHash<QByteArray, QVariant>& current, const QSet<QByteArray>& roles = QSet<QByteArray>());
virtual void visibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous);
virtual void hoveredChanged(bool hovered);
virtual void alternateBackgroundChanged(bool enabled);
virtual void siblingsInformationChanged(const QBitArray& current, const QBitArray& previous);
+ virtual void editedRoleChanged(const QByteArray& current, const QByteArray& previous);
virtual void resizeEvent(QGraphicsSceneResizeEvent* event);
/**
QPropertyAnimation* m_hoverAnimation;
KItemListSelectionToggle* m_selectionToggle;
+
+ QByteArray m_editedRole;
};
#endif
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2012 by Peter Penz <peter.penz19@gmail.com> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#include "kitemlistroleeditor.h"
+
+#include <KDebug>
+#include <QKeyEvent>
+
+KItemListRoleEditor::KItemListRoleEditor(QWidget *parent) :
+ KTextEdit(parent),
+ m_index(0),
+ m_role()
+{
+ setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ document()->setDocumentMargin(0);
+
+ if (parent) {
+ parent->installEventFilter(this);
+ }
+}
+
+KItemListRoleEditor::~KItemListRoleEditor()
+{
+}
+
+void KItemListRoleEditor::setIndex(int index)
+{
+ m_index = index;
+}
+
+int KItemListRoleEditor::index() const
+{
+ return m_index;
+}
+
+void KItemListRoleEditor::setRole(const QByteArray& role)
+{
+ m_role = role;
+}
+
+QByteArray KItemListRoleEditor::role() const
+{
+ return m_role;
+}
+
+bool KItemListRoleEditor::eventFilter(QObject* watched, QEvent* event)
+{
+ if (watched == parentWidget() && event->type() == QEvent::Resize) {
+ autoAdjustSize();
+ }
+
+ return KTextEdit::eventFilter(watched, event);
+}
+
+bool KItemListRoleEditor::event(QEvent* event)
+{
+ if (event->type() == QEvent::FocusOut) {
+ emit roleEditingFinished(m_index, m_role, toPlainText());
+ }
+ return KTextEdit::event(event);
+}
+
+void KItemListRoleEditor::keyPressEvent(QKeyEvent* event)
+{
+ switch (event->key()) {
+ case Qt::Key_Escape:
+ emit roleEditingCanceled(m_index, m_role, toPlainText());
+ event->accept();
+ return;
+ case Qt::Key_Enter:
+ case Qt::Key_Return:
+ emit roleEditingFinished(m_index, m_role, toPlainText());
+ event->accept();
+ return;
+ default:
+ break;
+ }
+
+ KTextEdit::keyPressEvent(event);
+ autoAdjustSize();
+}
+
+void KItemListRoleEditor::autoAdjustSize()
+{
+ const qreal requiredWidth = document()->size().width();
+ const qreal availableWidth = size().width() - 2 * frameWidth();
+ if (requiredWidth > availableWidth) {
+ qreal newWidth = requiredWidth + 2 * frameWidth();
+ if (parentWidget() && pos().x() + newWidth > parentWidget()->width()) {
+ newWidth = parentWidget()->width() - pos().x();
+ }
+ resize(newWidth, size().height());
+ }
+}
+
+#include "kitemlistroleeditor.moc"
--- /dev/null
+/***************************************************************************
+ * Copyright (C) 2012 by Peter Penz <peter.penz19@gmail.com> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#ifndef KITEMLISTROLEEDITOR_H
+#define KITEMLISTROLEEDITOR_H
+
+#include "libdolphin_export.h"
+
+#include <KTextEdit>
+
+/**
+ * @brief
+ */
+class LIBDOLPHINPRIVATE_EXPORT KItemListRoleEditor : public KTextEdit
+{
+ Q_OBJECT
+
+public:
+ explicit KItemListRoleEditor(QWidget* parent);
+ virtual ~KItemListRoleEditor();
+
+ void setIndex(int index);
+ int index() const;
+
+ void setRole(const QByteArray& role);
+ QByteArray role() const;
+
+ virtual bool eventFilter(QObject* watched, QEvent* event);
+
+signals:
+ void roleEditingFinished(int index, const QByteArray& role, const QVariant& value);
+ void roleEditingCanceled(int index, const QByteArray& role, const QVariant& value);
+
+protected:
+ virtual bool event(QEvent* event);
+ virtual void keyPressEvent(QKeyEvent* event);
+
+private slots:
+ /**
+ * Increases the width of the editor in case if there is not
+ * enough room for the text.
+ */
+ void autoAdjustSize();
+
+private:
+ int m_index;
+ QByteArray m_role;
+
+};
+
+#endif
#include <QTimer>
#include <views/draganddrophelper.h>
-#include <views/renamedialog.h>
#include <KDebug>
void FoldersPanel::rename(const KFileItem& item)
{
- // TODO: Inline renaming is not supported anymore in Dolphin 2.0
- if (false /* GeneralSettings::renameInline() */) {
- //const QModelIndex dirIndex = m_dolphinModel->indexForItem(item);
- //const QModelIndex proxyIndex = m_proxyModel->mapFromSource(dirIndex);
- //m_treeView->edit(proxyIndex);
- } else {
- RenameDialog* dialog = new RenameDialog(this, KFileItemList() << item);
- dialog->setAttribute(Qt::WA_DeleteOnClose);
- dialog->show();
- dialog->raise();
- dialog->activateWindow();
- }
+ const int index = fileItemModel()->index(item);
+ m_controller->view()->editRole(index, "name");
}
bool FoldersPanel::urlChanged()
// opening the folders panel.
view->setOpacity(0);
+ connect(view, SIGNAL(roleEditingFinished(int,QByteArray,QVariant)),
+ this, SLOT(slotRoleEditingFinished(int,QByteArray,QVariant)));
+
KFileItemModel* model = new KFileItemModel(this);
model->setShowDirectoriesOnly(true);
model->setShowHiddenFiles(FoldersPanelSettings::hiddenFilesShown());
}
}
+void FoldersPanel::slotRoleEditingFinished(int index, const QByteArray& role, const QVariant& value)
+{
+ if (role == "name") {
+ const KFileItem item = fileItemModel()->fileItem(index);
+ const QString newName = value.toString();
+ if (!newName.isEmpty() && newName != item.text() && newName != QLatin1String(".") && newName != QLatin1String("..")) {
+ KonqOperations::rename(this, item.url(), newName);
+ }
+ }
+}
+
void FoldersPanel::slotLoadingCompleted()
{
if (m_controller->view()->opacity() == 0) {
void slotItemContextMenuRequested(int index, const QPointF& pos);
void slotViewContextMenuRequested(const QPointF& pos);
void slotItemDropEvent(int index, QGraphicsSceneDragDropEvent* event);
+ void slotRoleEditingFinished(int index, const QByteArray& role, const QVariant& value);
void slotLoadingCompleted();
{
if (m_progress < 100) {
// Show the progress information and hide the extensions
+ m_stopButton->show();
+ m_progressTextLabel->show();
+ m_progressBar->show();
setExtensionsVisible(false);
} else {
// Hide the progress information and show the extensions
this, SLOT(slotSortRoleChangedByHeader(QByteArray,QByteArray)));
connect(view, SIGNAL(visibleRolesChanged(QList<QByteArray>,QList<QByteArray>)),
this, SLOT(slotVisibleRolesChangedByHeader(QList<QByteArray>,QList<QByteArray>)));
+ connect(view, SIGNAL(roleEditingFinished(int,QByteArray,QVariant)),
+ this, SLOT(slotRoleEditingFinished(int,QByteArray,QVariant)));
connect(view->header(), SIGNAL(columnWidthChanged(QByteArray,qreal,qreal)),
this, SLOT(slotHeaderColumnWidthChanged(QByteArray,qreal,qreal)));
void DolphinView::renameSelectedItems()
{
- KFileItemList items = selectedItems();
- const int itemCount = items.count();
- if (itemCount < 1) {
- return;
- }
-
- // TODO: The new view-engine introduced with Dolphin 2.0 does not support inline
- // renaming yet.
- /*if ((itemCount == 1) && DolphinSettings::instance().generalSettings()->renameInline()) {
- const QModelIndex dirIndex = m_viewAccessor.dirModel()->indexForItem(items.first());
- const QModelIndex proxyIndex = m_viewAccessor.proxyModel()->mapFromSource(dirIndex);
- m_viewAccessor.itemView()->edit(proxyIndex);
- } else {*/
- RenameDialog* dialog = new RenameDialog(this, items);
- dialog->setAttribute(Qt::WA_DeleteOnClose);
- dialog->show();
- dialog->raise();
- dialog->activateWindow();
- //}
-
- // Assure that the current index remains visible when KFileItemModel
- // will notify the view about changed items (which might result in
- // a changed sorting).
- m_assureVisibleCurrentIndex = true;
+ const KFileItemList items = selectedItems();
+ if (items.isEmpty()) {
+ return;
+ }
+
+ if (items.count() == 1) {
+ const int index = fileItemModel()->index(items.first());
+ m_container->controller()->view()->editRole(index, "name");
+ } else {
+ RenameDialog* dialog = new RenameDialog(this, items);
+ dialog->setAttribute(Qt::WA_DeleteOnClose);
+ dialog->show();
+ dialog->raise();
+ dialog->activateWindow();
+ }
+
+ // Assure that the current index remains visible when KFileItemModel
+ // will notify the view about changed items (which might result in
+ // a changed sorting).
+ m_assureVisibleCurrentIndex = true;
}
void DolphinView::trashSelectedItems()
emit visibleRolesChanged(m_visibleRoles, previousVisibleRoles);
}
+void DolphinView::slotRoleEditingFinished(int index, const QByteArray& role, const QVariant& value)
+{
+ if (role == "name") {
+ const KFileItem item = fileItemModel()->fileItem(index);
+ const QString newName = value.toString();
+ if (!newName.isEmpty() && newName != item.text() && newName != QLatin1String(".") && newName != QLatin1String("..")) {
+ KonqOperations::rename(this, item.url(), newName);
+ }
+ }
+}
+
KFileItemModel* DolphinView::fileItemModel() const
{
return static_cast<KFileItemModel*>(m_container->controller()->model());
void slotVisibleRolesChangedByHeader(const QList<QByteArray>& current,
const QList<QByteArray>& previous);
+ void slotRoleEditingFinished(int index, const QByteArray& role, const QVariant& value);
+
/**
* Observes the item with the URL \a url. As soon as the directory
* model indicates that the item is available, the item will
#include <KNewFileMenu>
#include <KSelectAction>
#include <KToggleAction>
-#include <KRun>
#include <KPropertiesDialog>
#include <KIcon>