Added NumberDisplay class
This commit is contained in:
parent
95d76f9a44
commit
45fd11151f
8 changed files with 110 additions and 41 deletions
30
NumberDisplay.h
Normal file
30
NumberDisplay.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#ifndef __NUMBERDISPLAY_H__
|
||||
#define __NUMBERDISPLAY_H__
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <QPixmap>
|
||||
#include <QPainter>
|
||||
#include <QWidget>
|
||||
|
||||
#include "PixWidget.h"
|
||||
|
||||
class NumberDisplay : public PixWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
NumberDisplay (QWidget *parent, uint, uint);
|
||||
~NumberDisplay ();
|
||||
|
||||
void setNumber (uint, uint);
|
||||
|
||||
protected:
|
||||
int m_w;
|
||||
int m_startpx;
|
||||
|
||||
uint m_n1;
|
||||
uint m_n2;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue