Skip to content
Permalink
Browse files

Remove unused vars/includes

  • Loading branch information
elpaso committed Nov 2, 2020
1 parent 47a08a4 commit c877f368fbcbc478d38228b3b0cb98b06447b645
Showing with 4 additions and 6 deletions.
  1. +4 −2 src/gui/raster/qgscolorrampshaderwidget.cpp
  2. +0 −4 src/gui/raster/qgscolorrampshaderwidget.h
@@ -64,8 +64,10 @@ QgsColorRampShaderWidget::QgsColorRampShaderWidget( QWidget *parent )
contextMenu->addAction( tr( "Change Color…" ), this, SLOT( changeColor() ) );
contextMenu->addAction( tr( "Change Opacity…" ), this, SLOT( changeOpacity() ) );

mSwatchDelegate = new QgsColorSwatchDelegate( this );
mColormapTreeWidget->setItemDelegateForColumn( ColorColumn, mSwatchDelegate );
QgsColorSwatchDelegate *swatchDelegate = new QgsColorSwatchDelegate( this );
mColormapTreeWidget->setItemDelegateForColumn( ColorColumn, swatchDelegate );



#if QT_VERSION < QT_VERSION_CHECK(5, 11, 0)
mColormapTreeWidget->setColumnWidth( ColorColumn, Qgis::UI_SCALE_FACTOR * fontMetrics().width( 'X' ) * 6.6 );
@@ -21,7 +21,6 @@
#include "qgis_sip.h"
#include "qgscolorrampshader.h"
#include "qgsrasterrenderer.h"
#include "qgscolorschemelist.h"
#include "ui_qgscolorrampshaderwidgetbase.h"
#include "qgis_gui.h"
#include "qgsrasterrendererwidget.h"
@@ -147,9 +146,6 @@ class GUI_EXPORT QgsColorRampShaderWidget: public QWidget, protected Ui::QgsColo
void setLineEditValue( QLineEdit *lineEdit, double value );
double lineEditValue( const QLineEdit *lineEdit ) const;
void resetClassifyButton();

QgsColorSwatchDelegate *mSwatchDelegate = nullptr;

double mMin = std::numeric_limits<double>::quiet_NaN();
double mMax = std::numeric_limits<double>::quiet_NaN();

0 comments on commit c877f36

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