texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Gavin D. Smith
Date: Wed, 30 Nov 2022 13:36:38 -0500 (EST)

branch: old/qt-info
commit 1010075710ebebecbd3e802e4ed912dc58f3b3f1
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Apr 11 20:13:41 2019 +0100

    call setRunsOnSubFrames(true)
---
 js/docbrowser/mainwindow.cpp |  3 ++-
 js/docbrowser/mainwindow.ui  | 35 -----------------------------------
 2 files changed, 2 insertions(+), 36 deletions(-)

diff --git a/js/docbrowser/mainwindow.cpp b/js/docbrowser/mainwindow.cpp
index 7dd87405f9..c31968094d 100644
--- a/js/docbrowser/mainwindow.cpp
+++ b/js/docbrowser/mainwindow.cpp
@@ -83,6 +83,7 @@ MainWindow::inject_js_file (const QString &filename, 
QWebEngineProfile *profile)
 
   QWebEngineScript s;
   s.setSourceCode(script);
+  s.setRunsOnSubFrames(true);
   s.setInjectionPoint(QWebEngineScript::DocumentCreation);
   s.setWorldId(QWebEngineScript::MainWorld);
   profile->scripts()->insert(s);
@@ -161,7 +162,7 @@ void MainWindow::quit()
 
 void MainWindow::focusChanged (QWidget *old, QWidget *now)
 {
-    if (now != ui->promptCombo)
+    if (now == ui->webEngineView)
        core->hide_prompt();
 }
 
diff --git a/js/docbrowser/mainwindow.ui b/js/docbrowser/mainwindow.ui
index df7cb840e3..d6a6ea910e 100644
--- a/js/docbrowser/mainwindow.ui
+++ b/js/docbrowser/mainwindow.ui
@@ -41,41 +41,6 @@
         <property name="editable">
          <bool>true</bool>
         </property>
-        <item>
-         <property name="text">
-          <string>toasters</string>
-         </property>
-        </item>
-        <item>
-         <property name="text">
-          <string>drinks vending machines</string>
-         </property>
-        </item>
-        <item>
-         <property name="text">
-          <string>cans of pickled onions</string>
-         </property>
-        </item>
-        <item>
-         <property name="text">
-          <string>cans of beans</string>
-         </property>
-        </item>
-        <item>
-         <property name="text">
-          <string>cans of tomatoes</string>
-         </property>
-        </item>
-        <item>
-         <property name="text">
-          <string>light goods vehicles</string>
-         </property>
-        </item>
-        <item>
-         <property name="text">
-          <string>dental floss</string>
-         </property>
-        </item>
        </widget>
       </item>
      </layout>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]