Changeset View
Changeset View
Standalone View
Standalone View
lib/documentview/documentview.h
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Line(s) | 56 | public: | |||
---|---|---|---|---|---|
129 | void fadeOut(); | 129 | void fadeOut(); | ||
130 | void fakeFadeOut(); | 130 | void fakeFadeOut(); | ||
131 | 131 | | |||
132 | void setGeometry(const QRectF& rect) Q_DECL_OVERRIDE; | 132 | void setGeometry(const QRectF& rect) Q_DECL_OVERRIDE; | ||
133 | 133 | | |||
134 | int sortKey() const; | 134 | int sortKey() const; | ||
135 | void setSortKey(int sortKey); | 135 | void setSortKey(int sortKey); | ||
136 | 136 | | |||
137 | /** | | |||
138 | * If true, areas around the document will be painted with the default brush. | | |||
139 | * If false they will be kept transparent. | | |||
140 | */ | | |||
141 | void setEraseBorders(bool); | | |||
142 | | ||||
143 | bool isAnimated() const; | 137 | bool isAnimated() const; | ||
huoni: I judged adding this function was better than including `QGraphicsOpacityEffect` in… | |||||
144 | 138 | | |||
145 | public Q_SLOTS: | 139 | public Q_SLOTS: | ||
146 | void setZoom(qreal); | 140 | void setZoom(qreal); | ||
147 | 141 | | |||
148 | void setZoomToFit(bool); | 142 | void setZoomToFit(bool); | ||
149 | 143 | | |||
150 | void setZoomToFill(bool); | 144 | void setZoomToFill(bool); | ||
151 | 145 | | |||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |
I judged adding this function was better than including QGraphicsOpacityEffect in DocumentViewContainer and having to static_cast to set the opacity.