Tweak API

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691502
This commit is contained in:
Andre Duffeck 2007-07-23 20:01:20 +00:00
parent 6a4841b19a
commit 08c57e9eaf
2 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ void Flash::setFont( const QFont &font )
d->font = 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->type = Private::Text;
d->duration = (duration == 0) ? duration : d->defaultDuration; 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()) ); 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->type = Private::Pixmap;
d->duration = (duration == 0) ? duration : d->defaultDuration; d->duration = (duration == 0) ? duration : d->defaultDuration;

View File

@ -51,8 +51,8 @@ class PLASMA_EXPORT Flash : public QObject, public QGraphicsItem
void setColor( const QColor & ); void setColor( const QColor & );
void setDuration( int duration ); void setDuration( int duration );
void flash( const QString &text, const QTextOption &option = QTextOption(Qt::AlignCenter), int duration = 0 ); void flash( const QString &text, int duration = 0, const QTextOption &option = QTextOption(Qt::AlignCenter) );
void flash( const QPixmap &pixmap, Qt::Alignment align = Qt::AlignCenter, int duration = 0 ); void flash( const QPixmap &pixmap, int duration = 0, Qt::Alignment align = Qt::AlignCenter );
public Q_SLOTS: public Q_SLOTS:
void kill(); void kill();