Tweak API
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691502
This commit is contained in:
parent
6a4841b19a
commit
08c57e9eaf
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user