QToolBox: remove redundant QAbstractButton::text() from paintEvent()

Change-Id: I95773096ca1b915468c086ba61eba2e3e551a7e3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
Maks Naumov 2015-01-18 22:15:21 +02:00
parent ca6fb5436d
commit 4c6ab8f9e2

View File

@ -232,7 +232,6 @@ void QToolBoxButton::initStyleOption(QStyleOptionToolBox *option) const
void QToolBoxButton::paintEvent(QPaintEvent *)
{
QPainter paint(this);
QString text = QAbstractButton::text();
QPainter *p = &paint;
QStyleOptionToolBoxV2 opt;
initStyleOption(&opt);