Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezehelper.h
Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
303 | #endif | 303 | #endif | ||
304 | 304 | | |||
305 | //@} | 305 | //@} | ||
306 | 306 | | |||
307 | //* frame radius | 307 | //* frame radius | ||
308 | qreal frameRadius( qreal bias = 0 ) const | 308 | qreal frameRadius( qreal bias = 0 ) const | ||
309 | { return qMax( qreal( Metrics::Frame_FrameRadius ) - 0.5 + bias, 0.0 ); } | 309 | { return qMax( qreal( Metrics::Frame_FrameRadius ) - 0.5 + bias, 0.0 ); } | ||
310 | 310 | | |||
311 | //* return a QRectF with the appropriate size for a rectangle with a pen stroke | ||||
312 | QRectF strokedRect( const QRect &rect, const int penWidth = 1 ) const; | ||||
313 | | ||||
314 | //* return a QRectF with the appropriate size for a rectangle with a pen stroke | ||||
315 | QRectF strokedRect( const QRectF &rect, const int penWidth = 1 ) const; | ||||
316 | | ||||
311 | protected: | 317 | protected: | ||
312 | 318 | | |||
313 | //* initialize | 319 | //* initialize | ||
314 | void init(); | 320 | void init(); | ||
315 | 321 | | |||
316 | //* return rectangle for widgets shadow, offset depending on light source | 322 | //* return rectangle for widgets shadow, offset depending on light source | ||
317 | QRectF shadowRect( const QRectF& ) const; | 323 | QRectF shadowRect( const QRectF& ) const; | ||
318 | 324 | | |||
Show All 40 Lines |