Skip to content

Commit

Permalink
fix: remove QOverload include, saner QBindable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Sep 8, 2024
1 parent 1a8f335 commit 90e4c65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions widget/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ MainWindow::MainWindow(QWidget *parent)
});

ui->trackerWidget->bindablePatternContent().setBinding([&](){
// qDebug() << m_player->currentPattern();
return m_player->patternContent(QBindable<int>(m_player, "currentPattern").value());
QBindable<int> currentPattern(m_player, "currentPattern");
return m_player->patternContent(currentPattern.value());
});
ui->trackerWidget->bindableCurrentRow().setBinding([&](){
return QBindable<int>(m_player, "currentRow").value();
QBindable<int> currentRow(m_player, "currentRow");
return currentRow.value();
});
}

Expand Down
2 changes: 0 additions & 2 deletions widget/trackerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#include <algorithm>

#include <QOverload>

TrackerWidget::TrackerWidget(QWidget *parent)
: QWidget(parent)
{
Expand Down

0 comments on commit 90e4c65

Please sign in to comment.