new: make it possible to change text on-the-fly
author Dominik Haumann
committer Dominik Haumann
commit 34eb7dabe1d7e47edd27e272386e5357331a9dd4
tree 533b16a4e14d05f014efdc786f92328f408aa7d0
parent 72c2ff8ec5cb512aea3a08108325b5afe5a856df
new: make it possible to change text on-the-fly

New Message::setText() along with a signal

This way, the displayed text can be modified when the notification is shown.
Use with care, since the widget may resize itself.

Try this e.g. by adding the following at the end of KateSearchBar::showInfoMessage:

QLineEdit * const patternLineEdit = m_powerUi->pattern->lineEdit();
connect(patternLineEdit, SIGNAL(textChanged(QString)), m_infoMessage, SLOT(setText(QString)));