# HG changeset patch # User Chris Cannam # Date 1539157467 -3600 # Node ID 86429ff00f0574bce40cf3a3d9d26e8b0fd516ee # Parent 9fb7133dd818aadb973f103dd515b6fc60751879# Parent 4949061fcb8cfc937791f88d743c2a51c65061cd Merge from branch zoom diff -r 4949061fcb8c -r 86429ff00f05 view/View.cpp --- a/view/View.cpp Fri Oct 05 09:59:41 2018 +0100 +++ b/view/View.cpp Wed Oct 10 08:44:27 2018 +0100 @@ -633,9 +633,10 @@ pb->setTextVisible(false); QPushButton *cancel = new QPushButton(this); - cancel->setIcon(IconLoader().load("fileclose")); + cancel->setIcon(IconLoader().load("cancel")); cancel->setFlat(true); - cancel->setFixedSize(QSize(20, 20)); + int scaled20 = ViewManager::scalePixelSize(20); + cancel->setFixedSize(QSize(scaled20, scaled20)); connect(cancel, SIGNAL(clicked()), this, SLOT(cancelClicked())); ProgressBarRec pbr; @@ -1644,11 +1645,13 @@ timer->start(); } - cancel->move(0, ph - pb->height()/2 - 10); + int scaled20 = ViewManager::scalePixelSize(20); + + cancel->move(0, ph - pb->height()/2 - scaled20/2); cancel->show(); pb->setValue(completion); - pb->move(20, ph - pb->height()); + pb->move(scaled20, ph - pb->height()); pb->show(); pb->update();