X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/dacded2afdfa85a16b99d8522284155cd5175ee5..bd47eb2e6d:/src/views/renamedialog.h diff --git a/src/views/renamedialog.h b/src/views/renamedialog.h index 430c707a3..7ead0ca9f 100644 --- a/src/views/renamedialog.h +++ b/src/views/renamedialog.h @@ -20,20 +20,20 @@ #ifndef RENAMEDIALOG_H #define RENAMEDIALOG_H -#include "libdolphin_export.h" +#include "dolphin_export.h" -#include +#include #include - -class KLineEdit; -class KIntSpinBox; - #include +class QLineEdit; +class QSpinBox; +class QPushButton; + /** * @brief Dialog for renaming a variable number of files. */ -class LIBDOLPHINPRIVATE_EXPORT RenameDialog : public KDialog +class DOLPHIN_EXPORT RenameDialog : public QDialog { Q_OBJECT @@ -41,12 +41,16 @@ public: explicit RenameDialog(QWidget* parent, const KFileItemList& items); virtual ~RenameDialog(); -protected slots: - virtual void slotButtonClicked(int button); +signals: + void renamingFinished(const QList& urls); private slots: + void slotAccepted(); void slotTextChanged(const QString& newName); +protected: + void showEvent(QShowEvent* event) override; + private: void renameItems(); void renameItem(const KFileItem &item, const QString& newName); @@ -62,11 +66,13 @@ private: private: bool m_renameOneItem; + QList m_renamedItems; QString m_newName; - KLineEdit* m_lineEdit; + QLineEdit* m_lineEdit; KFileItemList m_items; bool m_allExtensionsDifferent; - KIntSpinBox* m_spinBox; + QSpinBox* m_spinBox; + QPushButton* m_okButton; }; #endif