- webEngineViewPointer->setUrl(QUrl::fromUserInput(searchEngineUrl + urlFromUser));
- }
-}
-
-void BrowserView::openDomainSettings() const
-{
- // Get a list of the top level widgets.
- const QWidgetList topLevelWidgets = QApplication::topLevelWidgets();
-
- // Initialize a domain settings window exists boolean.
- bool domainSettingsWindowExists = false;
-
- // Iterate through the top level widgets.
- for (QWidget *widgetPointer : topLevelWidgets)
- {
- // Check for an existing domain settings window.
- if (widgetPointer->objectName() == QStringLiteral("domain_settings"))
- {
- // Show the existing domain settings window if it is hidden.
- widgetPointer->show();
-
- // Raise the existing domain settings window if it is below other windows.
- widgetPointer->raise();
-
- // Restore the existing domain settings window if it has been minimized.
- if (widgetPointer->isMinimized()) {
- widgetPointer->showNormal();
- }
-
- // Activate the existing domain settings window, which brings its virtual desktop into focus.
- widgetPointer->activateWindow();
-
- // Update the domain settings window exists boolean.
- domainSettingsWindowExists = true;
- }
- }
-
- if (!domainSettingsWindowExists)
- {
- // Instantiate the domain settings window.
- DomainSettingsWindow *domainSettingsWindowPointer = new DomainSettingsWindow();
-
- // Show the window.
- domainSettingsWindowPointer->show();