forked from qt-creator/qt-creator
QtQuickToolBar: disable gradient editing in PropertyChanges
Editing gradients in PropertyChanges is not allowed. Task-number: QTCREATORBUG-2969
This commit is contained in:
@@ -57,6 +57,7 @@ public:
|
||||
explicit ContextPaneWidgetRectangle(QWidget *parent = 0);
|
||||
~ContextPaneWidgetRectangle();
|
||||
void setProperties(QmlJS::PropertyReader *propertyReader);
|
||||
void enabableGradientEditing(bool);
|
||||
|
||||
public slots:
|
||||
void onBorderColorButtonToggled(bool);
|
||||
@@ -82,12 +83,15 @@ protected:
|
||||
|
||||
private:
|
||||
void setColor();
|
||||
bool isGradientEditingEnabled() const
|
||||
{ return m_enableGradientEditing; }
|
||||
Ui::ContextPaneWidgetRectangle *ui;
|
||||
bool m_hasBorder;
|
||||
bool m_hasGradient;
|
||||
bool m_none;
|
||||
bool m_gradientLineDoubleClicked;
|
||||
int m_gradientTimer;
|
||||
bool m_enableGradientEditing;
|
||||
};
|
||||
|
||||
} //QmlDesigner
|
||||
|
||||
Reference in New Issue
Block a user