summaryrefslogtreecommitdiffstats
path: root/examples/demo/opengl/glinfotext.h
blob: 80f42baba74128d10c112d5e58a7cc1e7b4ef53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <qlayout.h>
#include <qtextview.h>
#include <qfont.h>
#include "glinfo.h"

class GLInfoText : public TQWidget
{
public:
    GLInfoText(TQWidget *parent) 
	: TQWidget(parent)
    {
	view = new TQTextView(this);
	view->setFont(TQFont("courier", 10));
	view->setWordWrap(TQTextEdit::NoWrap);
	TQHBoxLayout *l = new TQHBoxLayout(this);
	l->addWidget(view);
	GLInfo info;
	view->setText(info.info());
    }
    
private:
    TQTextView *view;
};