Removed Q_OBJECT from ScrollShadow.
This commit is contained in:
parent
a827d9436e
commit
532affa1bf
2 changed files with 11 additions and 7 deletions
|
|
@ -282,8 +282,16 @@ ScrollArea::ScrollArea(QWidget *parent, const style::ScrollArea &st, bool handle
|
|||
setLayoutDirection(style::LayoutDirection());
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
|
||||
connect(_verticalBar, SIGNAL(topShadowVisibility(bool)), _topShadow, SLOT(changeVisibility(bool)));
|
||||
connect(_verticalBar, SIGNAL(bottomShadowVisibility(bool)), _bottomShadow, SLOT(changeVisibility(bool)));
|
||||
connect(
|
||||
_verticalBar,
|
||||
&ScrollBar::topShadowVisibility,
|
||||
_topShadow,
|
||||
&ScrollShadow::changeVisibility);
|
||||
connect(
|
||||
_verticalBar,
|
||||
&ScrollBar::bottomShadowVisibility,
|
||||
_bottomShadow,
|
||||
&ScrollShadow::changeVisibility);
|
||||
_verticalBar->updateBar(true);
|
||||
|
||||
verticalScrollBar()->setSingleStep(style::ConvertScale(verticalScrollBar()->singleStep()));
|
||||
|
|
|
|||
|
|
@ -48,15 +48,11 @@ struct ScrollToRequest {
|
|||
|
||||
};
|
||||
|
||||
class ScrollShadow : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
class ScrollShadow final : public QWidget {
|
||||
public:
|
||||
ScrollShadow(ScrollArea *parent, const style::ScrollArea *st);
|
||||
|
||||
void paintEvent(QPaintEvent *e);
|
||||
|
||||
public Q_SLOTS:
|
||||
void changeVisibility(bool shown);
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue