Mercurial > trustbridge
comparison ui/proxysettingsdlg.h @ 1062:515345358b71
(issue41) Add and use a UseProxy checkbox
Using proxy no longer depends on the proxyUrl beeing empty
but rather on the value of the checkbox.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 10 Sep 2014 11:06:49 +0200 |
parents | 78798d3af8f0 |
children | 2a1aa9df8f11 |
comparison
equal
deleted
inserted
replaced
1061:db831a204a6b | 1062:515345358b71 |
---|---|
10 | 10 |
11 #include <QDialog> | 11 #include <QDialog> |
12 | 12 |
13 class QLineEdit; | 13 class QLineEdit; |
14 class QPushButton; | 14 class QPushButton; |
15 class QCheckBox; | |
15 | 16 |
16 /** | 17 /** |
17 * @file proxysettingsdlg.h | 18 * @file proxysettingsdlg.h |
18 * @brief Small dialog for proxy settings. | 19 * @brief Small dialog for proxy settings. |
19 */ | 20 */ |
30 void checkCanSave(const QString& val); | 31 void checkCanSave(const QString& val); |
31 | 32 |
32 /** @brief save the contents of mProxyURL in the settings. */ | 33 /** @brief save the contents of mProxyURL in the settings. */ |
33 void save(); | 34 void save(); |
34 | 35 |
36 /** @brief make the URL editiable depending on UseProxy setting. */ | |
37 void checkCanEdit(int state); | |
38 | |
35 private: | 39 private: |
36 QLineEdit *mProxyURL; | 40 QLineEdit *mProxyURL; |
37 QPushButton *mSaveButton; | 41 QPushButton *mSaveButton; |
42 QCheckBox *mCheckBox; | |
38 }; | 43 }; |
39 | 44 |
40 #endif // PROXYSETTINGSDLG_H | 45 #endif // PROXYSETTINGSDLG_H |