Skip to content

Commit 6539ae1

Browse files
committed
Fix annotation colors are modified when cancel is clicked
(cherry-picked from 95fd61c)
1 parent 1e454f8 commit 6539ae1

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

src/app/qgsannotationwidget.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,6 @@ void QgsAnnotationWidget::on_mMapMarkerButton_clicked()
112112
}
113113
}
114114

115-
void QgsAnnotationWidget::on_mFrameColorButton_colorChanged( const QColor &color )
116-
{
117-
if ( !mItem )
118-
{
119-
return;
120-
}
121-
122-
mItem->setFrameColor( color );
123-
}
124-
125115
void QgsAnnotationWidget::updateCenterIcon()
126116
{
127117
if ( !mMarkerSymbol )
@@ -132,13 +122,3 @@ void QgsAnnotationWidget::updateCenterIcon()
132122
mMapMarkerButton->setIcon( icon );
133123
}
134124

135-
void QgsAnnotationWidget::on_mBackgroundColorButton_colorChanged( const QColor &color )
136-
{
137-
if ( !mItem )
138-
{
139-
return;
140-
}
141-
142-
mItem->setFrameBackgroundColor( color );
143-
}
144-

src/app/qgsannotationwidget.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class APP_EXPORT QgsAnnotationWidget: public QWidget, private Ui::QgsAnnotationW
3636

3737
private slots:
3838
void on_mMapMarkerButton_clicked();
39-
void on_mFrameColorButton_colorChanged( const QColor &color );
40-
void on_mBackgroundColorButton_colorChanged( const QColor &color );
4139

4240
private:
4341
QgsAnnotationItem* mItem;

0 commit comments

Comments
 (0)