Use new connect syntax everywhere where is possible.
--HG-- branch : develop
This commit is contained in:
parent
55400c5a73
commit
5befd6770b
|
@ -55,7 +55,7 @@ VFormulaPropertyEditor::VFormulaPropertyEditor(QWidget *parent)
|
||||||
ToolButton->installEventFilter(this);
|
ToolButton->installEventFilter(this);
|
||||||
setFocusProxy(ToolButton); // Make the ToolButton the focus proxy
|
setFocusProxy(ToolButton); // Make the ToolButton the focus proxy
|
||||||
setFocusPolicy(ToolButton->focusPolicy());
|
setFocusPolicy(ToolButton->focusPolicy());
|
||||||
connect(ToolButton, SIGNAL(clicked()), this, SLOT(onToolButtonClicked()));
|
connect(ToolButton, &QToolButton::clicked, this, &VFormulaPropertyEditor::onToolButtonClicked);
|
||||||
|
|
||||||
// Create the text label
|
// Create the text label
|
||||||
TextLabel = new QLabel(this);
|
TextLabel = new QLabel(this);
|
||||||
|
|
|
@ -43,7 +43,7 @@ VColorPropertyEditor::VColorPropertyEditor(QWidget *parent)
|
||||||
ToolButton->installEventFilter(this);
|
ToolButton->installEventFilter(this);
|
||||||
setFocusProxy(ToolButton); // Make the ToolButton the focus proxy
|
setFocusProxy(ToolButton); // Make the ToolButton the focus proxy
|
||||||
setFocusPolicy(ToolButton->focusPolicy());
|
setFocusPolicy(ToolButton->focusPolicy());
|
||||||
connect(ToolButton, SIGNAL(clicked()), this, SLOT(onToolButtonClicked()));
|
connect(ToolButton, &QToolButton::clicked, this, &VColorPropertyEditor::onToolButtonClicked);
|
||||||
|
|
||||||
// Create the text label
|
// Create the text label
|
||||||
TextLabel = new QLabel(this);
|
TextLabel = new QLabel(this);
|
||||||
|
|
|
@ -41,7 +41,7 @@ VFileEditWidget::VFileEditWidget(QWidget *parent, bool is_directory)
|
||||||
ToolButton->installEventFilter(this);
|
ToolButton->installEventFilter(this);
|
||||||
setFocusProxy(ToolButton); // Make the ToolButton the focus proxy
|
setFocusProxy(ToolButton); // Make the ToolButton the focus proxy
|
||||||
setFocusPolicy(ToolButton->focusPolicy());
|
setFocusPolicy(ToolButton->focusPolicy());
|
||||||
connect(ToolButton, SIGNAL(clicked()), this, SLOT(onToolButtonClicked()));
|
connect(ToolButton, &QToolButton::clicked, this, &VFileEditWidget::onToolButtonClicked);
|
||||||
|
|
||||||
// Create the line edit widget
|
// Create the line edit widget
|
||||||
FileLineEdit = new QLineEdit(this);
|
FileLineEdit = new QLineEdit(this);
|
||||||
|
|
|
@ -34,7 +34,7 @@ VShortcutEditWidget::VShortcutEditWidget(QWidget *parent)
|
||||||
LineEdit->clear();
|
LineEdit->clear();
|
||||||
LineEdit->installEventFilter(this);
|
LineEdit->installEventFilter(this);
|
||||||
setFocusProxy(LineEdit);
|
setFocusProxy(LineEdit);
|
||||||
connect(LineEdit, SIGNAL(textEdited(QString)), this, SLOT(onTextEdited(QString)));
|
connect(LineEdit, &QLineEdit::textEdited, this, &VShortcutEditWidget::onTextEdited);
|
||||||
|
|
||||||
// The layout (a horizontal layout)
|
// The layout (a horizontal layout)
|
||||||
QHBoxLayout* layout = new QHBoxLayout(this);
|
QHBoxLayout* layout = new QHBoxLayout(this);
|
||||||
|
|
|
@ -76,12 +76,10 @@ void VPropertyFormView::setModel(VPropertyModel *model)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Connect signals // todo: more signals neccesary!!!
|
// Connect signals // todo: more signals neccesary!!!
|
||||||
connect(model, SIGNAL(destroyed()), this, SLOT(modelDestroyed()));
|
connect(model, &VPropertyModel::destroyed, this, &VPropertyFormView::modelDestroyed);
|
||||||
connect(model, SIGNAL(rowsInserted(const QModelIndex&, int, int)), this,
|
connect(model, &VPropertyModel::rowsInserted, this, &VPropertyFormView::rowsInserted);
|
||||||
SLOT(rowsInserted(QModelIndex, int, int)));
|
connect(model, &VPropertyModel::modelReset, this, &VPropertyFormView::modelReset);
|
||||||
connect(model, SIGNAL(modelReset()), this, SLOT(modelReset()));
|
connect(model, &VPropertyModel::rowsRemoved, this, &VPropertyFormView::rowsRemoved);
|
||||||
connect(model, SIGNAL(rowsRemoved(const QModelIndex&, int, int)), this,
|
|
||||||
SLOT(rowsRemoved(QModelIndex, int, int)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build the widget
|
// Build the widget
|
||||||
|
|
Loading…
Reference in New Issue
Block a user