X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/fa988586bc923b33497cbc97aaac07fc93a4ca83..86d2aa321d54bf3ae6c95476d649634fd0ff68d5:/src/views/renamedialog.h diff --git a/src/views/renamedialog.h b/src/views/renamedialog.h index 045161ae4..3964c0a5c 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; +class QLineEdit; +class QSpinBox; class QPushButton; -#include /** * @brief Dialog for renaming a variable number of files. */ -class LIBDOLPHINPRIVATE_EXPORT RenameDialog : public QDialog +class DOLPHIN_EXPORT RenameDialog : public QDialog { Q_OBJECT @@ -45,6 +45,9 @@ 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); @@ -61,10 +64,10 @@ private: private: bool m_renameOneItem; QString m_newName; - KLineEdit* m_lineEdit; + QLineEdit* m_lineEdit; KFileItemList m_items; bool m_allExtensionsDifferent; - KIntSpinBox* m_spinBox; + QSpinBox* m_spinBox; QPushButton* m_okButton; };