styledregistrationdelegate.h 695 B

1234567891011121314151617181920
  1. #ifndef STYLEDREGISTRATIONDELEGATE_H
  2. #define STYLEDREGISTRATIONDELEGATE_H
  3. #include <QStyledItemDelegate>
  4. /*!
  5. * \brief The StyledRegistrationDelegate class is used to display a database date value human-readable.
  6. * \details The database stores tails as an integer representing a foreign key into a database
  7. * of tails. This delegate uses the Database cache to map this ID to a registration to display
  8. * in the view.
  9. */
  10. class StyledRegistrationDelegate : public QStyledItemDelegate
  11. {
  12. public:
  13. explicit StyledRegistrationDelegate(QObject *parent = nullptr);
  14. QString displayText(const QVariant &value, const QLocale &locale) const override;
  15. };
  16. #endif // STYLEDREGISTRATIONDELEGATE_H