46 lines
468 B
C++
46 lines
468 B
C++
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <QSpinBox>
|
|
#include "LogViewWidget.hpp"
|
|
|
|
namespace N_LogView
|
|
{
|
|
|
|
|
|
class LogViewSpinBox : public QSpinBox, public LogViewWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
|
|
LogViewSpinBox(LogViewField* a_field, QWidget* a_parent, const int a_value);
|
|
|
|
|
|
|
|
bool saveContent(LogViewTelegram* a_telegram) override;
|
|
|
|
protected slots:
|
|
void finishEditing();
|
|
|
|
signals:
|
|
|
|
|
|
void valueEditingFinished(int a_newValue);
|
|
|
|
};
|
|
|
|
}
|