summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2013-11-11 10:56:45 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-12 11:10:18 (GMT)
commita18d932b09137bb0f20e254dec5bb2313863d3e4 (patch)
tree605ae145d1c77b589ee04c134d93d932b52a7802 /tools
parente767fd1fa968b8b20f642fe8bbdf64de71b86e1f (diff)
downloadQt-a18d932b09137bb0f20e254dec5bb2313863d3e4.zip
Qt-a18d932b09137bb0f20e254dec5bb2313863d3e4.tar.gz
Qt-a18d932b09137bb0f20e254dec5bb2313863d3e4.tar.bz2
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 <Friedemann.Kleint@digia.com> (cherry picked from qttools/c98012e7a6b6287ec13b8ca4a4d08ed584f7ee8a)
Diffstat (limited to 'tools')
-rw-r--r--tools/designer/src/lib/shared/qdesigner_stackedbox.cpp3
1 files changed, 0 insertions, 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);