NDEVR
API Documentation
PhoneNumberWidget.h
1#pragma once
2#include "NDEVR/Headers/QTDesignObject.h"
3#include "Base/Headers/Pointer.hpp"
4#include "NDEVR/Headers/Editor.h"
5#include <QWidget>
6namespace Ui
7{
8 class PhoneNumberUI;
9}
10namespace NDEVR
11{
12 class TelephoneNumber;
19 {
20 public:
25 PhoneNumberWidget(const DynamicPointer<QTDesignObject>& customer, QWidget* parent = nullptr);
26 protected:
28 void updateValues() final override;
32 TelephoneNumber phoneNumber() const;
33 protected:
34 Ui::PhoneNumberUI* ui;
35 };
36}
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
void updateValues() final override
Updates the displayed values from the underlying design object.
Ui::PhoneNumberUI * ui
The Qt Designer-generated UI.
PhoneNumberWidget(const DynamicPointer< QTDesignObject > &customer, QWidget *parent=nullptr)
Constructs the phone number editor.
TelephoneNumber phoneNumber() const
Returns the TelephoneNumber model for this editor.
The primary namespace for the NDEVR SDK.