Skip to content
Permalink
Browse files

Fix warnings emitted by linguist when parsing sources

  • Loading branch information
manisandro authored and nyalldawson committed Jun 6, 2016
1 parent 49af957 commit 85fbea82af536b2e311cfb3f05aab36d1c3ce99d
@@ -1006,7 +1006,7 @@ QgsComposerLegendMenuProvider::QgsComposerLegendMenuProvider( QgsLayerTreeView*
, mWidget( w )
{}

QMenu*QgsComposerLegendMenuProvider::createContextMenu()
QMenu* QgsComposerLegendMenuProvider::createContextMenu()
{
if ( !mView->currentNode() )
return nullptr;
@@ -1018,7 +1018,7 @@ QMenu*QgsComposerLegendMenuProvider::createContextMenu()

if ( QgsLayerTree::isLayer( mView->currentNode() ) )
{
menu->addAction( tr( "Reset to defaults" ), mWidget, SLOT( resetLayerNodeToDefaults() ) );
menu->addAction( QObject::tr( "Reset to defaults" ), mWidget, SLOT( resetLayerNodeToDefaults() ) );
menu->addSeparator();
}

@@ -107,9 +107,8 @@ class QgsComposerLegendWidget: public QgsComposerItemBaseWidget, private Ui::Qgs
};


class QgsComposerLegendMenuProvider : public QObject, public QgsLayerTreeViewMenuProvider
class QgsComposerLegendMenuProvider : public QgsLayerTreeViewMenuProvider
{
Q_OBJECT

public:
QgsComposerLegendMenuProvider( QgsLayerTreeView* view, QgsComposerLegendWidget* w );
@@ -24,8 +24,6 @@
#include <QImage>
#include <QPainter>

#define tr( sourceText ) QCoreApplication::translate ( "QgsRasterRenderer", sourceText )

// See #9101 before any change of NODATA_COLOR!
const QRgb QgsRasterRenderer::NODATA_COLOR = qRgba( 0, 0, 0, 0 );

@@ -33,6 +33,9 @@ class QgsRasterTransparency;
*/
class CORE_EXPORT QgsRasterRenderer : public QgsRasterInterface
{

Q_DECLARE_TR_FUNCTIONS( QgsRasterRenderer );

public:
// Origin of min / max values
enum MinMaxOrigin

0 comments on commit 85fbea8

Please sign in to comment.
You can’t perform that action at this time.