┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/renamedialog.h
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2015-02-27 11:30:27 +0100
committerEmmanuel Pescosta <[email protected]>2015-02-27 11:30:27 +0100
commit9aee5d22513f0367febab54b38b3a7dc58d120bb (patch)
tree99cf391070ac5d4650a3f1b309c3ec2e814f1ac6 /src/views/renamedialog.h
parentf025aeb63aa2a38e91c43d99ba9955793d3adf1e (diff)
parentb701b7e4edefb628d6f8b14146b2e299bd0ce5fc (diff)
Merge branch 'frameworks'
Diffstat (limited to 'src/views/renamedialog.h')
-rw-r--r--src/views/renamedialog.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/views/renamedialog.h b/src/views/renamedialog.h
index 29ef8bdf1..a1953e8b3 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 <KDialog>
+#include <QDialog>
#include <KFileItem>
-
-class KLineEdit;
-class KIntSpinBox;
-
#include <QString>
+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,14 +41,13 @@ public:
explicit RenameDialog(QWidget* parent, const KFileItemList& items);
virtual ~RenameDialog();
-protected slots:
- virtual void slotButtonClicked(int button);
-
private slots:
+ void slotAccepted();
void slotTextChanged(const QString& newName);
private:
void renameItems();
+ void renameItem(const KFileItem &item, const QString& newName);
/**
* @return Returns the string \p name, where the characters represented by
@@ -62,10 +61,11 @@ 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;
};
#endif