mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 15:33:51 +00:00
Compound device edit dialog
This commit is contained in:
parent
90ac9c57e1
commit
74e6a439af
27 changed files with 4439 additions and 8 deletions
|
|
@ -7,7 +7,7 @@ class QPointerVariant {
|
|||
public:
|
||||
template <typename T> QPointerVariant(T *ptr)
|
||||
: ptr(static_cast<void*>(ptr)),
|
||||
variant(QVariant(*ptr)){};
|
||||
variant(QVariant(*ptr)){}
|
||||
void setValue(const QVariant &value) {
|
||||
auto destType = variant.type();
|
||||
if(!value.canConvert(destType)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue