ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ProvenanceWidget Class Referencefinal

Widget displaying the 6 standard record provenance fields. More...

#include <ProvenanceWidget.hpp>

Inherits QWidget.

Collaboration diagram for ProvenanceWidget:
Collaboration graph

Public Member Functions

 ProvenanceWidget (QWidget *parent=nullptr)
 
void populate (int version, const std::string &modified_by, const std::string &performed_by, std::chrono::system_clock::time_point recorded_at, const std::string &change_reason_code, const std::string &change_commentary)
 Populate all provenance fields from entity data.
 
void clear ()
 Clear all provenance fields.
 

Detailed Description

Widget displaying the 6 standard record provenance fields.

All fields are read-only. Embed one in every detail dialog's Provenance tab via the provenanceWidget named widget.

Member Function Documentation

◆ populate()

void populate ( int  version,
const std::string &  modified_by,
const std::string &  performed_by,
std::chrono::system_clock::time_point  recorded_at,
const std::string &  change_reason_code,
const std::string &  change_commentary 
)

Populate all provenance fields from entity data.

Parameters
recorded_atPass a default-constructed time_point to leave Recorded At blank (for entities without this field).