18 #include <QToolButton>
19 #include <QVBoxLayout>
20 #include <QWheelEvent>
21 #include "../../util/btconnect.h"
25 #define WIDTH (static_cast<unsigned int>(16))
26 #define ARROW_HEIGHT (static_cast<unsigned int>(12))
27 #define MOVER_HEIGHT (static_cast<unsigned int>(6))
35 m_layout->setContentsMargins(0, 0, 0, 0);
36 m_layout->setAlignment(
this, Qt::AlignHCenter | Qt::AlignCenter);
58 setMinimumWidth(
WIDTH);
68 [
this]{ Q_EMIT
change(1); });
73 const QString & scrollButtonTip,
74 const QString & previousEntryTip)
83 int const delta = e->angleDelta().y();
87 Q_EMIT
change((delta > 0) ? -1 : 1);