
Widgets interested in such events handle the signal and update their pixmaps accordingly.
33 lines
449 B
C++
33 lines
449 B
C++
#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);
|
|
|
|
public slots:
|
|
void setPixmaps (Skin *skin);
|
|
|
|
protected:
|
|
int m_w;
|
|
int m_startpx;
|
|
|
|
uint m_n1;
|
|
uint m_n2;
|
|
};
|
|
|
|
|
|
#endif
|