Skip to content

Commit 7221eaa

Browse files
committed
fix dbmanager resource dependency and some other warnings
1 parent 7fb7a64 commit 7221eaa

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

python/plugins/db_manager/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
SET (DB_MANAGER_PLUGIN_DIR ${QGIS_DATA_DIR}/python/plugins/db_manager)
22

3+
ADD_SUBDIRECTORY(db_plugins)
4+
ADD_SUBDIRECTORY(icons)
5+
36
FILE(GLOB OTHER_FILES LICENCE README TODO)
47
FILE(GLOB PY_FILES *.py)
58

@@ -12,6 +15,3 @@ INSTALL(FILES ${OTHER_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR})
1215
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR})
1316
INSTALL(FILES ui/__init__.py ${PYUI_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR}/ui)
1417
INSTALL(FILES ${PYRC_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR})
15-
16-
ADD_SUBDIRECTORY(db_plugins)
17-
ADD_SUBDIRECTORY(icons)
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FILE(GLOB PY_FILES *.py)
2-
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR}/db_plugins)
3-
41
ADD_SUBDIRECTORY(postgis)
52
ADD_SUBDIRECTORY(spatialite)
3+
4+
FILE(GLOB PY_FILES *.py)
5+
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR}/db_plugins)

src/core/composer/qgscomposerscalebar.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@
2828
#include <QPainter>
2929
#include <cmath>
3030

31-
QgsComposerScaleBar::QgsComposerScaleBar( QgsComposition* composition ): QgsComposerItem( composition ), mComposerMap( 0 ), mStyle( 0 ),
32-
mNumUnitsPerSegment( 0 ), mSegmentMillimeters( 0.0 ), mAlignment( Left )
31+
QgsComposerScaleBar::QgsComposerScaleBar( QgsComposition* composition )
32+
: QgsComposerItem( composition )
33+
, mComposerMap( 0 )
34+
, mNumUnitsPerSegment( 0 )
35+
, mStyle( 0 )
36+
, mSegmentMillimeters( 0.0 )
37+
, mAlignment( Left )
3338
{
3439
applyDefaultSettings();
3540
applyDefaultSize();

src/core/qgsbrowsermodel.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ Qt::ItemFlags QgsBrowserModel::flags( const QModelIndex & index ) const
113113
QgsDataItem* ptr = ( QgsDataItem* ) index.internalPointer();
114114
if ( ptr->type() == QgsDataItem::Layer )
115115
{
116-
QgsLayerItem *layer = ( QgsLayerItem* ) ptr;
117116
flags |= Qt::ItemIsDragEnabled;
118117
}
119118
if ( ptr->acceptDrop() )

src/core/raster/qgsrasterlayer.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -3261,8 +3261,6 @@ bool QgsRasterLayer::writeSymbology( QDomNode & layer_node, QDomDocument & docum
32613261
QStringList sl = subLayers();
32623262
QStringList sls = mDataProvider->subLayerStyles();
32633263

3264-
QStringList::const_iterator layerStyle = sls.begin();
3265-
32663264
// <mDrawingStyle>
32673265
QDomElement drawStyleElement = document.createElement( "mDrawingStyle" );
32683266
QDomText drawStyleText = document.createTextNode( drawingStyleAsString() );

src/ui/qgsoptionsbase.ui

+4-4
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@
16151615
<property name="title">
16161616
<string>Other settings</string>
16171617
</property>
1618-
<layout class="QGridLayout" name="gridLayout_12">
1618+
<layout class="QGridLayout" name="gridLayout_28">
16191619
<item row="0" column="0">
16201620
<widget class="QCheckBox" name="chkDisableAttributeValuesDlg">
16211621
<property name="text">
@@ -1647,7 +1647,7 @@
16471647
<widget class="QComboBox" name="mValidateGeometries"/>
16481648
</item>
16491649
<item row="3" column="0">
1650-
<widget class="QLabel" name="label_21">
1650+
<widget class="QLabel" name="label_26">
16511651
<property name="text">
16521652
<string>Join style for curve offset</string>
16531653
</property>
@@ -1657,7 +1657,7 @@
16571657
<widget class="QComboBox" name="mOffsetJoinStyleComboBox"/>
16581658
</item>
16591659
<item row="4" column="0">
1660-
<widget class="QLabel" name="label_22">
1660+
<widget class="QLabel" name="label_27">
16611661
<property name="text">
16621662
<string>Quadrantsegments for curve offset</string>
16631663
</property>
@@ -1667,7 +1667,7 @@
16671667
<widget class="QSpinBox" name="mOffsetQuadSegSpinBox"/>
16681668
</item>
16691669
<item row="5" column="0">
1670-
<widget class="QLabel" name="label_23">
1670+
<widget class="QLabel" name="label_28">
16711671
<property name="text">
16721672
<string>Miter limit for curve offset</string>
16731673
</property>

0 commit comments

Comments
 (0)