forked from qt-creator/qt-creator
TarPackageCreationStep: Use static_cast not qobject_cast
Change-Id: Ief5a5835eb43a7e24db04315166fc3723b9ed997 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
committed by
Christian Kandeler
parent
1bb0a7f174
commit
6804b52030
@@ -57,7 +57,7 @@ public:
|
||||
|
||||
QString summaryText() const
|
||||
{
|
||||
TarPackageCreationStep * const step = qobject_cast<TarPackageCreationStep *>(this->step());
|
||||
TarPackageCreationStep * const step = static_cast<TarPackageCreationStep *>(this->step());
|
||||
if (step->packageFilePath().isEmpty()) {
|
||||
return QLatin1String("<font color=\"red\">")
|
||||
+ tr("Tarball creation not possible.") + QLatin1String("</font>");
|
||||
|
||||
Reference in New Issue
Block a user