summaryrefslogtreecommitdiffstats
path: root/src/library/stardelegate.cpp
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2019-09-29 14:26:06 +0200
committerGitHub <noreply@github.com>2019-09-29 14:26:06 +0200
commit95388238416f4c4042c8d2f60d39a04e9b5c8278 (patch)
tree985ddc0a6a6f1ec06cff33e6c9d4165a2b66704f /src/library/stardelegate.cpp
parente83391331111f987d7dfee3f2885ac574ddd6f46 (diff)
parent85999453769063e2399a536a1f8bd815d879efd8 (diff)
Merge pull request #2292 from ferranpujolcamins/new-signals-slots-syntax-library
New signals slots syntax in library
Diffstat (limited to 'src/library/stardelegate.cpp')
-rw-r--r--src/library/stardelegate.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/library/stardelegate.cpp b/src/library/stardelegate.cpp
index b1a5b44a22..ca96ccab82 100644
--- a/src/library/stardelegate.cpp
+++ b/src/library/stardelegate.cpp
@@ -27,8 +27,7 @@ StarDelegate::StarDelegate(QTableView* pTableView)
: TableItemDelegate(pTableView),
m_pTableView(pTableView),
m_isOneCellInEditMode(false) {
- connect(pTableView, SIGNAL(entered(QModelIndex)),
- this, SLOT(cellEntered(QModelIndex)));
+ connect(pTableView, &QTableView::entered, this, &StarDelegate::cellEntered);
}
void StarDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option,
@@ -66,8 +65,10 @@ QWidget* StarDelegate::createEditor(QWidget* parent,
initStyleOption(&newOption, index);
StarEditor* editor = new StarEditor(parent, m_pTableView, index, newOption);
- connect(editor, SIGNAL(editingFinished()),
- this, SLOT(commitAndCloseEditor()));
+ connect(editor,
+ &StarEditor::editingFinished,
+ this,
+ &StarDelegate::commitAndCloseEditor);
return editor;
}