Skip to content

Commit

Permalink
fix dbmanager resource dependency and some other warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 17, 2012
1 parent 7fb7a64 commit 7221eaa
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions python/plugins/db_manager/CMakeLists.txt
@@ -1,5 +1,8 @@
SET (DB_MANAGER_PLUGIN_DIR ${QGIS_DATA_DIR}/python/plugins/db_manager)

ADD_SUBDIRECTORY(db_plugins)
ADD_SUBDIRECTORY(icons)

FILE(GLOB OTHER_FILES LICENCE README TODO)
FILE(GLOB PY_FILES *.py)

Expand All @@ -12,6 +15,3 @@ INSTALL(FILES ${OTHER_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR})
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR})
INSTALL(FILES ui/__init__.py ${PYUI_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR}/ui)
INSTALL(FILES ${PYRC_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR})

ADD_SUBDIRECTORY(db_plugins)
ADD_SUBDIRECTORY(icons)
6 changes: 3 additions & 3 deletions python/plugins/db_manager/db_plugins/CMakeLists.txt
@@ -1,5 +1,5 @@
FILE(GLOB PY_FILES *.py)
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR}/db_plugins)

ADD_SUBDIRECTORY(postgis)
ADD_SUBDIRECTORY(spatialite)

FILE(GLOB PY_FILES *.py)
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR}/db_plugins)
9 changes: 7 additions & 2 deletions src/core/composer/qgscomposerscalebar.cpp
Expand Up @@ -28,8 +28,13 @@
#include <QPainter>
#include <cmath>

QgsComposerScaleBar::QgsComposerScaleBar( QgsComposition* composition ): QgsComposerItem( composition ), mComposerMap( 0 ), mStyle( 0 ),
mNumUnitsPerSegment( 0 ), mSegmentMillimeters( 0.0 ), mAlignment( Left )
QgsComposerScaleBar::QgsComposerScaleBar( QgsComposition* composition )
: QgsComposerItem( composition )
, mComposerMap( 0 )
, mNumUnitsPerSegment( 0 )
, mStyle( 0 )
, mSegmentMillimeters( 0.0 )
, mAlignment( Left )
{
applyDefaultSettings();
applyDefaultSize();
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsbrowsermodel.cpp
Expand Up @@ -113,7 +113,6 @@ Qt::ItemFlags QgsBrowserModel::flags( const QModelIndex & index ) const
QgsDataItem* ptr = ( QgsDataItem* ) index.internalPointer();
if ( ptr->type() == QgsDataItem::Layer )
{
QgsLayerItem *layer = ( QgsLayerItem* ) ptr;
flags |= Qt::ItemIsDragEnabled;
}
if ( ptr->acceptDrop() )
Expand Down
2 changes: 0 additions & 2 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -3261,8 +3261,6 @@ bool QgsRasterLayer::writeSymbology( QDomNode & layer_node, QDomDocument & docum
QStringList sl = subLayers();
QStringList sls = mDataProvider->subLayerStyles();

QStringList::const_iterator layerStyle = sls.begin();

// <mDrawingStyle>
QDomElement drawStyleElement = document.createElement( "mDrawingStyle" );
QDomText drawStyleText = document.createTextNode( drawingStyleAsString() );
Expand Down
8 changes: 4 additions & 4 deletions src/ui/qgsoptionsbase.ui
Expand Up @@ -1615,7 +1615,7 @@
<property name="title">
<string>Other settings</string>
</property>
<layout class="QGridLayout" name="gridLayout_12">
<layout class="QGridLayout" name="gridLayout_28">
<item row="0" column="0">
<widget class="QCheckBox" name="chkDisableAttributeValuesDlg">
<property name="text">
Expand Down Expand Up @@ -1647,7 +1647,7 @@
<widget class="QComboBox" name="mValidateGeometries"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_21">
<widget class="QLabel" name="label_26">
<property name="text">
<string>Join style for curve offset</string>
</property>
Expand All @@ -1657,7 +1657,7 @@
<widget class="QComboBox" name="mOffsetJoinStyleComboBox"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_22">
<widget class="QLabel" name="label_27">
<property name="text">
<string>Quadrantsegments for curve offset</string>
</property>
Expand All @@ -1667,7 +1667,7 @@
<widget class="QSpinBox" name="mOffsetQuadSegSpinBox"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_23">
<widget class="QLabel" name="label_28">
<property name="text">
<string>Miter limit for curve offset</string>
</property>
Expand Down

0 comments on commit 7221eaa

Please sign in to comment.