Skip to content

Commit

Permalink
Merge pull request #1427 from simonsonc/qgscolorbutton-deprecated-api
Browse files Browse the repository at this point in the history
Replace deprecated API
  • Loading branch information
wonder-sk committed Jun 6, 2014
2 parents ade4c7b + 60dfc79 commit 8c513f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgscolorbutton.cpp
Expand Up @@ -25,6 +25,7 @@
#include <QMouseEvent>
#include <QMenu>
#include <QClipboard>
#include <QDrag>

/*!
\class QgsColorButton
Expand Down Expand Up @@ -117,7 +118,7 @@ QMimeData * QgsColorButton::createColorMimeData() const
bool QgsColorButton::colorFromMimeData( const QMimeData * mimeData, QColor& resultColor )
{
//attempt to read color data directly from mime
QColor mimeColor = qVariantValue<QColor>( mimeData->colorData() );
QColor mimeColor = mimeData->colorData().value<QColor>();
if ( mimeColor.isValid() )
{
if ( !( mColorDialogOptions & QColorDialog::ShowAlphaChannel ) )
Expand Down

0 comments on commit 8c513f9

Please sign in to comment.