diff --git a/widgets/flash.cpp b/widgets/flash.cpp index 0606600de..9e3fd65fa 100644 --- a/widgets/flash.cpp +++ b/widgets/flash.cpp @@ -137,7 +137,7 @@ void Flash::setFont( const QFont &font ) d->font = font; } -void Flash::flash( const QString &text, const QTextOption &option, int duration) +void Flash::flash( const QString &text, int duration, const QTextOption &option) { d->type = Private::Text; d->duration = (duration == 0) ? duration : d->defaultDuration; @@ -146,7 +146,7 @@ void Flash::flash( const QString &text, const QTextOption &option, int duration) QTimer::singleShot( 0, this, SLOT(fadeIn()) ); } -void Flash::flash( const QPixmap &pixmap, Qt::Alignment align, int duration ) +void Flash::flash( const QPixmap &pixmap, int duration, Qt::Alignment align ) { d->type = Private::Pixmap; d->duration = (duration == 0) ? duration : d->defaultDuration; diff --git a/widgets/flash.h b/widgets/flash.h index d5ff84790..8882bb72a 100644 --- a/widgets/flash.h +++ b/widgets/flash.h @@ -51,8 +51,8 @@ class PLASMA_EXPORT Flash : public QObject, public QGraphicsItem void setColor( const QColor & ); void setDuration( int duration ); - void flash( const QString &text, const QTextOption &option = QTextOption(Qt::AlignCenter), int duration = 0 ); - void flash( const QPixmap &pixmap, Qt::Alignment align = Qt::AlignCenter, int duration = 0 ); + void flash( const QString &text, int duration = 0, const QTextOption &option = QTextOption(Qt::AlignCenter) ); + void flash( const QPixmap &pixmap, int duration = 0, Qt::Alignment align = Qt::AlignCenter ); public Q_SLOTS: void kill();