update for the fix, remove QStyle dependency
This commit is contained in:
parent
ea3b2e4461
commit
91e1f8248b
@ -15,8 +15,6 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QStyle>
|
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
#include "CalamaresApplication.h"
|
#include "CalamaresApplication.h"
|
||||||
|
|
||||||
@ -195,13 +193,9 @@ CalamaresApplication::onPluginsReady()
|
|||||||
this, &CalamaresApplication::startPhase );
|
this, &CalamaresApplication::startPhase );
|
||||||
|
|
||||||
startPhase( Calamares::Prepare );
|
startPhase( Calamares::Prepare );
|
||||||
m_mainwindow->setGeometry(
|
m_mainwindow->move(
|
||||||
QStyle::alignedRect(
|
this->desktop()->availableGeometry().center() - m_mainwindow->rect().center()
|
||||||
Qt::LeftToRight,
|
);
|
||||||
Qt::AlignCenter,
|
|
||||||
m_mainwindow->size(),
|
|
||||||
this->desktop()->availableGeometry()
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user