FullViewConstraintView::FullViewConstraintView(FullViewConstraintPresenter& presenter, QGraphicsItem *parent) : ConstraintView {presenter, parent} { this->setParentItem(parent); this->setFlag(ItemIsSelectable); this->setCursor(Qt::CrossCursor); this->setZValue(1); this->setY(2*constraintHeight()); }
AlertWebApp::AlertWebApp(const QString& appId, int width, int height, Window::Type type, PIpcChannel *channel) : WindowedWebApp(0, 0, type,channel), m_isPowerdActivityRunning (false) { setAppId(appId); kMinHeight = Settings::LunaSettings()->positiveSpaceBottomPadding; // Set width to a valid value if(width <= 0) m_width = WebAppManager::instance()->currentUiWidth(); else m_width = width; m_height = constraintHeight(height); m_windowWidth = m_width; m_windowHeight = m_height; init(); }
QRectF TemporalConstraintView::boundingRect() const { return {0, -15, qreal(maxWidth()), qreal(constraintHeight()) }; }
QRectF FullViewConstraintView::boundingRect() const { return {0, -18, qreal(maxWidth()) + 3, qreal(constraintHeight()) + 3}; }