Commit 558e7992 authored by Laurent Montel's avatar Laurent Montel 😁

Port some foreach

parent 35c940d9
......@@ -96,8 +96,9 @@ void PrintStyle::showPages()
{
QWidget *wdg = nullptr;
Q_FOREACH (wdg, mPageList) {
mWizard->setAppropriate(mPageItems[ wdg ], true);
for (QWidget *wdg2 : qAsConst(mPageList)) {
mWizard->setAppropriate(mPageItems[ wdg2 ], true);
wdg = wdg2;
}
mWizard->nextButton()->setEnabled(wdg);
mWizard->finishButton()->setEnabled(!wdg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment