QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
d5c074f80d
commit
cd2db00f22
@@ -89,7 +89,7 @@ void ToolBoxManager::setup( ToolBarItem* toolBar ) const
|
||||
bar->setOrientation(Qt::Vertical);
|
||||
bar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
std::string toolbarName = (*item)->command();
|
||||
bar->setObjectName(QString::fromAscii((*item)->command().c_str()));
|
||||
bar->setObjectName(QString::fromLatin1((*item)->command().c_str()));
|
||||
bar->setWindowTitle(QObject::trUtf8(toolbarName.c_str())); // i18n
|
||||
_toolBox->addItem( bar, bar->windowTitle() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user