From a18d932b09137bb0f20e254dec5bb2313863d3e4 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 11 Nov 2013 11:56:45 +0100 Subject: Designer: remove dead code in QStackedWidgetPreviewEventFilter::updateButtonToolTip() 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: I2ee7dedc66acfa10949b628499c52f87dab02e7a Reviewed-by: Friedemann Kleint (cherry picked from qttools/c98012e7a6b6287ec13b8ca4a4d08ed584f7ee8a) --- tools/designer/src/lib/shared/qdesigner_stackedbox.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/designer/src/lib/shared/qdesigner_stackedbox.cpp b/tools/designer/src/lib/shared/qdesigner_stackedbox.cpp index 5c7a2df..d0e9671 100644 --- a/tools/designer/src/lib/shared/qdesigner_stackedbox.cpp +++ b/tools/designer/src/lib/shared/qdesigner_stackedbox.cpp @@ -174,9 +174,6 @@ static inline QString stackedClassName(QStackedWidget *w) void QStackedWidgetPreviewEventFilter::updateButtonToolTip(QObject *o) { - QString className = QLatin1String("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); -- cgit v0.12