QCMakeCacheView: no else after return
This commit is contained in:
parent
f506489d1e
commit
ad42eb33b6
|
@ -554,13 +554,15 @@ QWidget* QCMakeCacheModelDelegate::createEditor(
|
|||
QObject::connect(editor, SIGNAL(fileDialogExists(bool)), this,
|
||||
SLOT(setFileDialogFlag(bool)));
|
||||
return editor;
|
||||
} else if (type == QCMakeProperty::FILEPATH) {
|
||||
}
|
||||
if (type == QCMakeProperty::FILEPATH) {
|
||||
QCMakeFilePathEditor* editor =
|
||||
new QCMakeFilePathEditor(p, var.data(Qt::DisplayRole).toString());
|
||||
QObject::connect(editor, SIGNAL(fileDialogExists(bool)), this,
|
||||
SLOT(setFileDialogFlag(bool)));
|
||||
return editor;
|
||||
} else if (type == QCMakeProperty::STRING &&
|
||||
}
|
||||
if (type == QCMakeProperty::STRING &&
|
||||
var.data(QCMakeCacheModel::StringsRole).isValid()) {
|
||||
QCMakeComboBox* editor = new QCMakeComboBox(
|
||||
p, var.data(QCMakeCacheModel::StringsRole).toStringList());
|
||||
|
|
Loading…
Reference in New Issue