forked from qt-creator/qt-creator
Use toByteArray() directly
Change-Id: Icaa88b711285307a6d242067eaca9db852ded04f Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
Laurent Montel
parent
5d27bc747b
commit
4fcbf91d30
@@ -499,7 +499,7 @@ void VariableChooserPrivate::updateCurrentEditor(QWidget *old, QWidget *widget)
|
||||
m_textEdit = 0;
|
||||
m_plainTextEdit = 0;
|
||||
QWidget *chooser = widget->property(kVariableSupportProperty).value<QWidget *>();
|
||||
m_currentVariableName = widget->property(kVariableNameProperty).value<QByteArray>();
|
||||
m_currentVariableName = widget->property(kVariableNameProperty).toByteArray();
|
||||
bool supportsVariables = chooser == q;
|
||||
if (QLineEdit *lineEdit = qobject_cast<QLineEdit *>(widget))
|
||||
m_lineEdit = (supportsVariables ? lineEdit : 0);
|
||||
|
||||
Reference in New Issue
Block a user