diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-16 15:28:00 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-16 15:29:59 +0530 |
| commit | 041f8933be28d0fcff1196792f30c5ca3176c155 (patch) | |
| tree | 5fceaf5844f3312e8db63425c5c25825df594861 /src/widgets/MainWindow.cpp | |
| parent | 350d2bd7ccf80b91abdff154344f0ce88080a195 (diff) | |
| download | null-browser-041f8933be28d0fcff1196792f30c5ca3176c155.tar.gz null-browser-041f8933be28d0fcff1196792f30c5ca3176c155.zip | |
Add configuration class
Diffstat (limited to 'src/widgets/MainWindow.cpp')
| -rw-r--r-- | src/widgets/MainWindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/MainWindow.cpp b/src/widgets/MainWindow.cpp index e2e54da..289e629 100644 --- a/src/widgets/MainWindow.cpp +++ b/src/widgets/MainWindow.cpp @@ -21,7 +21,8 @@ MainWindow::MainWindow() { centralWidget()->setLayout(layout); // Web engine - auto webViewStack = new WebViewStack(new QWebEngineProfile("web-browser")); + auto webViewStack = new WebViewStack((const Configuration *)&configuration, + new QWebEngineProfile("web-browser")); layout->addWidget(webViewStack); // Command input @@ -44,8 +45,7 @@ void MainWindow::keyPressEvent(QKeyEvent *event) { inputMediator->showCommandInput(""); } else if (combo.key() == Qt::Key_T && combo.keyboardModifiers().testFlag(Qt::ControlModifier)) { - inputMediator->openUrl(QUrl("https://lite.duckduckgo.com"), - OpenType::OpenUrlInTab); + inputMediator->showTabsInput(); } else if (combo.key() == Qt::Key_J && combo.keyboardModifiers().testFlag(Qt::ControlModifier)) { inputMediator->nextWebView(); |
