Line 71... |
Line 71... |
71 |
void setTotalHeight(int h);
|
71 |
void setTotalHeight(int h);
|
72 |
int getTotalHeight() { return mTotalHeight; }
|
72 |
int getTotalHeight() { return mTotalHeight; }
|
73 |
void setTotalSize(int w, int h);
|
73 |
void setTotalSize(int w, int h);
|
74 |
void setTotalSize(QSize& size);
|
74 |
void setTotalSize(QSize& size);
|
75 |
void setScaleFactor(const double& factor);
|
75 |
void setScaleFactor(const double& factor);
|
- |
|
76 |
void setWrapItems(bool wrap) { mWrapItems = wrap; }
|
76 |
|
77 |
|
77 |
signals:
|
78 |
signals:
|
78 |
void objectClicked(ulong handle, bool pressed);
|
79 |
void objectClicked(ulong handle, bool pressed);
|
79 |
|
80 |
|
80 |
protected:
|
81 |
protected:
|
Line 110... |
Line 111... |
110 |
QTimer *mMousePressTimer{nullptr}; //>! Internal: Used to distinguish between a real mouse click and a mouse move.
|
111 |
QTimer *mMousePressTimer{nullptr}; //>! Internal: Used to distinguish between a real mouse click and a mouse move.
|
111 |
QPoint mLastMousePress; //>! Internal: The absolute point of the last mouse press.
|
112 |
QPoint mLastMousePress; //>! Internal: The absolute point of the last mouse press.
|
112 |
Button::SUBVIEW_POSITION_t mPosition{Button::SVP_CENTER}; //>! Defines where the anchor should snap in
|
113 |
Button::SUBVIEW_POSITION_t mPosition{Button::SVP_CENTER}; //>! Defines where the anchor should snap in
|
113 |
bool mScrollbar{false}; //>! TRUE = scrollbar is visible
|
114 |
bool mScrollbar{false}; //>! TRUE = scrollbar is visible
|
114 |
int mScrollbarOffset{0}; //>! Defines the offset of the scrollbar. Only valid if \b mScrollbar is TRUE.
|
115 |
int mScrollbarOffset{0}; //>! Defines the offset of the scrollbar. Only valid if \b mScrollbar is TRUE.
|
- |
|
116 |
bool mWrapItems{false}; //>! TRUE = The scroll area behaves like a wheel (not supported) and the item according to the anchor position is displayed.
|
115 |
};
|
117 |
};
|
116 |
|
118 |
|
117 |
#endif
|
119 |
#endif
|