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
@@ -46,7 +46,7 @@ QListWidgetCustom::~QListWidgetCustom()
|
||||
void QListWidgetCustom::dragMoveEvent(QDragMoveEvent *e)
|
||||
{
|
||||
if (e->source() != 0) {
|
||||
const QString disabled_wbs = QString::fromAscii("disabled workbenches");
|
||||
const QString disabled_wbs = QString::fromLatin1("disabled workbenches");
|
||||
if (e->source()->accessibleName() == disabled_wbs) {
|
||||
if (e->source() == this) {
|
||||
e->ignore();
|
||||
|
||||
Reference in New Issue
Block a user