// Qt toolkit headers.
#include <QDialog>
+#include <QLabel>
#include <QtSql>
class DomainSettingsDialog : public QDialog
// The primary constructor.
explicit DomainSettingsDialog(QWidget *parent = nullptr);
+signals:
+ void domainSettingsUpdated() const;
+
private Q_SLOTS:
// The private slots.
void apply() const;
void reset() const;
void showAddMessageBox();
void showDeleteMessageBox() const;
+ void userAgentChanged(const QString updatedUserAgent) const;
private:
- // The private functions.
- void updateUi() const;
-
// The private variables.
QPushButton *applyButtonPointer;
QPushButton *deleteDomainButtonPointer;
QWidget *domainSettingsWidgetPointer;
QSqlTableModel *domainsTableModelPointer;
QComboBox *javaScriptComboBoxPointer;
+ QLabel *javaScriptLabelPointer;
QPushButton *resetButtonPointer;
+ QComboBox *userAgentComboBoxPointer;
+ QLabel *userAgentLabelPointer;
+
+ // The private functions.
+ void populateJavaScriptLabel() const;
+ void populateUserAgentLabel(const QString &userAgentName) const;
+ void updateUi() const;
};
#endif