widgets/multiplyfactordialog.h

Tue, 28 Jun 2022 19:47:34 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Tue, 28 Jun 2022 19:47:34 +0300
changeset 300
3a4b132b8353
parent 264
76a025db4948
permissions
-rw-r--r--

Fix build warnings, size_type of QVector changes from Qt5 to Qt6 so we need an alias for it

#pragma once
#include <QDialog>
#include "widgets/vec3editor.h"

namespace Ui
{
	class MultiplyFactorDialog;
}

class MultiplyFactorDialog : public QDialog
{
	Q_OBJECT
public:
	explicit MultiplyFactorDialog(const glm::vec3& baseVector = glm::vec3{}, QWidget *parent = nullptr);
	~MultiplyFactorDialog();
	glm::vec3 value() const;
private:
	Q_SLOT void updatePreview();
	std::unique_ptr<Ui::MultiplyFactorDialog> ui;
	const glm::vec3 baseVector;
	VectorInput preview;
};

mercurial