Skip to content

Commit 3b519cf

Browse files
author
mhugent
committed
Moved code to set windows style to constructor of QgsSingleSymbolDialog. Removed an assert statement in QgsOgrProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5884 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 53a33de commit 3b519cf

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

src/gui/qgssinglesymboldialog.cpp

+12-8
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,23 @@ QgsSingleSymbolDialog::QgsSingleSymbolDialog(): QDialog(), mVectorLayer(0)
3333
#ifdef QGISDEBUG
3434
qWarning("constructor QgsSingleSymbolDialog called WITHOUT a layer");
3535
#endif
36+
#ifdef Q_WS_WIN
37+
// Coloured labels do not work under the Windows XP style - use plain Windows buttons instead
38+
btnFillColor->setStyle(&mWindowsStyle);
39+
btnOutlineColor->setStyle(&mWindowsStyle);
40+
#endif
3641
}
3742

3843
QgsSingleSymbolDialog::QgsSingleSymbolDialog(QgsVectorLayer * layer): QDialog(), mVectorLayer(layer)
3944
{
4045
setupUi(this);
46+
47+
#ifdef Q_WS_WIN
48+
// Coloured labels do not work under the Windows XP style - use plain Windows buttons instead
49+
btnFillColor->setStyle(&mWindowsStyle);
50+
btnOutlineColor->setStyle(&mWindowsStyle);
51+
#endif
52+
4153
#ifdef QGISDEBUG
4254
qWarning("constructor QgsSingleSymbolDialog called WITH a layer");
4355
#endif
@@ -340,19 +352,11 @@ void QgsSingleSymbolDialog::set ( const QgsSymbol *sy )
340352
// old Qt3 idiom
341353
// lblFillColor->setPaletteBackgroundColor(sy->brush().color());
342354
// new Qt4 idiom
343-
#ifdef Q_WS_WIN
344-
// Coloured labels do not work under the Windows XP style - use plain Windows buttons instead
345-
btnFillColor->setStyle(&mWindowsStyle);
346-
#endif
347355
btnFillColor->setPalette( sy->brush().color() );
348356

349357
// old Qt3 idiom
350358
// lblOutlineColor->setPaletteBackgroundColor(sy->pen().color());
351359
// new Qt4 idiom
352-
#ifdef Q_WS_WIN
353-
// Coloured labels do not work under the Windows XP style - use plain Windows buttons instead
354-
btnOutlineColor->setStyle(&mWindowsStyle);
355-
#endif
356360
btnOutlineColor->setPalette( sy->pen().color() );
357361

358362
//stylebutton->setName(QgsSymbologyUtils::penStyle2Char(sy->pen().style()));

src/providers/ogr/qgsogrprovider.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ void QgsOgrProvider::select(QgsRect *rect, bool useIntersect)
635635
}else{
636636
#ifdef QGISDEBUG
637637
QgsLogger::warning("Setting spatial filter failed!");
638-
assert(result==OGRERR_NONE);
639638
#endif
640639
}
641640
OGRGeometryFactory::destroyGeometry(filter);

src/providers/wms/qgshttptransaction.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ bool QgsHttpTransaction::getSynchronously(QByteArray &respondedContent, int redi
9696

9797
mWatchdogTimer = new QTimer( this );
9898

99-
QgsDebugMsg("QgsHttpTransaction::getSynchronously: qurl.host() is '" + qurl.host()+ "'.");
99+
//QgsDebugMsg("QgsHttpTransaction::getSynchronously: qurl.host() is '" + qurl.host()+ "'.");
100100

101101
httpresponse.truncate(0);
102102

@@ -152,8 +152,8 @@ bool QgsHttpTransaction::getSynchronously(QByteArray &respondedContent, int redi
152152
#ifdef QGISDEBUG
153153
QgsDebugMsg("QgsHttpTransaction::getSynchronously: Response received.");
154154

155-
// QString httpresponsestring(httpresponse);
156-
// QgsDebugMsg("QgsHttpTransaction::getSynchronously: Response received; being '" + httpresponsestring + "'.");
155+
//QString httpresponsestring(httpresponse);
156+
//QgsDebugMsg("QgsHttpTransaction::getSynchronously: Response received; being '" + httpresponsestring + "'.");
157157
#endif
158158

159159
delete http;

src/providers/wms/qgswmsprovider.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ bool QgsWmsProvider::retrieveServerCapabilities(bool forceRefresh)
693693

694694
QByteArray QgsWmsProvider::retrieveUrl(QString url)
695695
{
696+
QgsDebugMsg("WMS request Url: " + url);
696697
QgsHttpTransaction http(
697698
url,
698699
mHttpProxyHost,

0 commit comments

Comments
 (0)