diff options
| author | Montel Laurent <[email protected]> | 2014-10-15 19:56:52 +0200 |
|---|---|---|
| committer | Montel Laurent <[email protected]> | 2014-10-15 19:56:52 +0200 |
| commit | cd601a582d5454dfa1818bae7e50864e9bece575 (patch) | |
| tree | 773516936302ead577028daf3169c61317edad5e /src/views/renamedialog.h | |
| parent | dfd3232496970f92cf19ff57d0886ccf176c772a (diff) | |
Port to QDialog
Diffstat (limited to 'src/views/renamedialog.h')
| -rw-r--r-- | src/views/renamedialog.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/views/renamedialog.h b/src/views/renamedialog.h index 430c707a3..045161ae4 100644 --- a/src/views/renamedialog.h +++ b/src/views/renamedialog.h @@ -22,18 +22,18 @@ #include "libdolphin_export.h" -#include <KDialog> +#include <QDialog> #include <KFileItem> class KLineEdit; class KIntSpinBox; - +class QPushButton; #include <QString> /** * @brief Dialog for renaming a variable number of files. */ -class LIBDOLPHINPRIVATE_EXPORT RenameDialog : public KDialog +class LIBDOLPHINPRIVATE_EXPORT RenameDialog : public QDialog { Q_OBJECT @@ -41,10 +41,8 @@ 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: @@ -67,6 +65,7 @@ private: KFileItemList m_items; bool m_allExtensionsDifferent; KIntSpinBox* m_spinBox; + QPushButton* m_okButton; }; #endif |
