Newer
Older
Import / applications / Photoframe / src / text.h
@John Ryland John Ryland on 22 Dec 2020 601 bytes import of apps from backup copy of dell-pc
#ifndef __TEXT_H__
#define __TEXT_H__


#include <QLabel>


class Text : public QLabel
{
	Q_OBJECT
public:
	Text(QWidget *parent, int x, int y, const char *str, int size = 20, QColor col = Qt::white);
	~Text();

	void setColor(QColor col);

public slots:
	void fontChanged(QString fnt);
	void languageChanged(QString lang);
	void colorChanged(QString color);
	void backgroundChanged(QString background);
	void setString(QString str) { text = str.toLatin1().data(); setText(str); };

/*
protected:
	void paintEvent(QPaintEvent *pe);
*/

private:
	int size;
	const char *text;
};


#endif // __TEXT_H__