]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/renamedialog.h
[KStandardItemListWidget] Update icon when palette changes
[dolphin.git] / src / views / renamedialog.h
index 045161ae4c6bee5896dbb91a34539c1b587f052f..3964c0a5c4fe05e14db941dedb22131f60189118 100644 (file)
 #ifndef RENAMEDIALOG_H
 #define RENAMEDIALOG_H
 
-#include "libdolphin_export.h"
+#include "dolphin_export.h"
 
 #include <QDialog>
 #include <KFileItem>
+#include <QString>
 
-class KLineEdit;
-class KIntSpinBox;
+class QLineEdit;
+class QSpinBox;
 class QPushButton;
-#include <QString>
 
 /**
  * @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;
 };