MCPcopy Create free account
hub / github.com/Quill-OS/quill / on_decreaseScaleBtn_clicked

Method on_decreaseScaleBtn_clicked

src/reader/reader.cpp:2081–2093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2079}
2080
2081void reader::on_decreaseScaleBtn_clicked()
2082{
2083 int sliderCurrentValue;
2084 int sliderWantedValue;
2085 sliderCurrentValue = ui->pdfScaleSlider->value();
2086 sliderWantedValue = sliderCurrentValue - 1;
2087 if(sliderWantedValue < ui->pdfScaleSlider->QAbstractSlider::minimum()) {
2088 showToast("Minimum scale reached");
2089 }
2090 else {
2091 ui->pdfScaleSlider->setValue(sliderWantedValue);
2092 }
2093}
2094
2095void reader::on_increaseScaleBtn_clicked()
2096{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected