| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef SETTINGSDOWNLOADS_H |
| 4 | #define SETTINGSDOWNLOADS_H |
| 5 | |
| 6 | #include "gui/settings/settingspanel.h" |
| 7 | |
| 8 | #include "ui_settingsdownloads.h" |
| 9 | |
| 10 | class SettingsDownloads : public SettingsPanel { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | public: |
| 14 | explicit SettingsDownloads(Settings* settings, QWidget* parent = nullptr); |
| 15 | virtual ~SettingsDownloads(); |
| 16 | |
| 17 | virtual QIcon icon() const; |
| 18 | virtual QString title() const; |
| 19 | virtual void loadSettings(); |
| 20 | virtual void saveSettings(); |
| 21 | |
| 22 | private slots: |
| 23 | void selectDownloadsDirectory(); |
| 24 | |
| 25 | private: |
| 26 | Ui::SettingsDownloads* m_ui; |
| 27 | }; |
| 28 | |
| 29 | inline QString SettingsDownloads::title() const { |
| 30 | return tr("Downloads"); |
| 31 | } |
| 32 | |
| 33 | #endif // SETTINGSDOWNLOADS_H |