void WindowController::scale(const QPointF& center, const double pixelDelta) { auto newSize = _getSize(); newSize.scale(newSize.width() + pixelDelta, newSize.height() + pixelDelta, pixelDelta < 0 ? Qt::KeepAspectRatio : Qt::KeepAspectRatioByExpanding); resize(center, newSize); }
void WindowController::toogleFullscreenMaxSize() { if (!_targetIsFullscreen()) return; if (_getSize() > _group.size()) adjustSize(SizeState::SIZE_FULLSCREEN); else adjustSize(SizeState::SIZE_FULLSCREEN_MAX); }
QRectF LauncherPlacer::_getCoordinatesForStandardWall() const { auto rect = QRectF{QPointF(), _getSize()}; _centerAboveMiddleOfSurface(rect); return rect; }