1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-22 12:07:45 +00:00
novus/common/include/vec3edit.h
Joshua Goins 50f9faac0f Remove updateTimer from Vector3Edit
It attempts to call a function to stop it, even though we never
initialize it.
2024-10-20 19:53:50 -04:00

30 lines
574 B
C++

// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QSpinBox>
#include <QWidget>
#include <glm/glm.hpp>
#include "novuscommon_export.h"
class NOVUSCOMMON_EXPORT Vector3Edit : public QWidget
{
Q_OBJECT
public:
explicit Vector3Edit(glm::vec3 &vec, QWidget *parent = nullptr);
void setVector(glm::vec3 &vec);
Q_SIGNALS:
void onValueChanged();
private:
struct {
QDoubleSpinBox *x = nullptr, *y = nullptr, *z = nullptr;
} spinBoxes;
glm::vec3 &vec;
};