summaryrefslogtreecommitdiffstats
path: root/examples/demo/opengl/glinfotext.h
blob: 991428091dc42761c38b461b37b968d94ce99539 (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 <ntqlayout.h>
#include <ntqtextview.h>
#include <ntqfont.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;
};