NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
intnumericdelegate.h File Reference

This file contains the declaration of the IntNumericDelegate class. More...

#include <QItemDelegate>
#include <QSpinBox>

Go to the source code of this file.

Classes

class  IntNumericDelegate
 The IntNumericDelegate class provides a spin box editor for integer numeric data in a view. More...
 

Detailed Description

This file contains the declaration of the IntNumericDelegate class.

The IntNumericDelegate class is a QItemDelegate subclass that provides a spin box editor for integer numeric data in a view. It allows users to edit integer values using spin boxes in a model-based view. The IntNumericDelegate class sets the minimum and maximum values of the spin box to -1,000,000,000 and 1,000,000,000, respectively. The IntNumericDelegate class is intended to be used with integer numeric data in a table or list view. It is typically used with a QAbstractItemModel-based model. The IntNumericDelegate class is derived from QItemDelegate and utilizes QSpinBox as the editor widget. This class is suitable for handling integer numeric values in a table or list view with a QSpinBox editor. When the user modifies the spin box value, the model data is updated accordingly. The IntNumericDelegate class can be used in a QWidget-based application. Note: The IntNumericDelegate class does not handle display text formatting.

Author
Ahmed Aredah
Date
6/7/2023