|
2 | 2 |
|
3 | 3 | #include <QFileDialog> |
4 | 4 | #include <QLoggingCategory> |
| 5 | + |
| 6 | +#if QT_VERSION > QT_VERSION_CHECK(6, 10, 0) |
| 7 | + #include "FrmExtensionManager.h" |
| 8 | + #include "FrmExtensionStore.h" |
| 9 | +#endif |
| 10 | +#include "FrmWebBrowser.h" |
5 | 11 | #include "DlgSettings.h" |
6 | 12 | #include "ui_DlgSettings.h" |
7 | 13 |
|
8 | 14 | static Q_LOGGING_CATEGORY(log, "WebBrowser.Parameter") |
9 | | -CDlgSettings::CDlgSettings(CParameterWebBrowser *para, QWidget *parent) |
| 15 | +CDlgSettings::CDlgSettings(QWebEngineProfile *pProfile, |
| 16 | + CParameterWebBrowser *para, |
| 17 | + QWidget *parent) |
10 | 18 | : QDialog(parent) |
11 | 19 | , ui(new Ui::CDlgSettings) |
12 | 20 | , m_pPara(para) |
@@ -48,6 +56,13 @@ CDlgSettings::CDlgSettings(CParameterWebBrowser *para, QWidget *parent) |
48 | 56 | m_pMediaDevices = new CFrmMediaDevices(true, this); |
49 | 57 | m_pMediaDevices->SetParameter(&m_pPara->m_MediaDevices.m_Para); |
50 | 58 | ui->tabWidget->addTab(m_pMediaDevices, m_pMediaDevices->windowIcon(), m_pMediaDevices->windowTitle()); |
| 59 | + |
| 60 | +#if QT_VERSION > QT_VERSION_CHECK(6, 10, 0) |
| 61 | + CFrmExtensionManager* pExtension = new CFrmExtensionManager(pProfile); |
| 62 | + ui->tabWidget->addTab(pExtension, pExtension->windowIcon(), pExtension->windowTitle()); |
| 63 | + CFrmExtensionStore* pStore = new CFrmExtensionStore(); |
| 64 | + ui->tabWidget->addTab(pStore, pStore->windowIcon(), pStore->windowTitle()); |
| 65 | +#endif |
51 | 66 | } |
52 | 67 |
|
53 | 68 | CDlgSettings::~CDlgSettings() |
|
0 commit comments