From cd601a582d5454dfa1818bae7e50864e9bece575 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Wed, 15 Oct 2014 19:56:52 +0200 Subject: Port to QDialog --- src/views/renamedialog.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/views/renamedialog.h') 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 +#include #include class KLineEdit; class KIntSpinBox; - +class QPushButton; #include /** * @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 -- cgit v1.3.1