diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2019-09-29 14:26:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-29 14:26:06 +0200 |
commit | 95388238416f4c4042c8d2f60d39a04e9b5c8278 (patch) | |
tree | 985ddc0a6a6f1ec06cff33e6c9d4165a2b66704f /src/library/dlgmissing.cpp | |
parent | e83391331111f987d7dfee3f2885ac574ddd6f46 (diff) | |
parent | 85999453769063e2399a536a1f8bd815d879efd8 (diff) |
Merge pull request #2292 from ferranpujolcamins/new-signals-slots-syntax-library
New signals slots syntax in library
Diffstat (limited to 'src/library/dlgmissing.cpp')
-rw-r--r-- | src/library/dlgmissing.cpp | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/library/dlgmissing.cpp b/src/library/dlgmissing.cpp index efa4b49f55..71627c4d5b 100644 --- a/src/library/dlgmissing.cpp +++ b/src/library/dlgmissing.cpp @@ -26,25 +26,18 @@ DlgMissing::DlgMissing(QWidget* parent, UserSettingsPointer pConfig, m_pMissingTableModel = new MissingTableModel(this, pLibrary); m_pTrackTableView->loadTrackModel(m_pMissingTableModel); - connect(btnPurge, SIGNAL(clicked()), - m_pTrackTableView, SLOT(slotPurge())); - connect(btnPurge, SIGNAL(clicked()), - this, SLOT(clicked())); - connect(btnSelect, SIGNAL(clicked()), - this, SLOT(selectAll())); + connect(btnPurge, &QPushButton::clicked, m_pTrackTableView, &WTrackTableView::slotPurge); + connect(btnPurge, &QPushButton::clicked, this, &DlgMissing::clicked); + connect(btnSelect, &QPushButton::clicked, this, &DlgMissing::selectAll); connect(m_pTrackTableView->selectionModel(), - SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), + &QItemSelectionModel::selectionChanged, this, - SLOT(selectionChanged(const QItemSelection&, const QItemSelection&))); - connect(m_pTrackTableView, SIGNAL(trackSelected(TrackPointer)), - this, SIGNAL(trackSelected(TrackPointer))); + &DlgMissing::selectionChanged); + connect(m_pTrackTableView, &WTrackTableView::trackSelected, this, &DlgMissing::trackSelected); - connect(pLibrary, SIGNAL(setTrackTableFont(QFont)), - m_pTrackTableView, SLOT(setTrackTableFont(QFont))); - connect(pLibrary, SIGNAL(setTrackTableRowHeight(int)), - m_pTrackTableView, SLOT(setTrackTableRowHeight(int))); - connect(pLibrary, SIGNAL(setSelectedClick(bool)), - m_pTrackTableView, SLOT(setSelectedClick(bool))); + connect(pLibrary, &Library::setTrackTableFont, m_pTrackTableView, &WTrackTableView::setTrackTableFont); + connect(pLibrary, &Library::setTrackTableRowHeight, m_pTrackTableView, &WTrackTableView::setTrackTableRowHeight); + connect(pLibrary, &Library::setSelectedClick, m_pTrackTableView, &WTrackTableView::setSelectedClick); } DlgMissing::~DlgMissing() { |