Commit ad42eb33 authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

QCMakeCacheView: no else after return

parent f506489d
...@@ -554,14 +554,16 @@ QWidget* QCMakeCacheModelDelegate::createEditor( ...@@ -554,14 +554,16 @@ QWidget* QCMakeCacheModelDelegate::createEditor(
QObject::connect(editor, SIGNAL(fileDialogExists(bool)), this, QObject::connect(editor, SIGNAL(fileDialogExists(bool)), this,
SLOT(setFileDialogFlag(bool))); SLOT(setFileDialogFlag(bool)));
return editor; return editor;
} else if (type == QCMakeProperty::FILEPATH) { }
if (type == QCMakeProperty::FILEPATH) {
QCMakeFilePathEditor* editor = QCMakeFilePathEditor* editor =
new QCMakeFilePathEditor(p, var.data(Qt::DisplayRole).toString()); new QCMakeFilePathEditor(p, var.data(Qt::DisplayRole).toString());
QObject::connect(editor, SIGNAL(fileDialogExists(bool)), this, QObject::connect(editor, SIGNAL(fileDialogExists(bool)), this,
SLOT(setFileDialogFlag(bool))); SLOT(setFileDialogFlag(bool)));
return editor; return editor;
} else if (type == QCMakeProperty::STRING && }
var.data(QCMakeCacheModel::StringsRole).isValid()) { if (type == QCMakeProperty::STRING &&
var.data(QCMakeCacheModel::StringsRole).isValid()) {
QCMakeComboBox* editor = new QCMakeComboBox( QCMakeComboBox* editor = new QCMakeComboBox(
p, var.data(QCMakeCacheModel::StringsRole).toStringList()); p, var.data(QCMakeCacheModel::StringsRole).toStringList());
editor->setFrame(false); editor->setFrame(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment