X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/175fe7ff47ccff39b0e77f80491a9701d025375e..b5cc2a6924cfd8f59611d3cec2edbb00a08b4ff1:/src/dolphinview.h diff --git a/src/dolphinview.h b/src/dolphinview.h index cffa52880..5cfd7904d 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -346,6 +346,9 @@ public slots: */ void requestActivation(); + /** Applies an item effect to all cut items of the clipboard. */ + void updateCutItems(); + signals: /** Is emitted if URL of the view has been changed to \a url. */ void urlChanged(const KUrl& url); @@ -404,6 +407,19 @@ private slots: */ void updateItemCount(); + /** + * Generates a preview image for each file item in \a items. + * The current preview settings (maximum size, 'Show Preview' menu) + * are respected. + */ + void generatePreviews(const KFileItemList& items); + + /** + * Replaces the icon of the item \a item by the preview pixmap + * \a pixmap. + */ + void showPreview(const KFileItem* item, const QPixmap& pixmap); + /** * Restores the x- and y-position of the contents if the * current view is part of the history. @@ -503,6 +519,18 @@ private: */ QAbstractItemView* itemView() const; + /** + * Returns true if the index is valid and represents + * the column KDirModel::Name. + */ + bool isValidNameIndex(const QModelIndex& index) const; + + /** + * Returns true, if the item \a item has been cut into + * the clipboard. + */ + bool isCutItem(const KFileItem& item) const; + private: bool m_showProgress; Mode m_mode;