dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Utilities

A QSpinBox backed by a 64-bit integer. More...

Classes

class  LongLongSpinBox
 
class  ScaledPixmapLabel
 

Functions

 LongLongSpinBox::LongLongSpinBox (QWidget *parent=nullptr)
 
 LongLongSpinBox::~LongLongSpinBox ()
 
qint64 LongLongSpinBox::value () const
 
QString LongLongSpinBox::prefix () const
 
void LongLongSpinBox::setPrefix (const QString &prefix)
 
QString LongLongSpinBox::suffix () const
 
void LongLongSpinBox::setSuffix (const QString &suffix)
 
QString LongLongSpinBox::cleanText () const
 
qint64 LongLongSpinBox::singleStep () const
 
void LongLongSpinBox::setSingleStep (qint64 val)
 
qint64 LongLongSpinBox::minimum () const
 
void LongLongSpinBox::setMinimum (qint64 min)
 
qint64 LongLongSpinBox::maximum () const
 
void LongLongSpinBox::setMaximum (qint64 max)
 
void LongLongSpinBox::setRange (qint64 min, qint64 max)
 
int LongLongSpinBox::displayIntegerBase () const
 
void LongLongSpinBox::setDisplayIntegerBase (int base)
 
virtual QString LongLongSpinBox::textFromValue (qint64 val) const
 
virtual qint64 LongLongSpinBox::valueFromText (const QString &text)
 
qint64 LongLongSpinBox::validateAndInterpret (QString &input, int &pos, QValidator::State &state) const
 
QValidator::State LongLongSpinBox::validate (QString &input, int &pos) const override
 
void LongLongSpinBox::fixup (QString &str) const override
 
QString LongLongSpinBox::stripped (const QString &text, int *pos=nullptr) const
 
void LongLongSpinBox::updateEdit ()
 
virtual StepEnabled LongLongSpinBox::stepEnabled () const override
 
virtual void LongLongSpinBox::stepBy (int steps) override
 
virtual void LongLongSpinBox::setLineEdit (QLineEdit *edit)
 
virtual QSize LongLongSpinBox::minimumSizeHint () const override
 
virtual bool LongLongSpinBox::event (QEvent *event) override
 
 ScaledPixmapLabel::ScaledPixmapLabel (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 ScaledPixmapLabel. More...
 
virtual int ScaledPixmapLabel::heightForWidth (int width) const
 heightForWidth Given a desired width, return the desired height More...
 
QPixmap ScaledPixmapLabel::scaledPixmap () const
 scaledPixmap Scale the pixmap to fit desired size More...
 
virtual QSize ScaledPixmapLabel::sizeHint () const
 sizeHint Calculate desired size More...
 
virtual void ScaledPixmapLabel::resizeEvent (QResizeEvent *event)
 

Public Slots

void LongLongSpinBox::setValue (qint64 val)
 
void ScaledPixmapLabel::setPixmap (const QPixmap &pixmap)
 setPixmap Sets the current pixmap More...
 

Protected Slots

void LongLongSpinBox::lineEditChanged (const QString &t)
 

Detailed Description

A QSpinBox backed by a 64-bit integer.

Provides a QLabel containing a QPixmap that scales with the label.

Function Documentation

QString LongLongSpinBox::cleanText ( ) const

Definition at line 94 of file longlongspinbox.cpp.

int LongLongSpinBox::displayIntegerBase ( ) const

Definition at line 138 of file longlongspinbox.cpp.

bool LongLongSpinBox::event ( QEvent *  event)
overridevirtual

Definition at line 368 of file longlongspinbox.cpp.

void LongLongSpinBox::fixup ( QString &  str) const
overrideprotected

Definition at line 238 of file longlongspinbox.cpp.

int ScaledPixmapLabel::heightForWidth ( int  width) const
virtual

heightForWidth Given a desired width, return the desired height

Parameters
widthDesired width
Returns
Desired height, or -1 if height doesn't depend on width

Definition at line 39 of file scaledpixmaplabel.cpp.

LongLongSpinBox::LongLongSpinBox ( QWidget *  parent = nullptr)
explicit

Definition at line 41 of file longlongspinbox.cpp.

qint64 LongLongSpinBox::maximum ( ) const

Definition at line 120 of file longlongspinbox.cpp.

qint64 LongLongSpinBox::minimum ( ) const

Definition at line 110 of file longlongspinbox.cpp.

QSize LongLongSpinBox::minimumSizeHint ( ) const
overridevirtual

Definition at line 335 of file longlongspinbox.cpp.

QString LongLongSpinBox::prefix ( ) const

Definition at line 68 of file longlongspinbox.cpp.

void ScaledPixmapLabel::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Definition at line 59 of file scaledpixmaplabel.cpp.

QPixmap ScaledPixmapLabel::scaledPixmap ( ) const

scaledPixmap Scale the pixmap to fit desired size

Returns
The scaled pixmap

Definition at line 46 of file scaledpixmaplabel.cpp.

ScaledPixmapLabel::ScaledPixmapLabel ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags() 
)
explicit

ScaledPixmapLabel.

Parameters
parentParent widget
fHas the same meaning as for QLabel

Definition at line 33 of file scaledpixmaplabel.cpp.

void LongLongSpinBox::setDisplayIntegerBase ( int  base)

Definition at line 143 of file longlongspinbox.cpp.

void LongLongSpinBox::setLineEdit ( QLineEdit *  edit)
protectedvirtual

Definition at line 314 of file longlongspinbox.cpp.

void LongLongSpinBox::setMaximum ( qint64  max)

Definition at line 125 of file longlongspinbox.cpp.

void LongLongSpinBox::setMinimum ( qint64  min)

Definition at line 115 of file longlongspinbox.cpp.

void LongLongSpinBox::setPrefix ( const QString &  prefix)

Definition at line 73 of file longlongspinbox.cpp.

void LongLongSpinBox::setRange ( qint64  min,
qint64  max 
)

Definition at line 130 of file longlongspinbox.cpp.

void LongLongSpinBox::setSingleStep ( qint64  val)

Definition at line 104 of file longlongspinbox.cpp.

void LongLongSpinBox::setSuffix ( const QString &  suffix)

Definition at line 86 of file longlongspinbox.cpp.

qint64 LongLongSpinBox::singleStep ( ) const

Definition at line 99 of file longlongspinbox.cpp.

QSize ScaledPixmapLabel::sizeHint ( ) const
virtual

sizeHint Calculate desired size

Returns
Desired size

Definition at line 51 of file scaledpixmaplabel.cpp.

void LongLongSpinBox::stepBy ( int  steps)
overrideprotectedvirtual

Definition at line 309 of file longlongspinbox.cpp.

QAbstractSpinBox::StepEnabled LongLongSpinBox::stepEnabled ( ) const
overrideprotectedvirtual

Definition at line 299 of file longlongspinbox.cpp.

QString LongLongSpinBox::stripped ( const QString &  text,
int *  pos = nullptr 
) const
protected

Definition at line 244 of file longlongspinbox.cpp.

QString LongLongSpinBox::suffix ( ) const

Definition at line 81 of file longlongspinbox.cpp.

QString LongLongSpinBox::textFromValue ( qint64  val) const
protectedvirtual

Definition at line 158 of file longlongspinbox.cpp.

void LongLongSpinBox::updateEdit ( )
protected

Definition at line 273 of file longlongspinbox.cpp.

QValidator::State LongLongSpinBox::validate ( QString &  input,
int &  pos 
) const
overrideprotected

Definition at line 231 of file longlongspinbox.cpp.

qint64 LongLongSpinBox::validateAndInterpret ( QString &  input,
int &  pos,
QValidator::State &  state 
) const
protected

Definition at line 182 of file longlongspinbox.cpp.

qint64 LongLongSpinBox::value ( ) const

Definition at line 53 of file longlongspinbox.cpp.

qint64 LongLongSpinBox::valueFromText ( const QString &  text)
protectedvirtual

Definition at line 174 of file longlongspinbox.cpp.

LongLongSpinBox::~LongLongSpinBox ( )

Definition at line 51 of file longlongspinbox.cpp.

Public Slots

void ScaledPixmapLabel::setPixmap ( const QPixmap &  pixmap)
slot

setPixmap Sets the current pixmap

Parameters
pixmapNew pixmap

Definition at line 66 of file scaledpixmaplabel.cpp.

void LongLongSpinBox::setValue ( qint64  val)
slot

Definition at line 58 of file longlongspinbox.cpp.

Protected Slots

void LongLongSpinBox::lineEditChanged ( const QString &  t)
protectedslot

Definition at line 322 of file longlongspinbox.cpp.