From 4c6ab8f9e265dc0e5ac7fb6282ba21f116f1f4a7 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Sun, 18 Jan 2015 22:15:21 +0200 Subject: [PATCH] QToolBox: remove redundant QAbstractButton::text() from paintEvent() Change-Id: I95773096ca1b915468c086ba61eba2e3e551a7e3 Reviewed-by: Friedemann Kleint --- src/widgets/widgets/qtoolbox.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/widgets/widgets/qtoolbox.cpp b/src/widgets/widgets/qtoolbox.cpp index 83a158e59e..53e5e9544c 100644 --- a/src/widgets/widgets/qtoolbox.cpp +++ b/src/widgets/widgets/qtoolbox.cpp @@ -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);