dtkWidgetsSpinBoxLong.h 732 Bytes
Newer Older
CABEL Tristan's avatar
CABEL Tristan committed
1 2 3 4 5 6 7 8 9 10 11 12 13
// Version: $Id$
//
//

// Commentary:
//
//

// Change Log:
//
//

// Code:
14

CABEL Tristan's avatar
CABEL Tristan committed
15 16
#pragma once

17 18 19
#include <dtkWidgetsExport>

#include <QtWidgets/QAbstractSpinBox>
CABEL Tristan's avatar
CABEL Tristan committed
20 21 22 23 24 25

class dtkWidgetsSpinBoxLong : public QAbstractSpinBox
{
    Q_OBJECT

public:
26
     dtkWidgetsSpinBoxLong(QWidget * parent = nullptr);
CABEL Tristan's avatar
CABEL Tristan committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
    ~dtkWidgetsSpinBoxLong(void);

signals:
    void valueChanged(long long);

public:
    void stepBy(int) override;
    void stepDown(void);
    void stepUp(void);

    void setMinimum(long long);
    void setMaximum(long long);
    void setValue(long long);

protected:
    QAbstractSpinBox::StepEnabled stepEnabled(void) const override;

private:
    class dtkWidgetsSpinBoxLongPrivate *d;
};

//
// dtkWidgetsSpinBoxLong.h ends here