The local variable 'className' is no longer used, since at some point
in time, it was replaced with the query stackedClassName(), a file-
static function.
So remove the code that sets it.
Change-Id: Ic69ecdf3e58aa954bb348838fbbd64c39974a3c8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
void QStackedWidgetPreviewEventFilter::updateButtonToolTip(QObject *o)
{
- QString className = QStringLiteral("Stacked widget");
- if (const QDesignerFormWindowInterface *fw = QDesignerFormWindowInterface::findFormWindow(m_stackedWidget))
- className = qdesigner_internal::WidgetFactory::classNameOf(fw->core(), m_stackedWidget);
if (o == m_prev) {
const QString msg = tr("Go to previous page of %1 '%2' (%3/%4).").arg(stackedClassName(m_stackedWidget)).arg(m_stackedWidget->objectName()).arg(m_stackedWidget->currentIndex() + 1).arg(m_stackedWidget->count());
m_prev->setToolTip(msg);