Skip to content

Commit dde7032

Browse files
committedNov 23, 2011
Enable html inspection of web views in debug mode
1 parent d219534 commit dde7032

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed
 

‎doc/qgisdoc.css renamed to ‎resources/css/qgisdoc.css

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ body{
1111
font-weight: bold;
1212
color: #800000;
1313
}
14-
span.header{
14+
h1, span.header{
1515
font-family: trebuchet,arial,helvetica,sans;
1616
font-size: 18pt;
1717
}
18-
span.subheader{
18+
h2, span.subheader{
1919
font-family: trebuchet,arial,helvetica,sans;
2020
font-size: 14pt;
2121
font-weight: normal;
@@ -27,14 +27,7 @@ dt{
2727
ul.small{
2828
font-size: 9pt;
2929
}
30-
h2{
31-
font-size: 14pt;
32-
font-family: trebuchet,arial,helvetica,sans;
33-
font-weight: normal;
34-
}
3530
a.link.bar{
3631
font-size: 9pt;
3732
font-style: italic;
38-
}
39-
}
4033
}

‎resources/html/qgsrasterlayer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<!-- custom blueprint see http://ianli.com/blueprinter/?cw=20&gw=5&cc=24 -->
66
<link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen, projection" />
77
<link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
8+
<link rel="stylesheet" href="../css/qgisdoc.css" type="text/css" />
89
<script language="javascript" type="text/javascript" src="../js/jquery.js"></script>
910
<script language="javascript" type="text/javascript" src="../js/jquery.flot.js"></script>
1011
<script language="javascript" type="text/javascript" src="../js/jquery.flot.navigate.js"></script>

‎src/app/main.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <QPlastiqueStyle>
3333
#include <QTranslator>
3434
#include <QImageReader>
35+
#include <QWebSettings>
3536

3637
#include "qgscustomization.h"
3738
#include "qgspluginregistry.h"
@@ -740,6 +741,12 @@ int main( int argc, char *argv[] )
740741
}
741742

742743

744+
#ifdef QGISDEBUG
745+
//enable debugging in QWebViews when in debug mode
746+
QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
747+
#endif
748+
749+
743750
/////////////////////////////////////////////////////////////////////
744751
// Continue on to interactive gui...
745752
/////////////////////////////////////////////////////////////////////

‎src/app/qgsrasterlayerproperties.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,6 +1852,7 @@ void QgsRasterLayerProperties::metadataPageLoaded( bool theOkFlag )
18521852
//populate the metadata tab's text browser widget with raster metadata info
18531853
wvMetadata->page()->mainFrame()->addToJavaScriptWindowObject( "mRasterLayer", mRasterLayer );
18541854
wvMetadata->page()->mainFrame()->evaluateJavaScript( QString("setMetadata()"));
1855+
setWindowModality ( Qt::NonModal );
18551856
}
18561857

18571858
void QgsRasterLayerProperties::histogramPageLoaded( bool theOkFlag )

0 commit comments

Comments
 (0)