QSplashScreen - add message function
There is no point in not being able to get the message. Sometimes it can be the case that we just want to append a dot (or something else) on the existing message. Change-Id: I171495f1edc568ae1654f43b3cf734a4eb67d374 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
96d00ed19b
commit
fff9119028
@ -200,7 +200,7 @@ void QSplashScreen::repaint()
|
||||
is kept up to date with what your application is doing (e.g.,
|
||||
loading files).
|
||||
|
||||
\sa Qt::Alignment, clearMessage()
|
||||
\sa Qt::Alignment, clearMessage(), message()
|
||||
*/
|
||||
void QSplashScreen::showMessage(const QString &message, int alignment,
|
||||
const QColor &color)
|
||||
@ -213,6 +213,20 @@ void QSplashScreen::showMessage(const QString &message, int alignment,
|
||||
repaint();
|
||||
}
|
||||
|
||||
/*!
|
||||
\since 5.2
|
||||
|
||||
Returns the message that is currently displayed on the splash screen.
|
||||
|
||||
\sa showMessage(), clearMessage()
|
||||
*/
|
||||
|
||||
QString QSplashScreen::message() const
|
||||
{
|
||||
Q_D(const QSplashScreen);
|
||||
return d->currStatus;
|
||||
}
|
||||
|
||||
/*!
|
||||
Removes the message being displayed on the splash screen
|
||||
|
||||
|
@ -63,6 +63,7 @@ public:
|
||||
const QPixmap pixmap() const;
|
||||
void finish(QWidget *w);
|
||||
void repaint();
|
||||
QString message() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void showMessage(const QString &message, int alignment = Qt::AlignLeft,
|
||||
|
Loading…
Reference in New Issue
Block a user