X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/f8fa4e8df155250fa546288caf9bb89b0044f91b..b1c9b5126d:/src/renamedialog.h diff --git a/src/renamedialog.h b/src/renamedialog.h index 3aa2ff72d..1eaae2c61 100644 --- a/src/renamedialog.h +++ b/src/renamedialog.h @@ -26,6 +26,7 @@ class KFileItem; +class KFileItemList; class KLineEdit; /** @@ -52,7 +53,7 @@ class LIBDOLPHINPRIVATE_EXPORT RenameDialog : public KDialog Q_OBJECT public: - explicit RenameDialog(const KUrl::List& urls, const QList& items); + explicit RenameDialog(QWidget *parent, const KFileItemList& items); virtual ~RenameDialog(); /** @@ -61,7 +62,7 @@ public: * is part of the returned string. If the returned string is empty, * then RenameDialog::errorString() should be used to show the reason * of having an empty string (e. g. if the # character has - * been deleted by the user, although more then one item should be + * been deleted by the user, although more than one item should be * renamed). */ const QString& newName() const @@ -80,22 +81,6 @@ public: protected slots: virtual void slotButtonClicked(int button); -private: - /** - * Returns the extension string for a filename, which contains all - * file extensions. Version numbers like in "cmake-2.4.5" don't count - * as file extension. If the version numbers follow after a valid extension, they - * are part of the extension string. - * - * Examples (name -> extension string): - * "Image.gif" -> ".gif" - * "package.tar.gz" -> ".tar.gz" - * "cmake-2.4.5" -> "" - * "Image.1.12.gif" -> ".gif" - * "Image.tar.1.12.gz" -> ".tar.1.12.gz" - */ - static QString extensionString(const QString& name); - private: bool m_renameOneItem; KLineEdit* m_lineEdit;