[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/libs/webkitkde
From:       Urs Wolfer <uwolfer () kde ! org>
Date:       2009-06-23 20:02:48
Message-ID: 1245787368.108491.29688.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 985955 by uwolfer:

* (re)-add web inspector; looks like it got removed while refactoring stuff...

 M  +1 -0      kdewebkit/settings/webkitsettings.cpp  
 M  +4 -0      part/webview.cpp  


--- trunk/playground/libs/webkitkde/kdewebkit/settings/webkitsettings.cpp \
#985954:985955 @@ -655,6 +655,7 @@
 #if QT_VERSION >= 0x040500
   QWebSettings::globalSettings()->setAttribute(QWebSettings::ZoomTextOnly, \
zoomTextOnly());  #endif
+  QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, \
isJavaScriptDebugEnabled());  \
QWebSettings::globalSettings()->setFontFamily(QWebSettings::StandardFont, \
stdFontName());  QWebSettings::globalSettings()->setFontFamily(QWebSettings::FixedFont, \
fixedFontName());  QWebSettings::globalSettings()->setFontFamily(QWebSettings::SerifFont, \
                serifFontName());
--- trunk/playground/libs/webkitkde/part/webview.cpp #985954:985955
@@ -162,6 +162,10 @@
         partActions.append(action);
     }
 
+    if (settings()->testAttribute(QWebSettings::DeveloperExtrasEnabled)) {
+        partActions.append(pageAction(QWebPage::InspectElement));
+    }
+
     partGroupMap.insert("partactions", partActions);
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic