mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Now the dialogs use a copy of the ramp, and the edited ramp is retrieved by calling ramp() on the dialog after it is executed. Avoids pointer lifetime issues by storing and working on a ramp pointer which the dialog does not have ownership on. Also fix a bunch of leaks relating to cloning color ramps.
25 lines
557 B
Plaintext
25 lines
557 B
Plaintext
class QgsLimitedRandomColorRampDialog : QDialog
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgslimitedrandomcolorrampdialog.h>
|
|
%End
|
|
|
|
public:
|
|
QgsLimitedRandomColorRampDialog( const QgsLimitedRandomColorRamp& ramp, QWidget* parent /TransferThis/ = nullptr );
|
|
|
|
QgsLimitedRandomColorRamp ramp() const;
|
|
|
|
public slots:
|
|
void setCount( int val );
|
|
void setHue1( int val );
|
|
void setHue2( int val );
|
|
void setSat1( int val );
|
|
void setSat2( int val );
|
|
void setVal1( int val );
|
|
void setVal2( int val );
|
|
|
|
protected:
|
|
|
|
void updatePreview();
|
|
};
|