소스 검색

KonvergoWindow: mark fixed QML properties as constant to avoid warnings

Shouldn't have any other effect.
Vincent Lang 8 년 전
부모
커밋
0b42eb779a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/ui/KonvergoWindow.h

+ 2 - 2
src/ui/KonvergoWindow.h

@@ -30,9 +30,9 @@ class KonvergoWindow : public QQuickWindow
   Q_PROPERTY(QString debugInfo MEMBER m_debugInfo NOTIFY debugInfoChanged)
   Q_PROPERTY(QString videoInfo MEMBER m_videoInfo NOTIFY debugInfoChanged)
   Q_PROPERTY(qreal webScale READ webScale NOTIFY webScaleChanged)
-  Q_PROPERTY(qreal webHeightMax READ webHeightMax)
+  Q_PROPERTY(qreal webHeightMax READ webHeightMax CONSTANT)
   Q_PROPERTY(qreal windowScale READ windowScale NOTIFY windowScaleChanged)
-  Q_PROPERTY(QSize windowMinSize READ windowMinSize)
+  Q_PROPERTY(QSize windowMinSize READ windowMinSize CONSTANT)
   Q_PROPERTY(bool alwaysOnTop READ isAlwaysOnTop WRITE setAlwaysOnTop)
   Q_PROPERTY(bool webDesktopMode MEMBER m_webDesktopMode NOTIFY webDesktopModeChanged)
   Q_PROPERTY(QString webUrl READ webUrl NOTIFY webUrlChanged)