mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Fix connections
signals can be chained and setCenter was an slot not a signal
This commit is contained in:
parent
ae43f23c85
commit
d5e6623e33
@ -32,8 +32,8 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget *parent)
|
||||
" border-radius: 1px;"
|
||||
"}");
|
||||
|
||||
connect(slider, &QSlider::valueChanged, this, [&](int v) { emit setCenter(v); });
|
||||
connect(slider, &QSlider::valueChanged, this, [=](int v) { emit goToPage(v); });
|
||||
connect(slider, &QSlider::valueChanged, this, &GoToFlowToolBar::setCenter);
|
||||
connect(slider, &QSlider::valueChanged, this, &GoToFlowToolBar::setPage);
|
||||
|
||||
pageHint = new QLabel("<b>" + tr("Page : ") + "</b>", this);
|
||||
v = new QIntValidator(this);
|
||||
|
Loading…
Reference in New Issue
Block a user