From 38fff5cf836324f5958873fee55f3a67dcbef4b6 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 31 Jan 2018 15:45:44 +0100 Subject: Clean up ConfigurationWidget * use type safe connect syntax * use lambdas as slot for selecting programs * make accept and cancel non-members. They're not needed anywhere else. --- configurationwidget.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'configurationwidget.h') diff --git a/configurationwidget.h b/configurationwidget.h index 0ac05f5..08488cc 100644 --- a/configurationwidget.h +++ b/configurationwidget.h @@ -4,7 +4,6 @@ #include class QLineEdit; -class QPushButton; class ItemSelectionWidget; class ConfigurationWidget : public QDialog { @@ -16,9 +15,7 @@ class ConfigurationWidget : public QDialog { virtual void accept(); private slots: - void browseFfProbe(); - void browseFfMpeg(); - void browseMkvInfo(); + void browsePathforLE(QLineEdit *edit); private: void readSettings(); @@ -29,8 +26,6 @@ class ConfigurationWidget : public QDialog { QLineEdit *mFfProbe; QLineEdit *mFfMpeg; QLineEdit *mMkvInfo; - QPushButton *mAccept; - QPushButton *mCancel; ItemSelectionWidget *mCopyDirW; ItemSelectionWidget *mFavDirW; ItemSelectionWidget *mMimeTypeW; -- cgit v1.2.3-70-g09d2