NCL Composer
0.1.5
Main Page
Related Pages
Classes
All
Classes
Functions
Variables
Pages
luaview.cpp
1
/*INF2102 Projeto Final de Programação*****************
2
*Período: 2012/2
3
*Coordenador: Prof. Carlos José Pereira Lucena *
4
*Projeto: Media-Preview Plugin para o Composer 3.0 *
5
*Nome do aluno: Amparito Alexandra Morales Figueroa. * *
6
*Matrícula: 1121838 *
7
*Orientador: Prof. Luiz Fernando Gomes Soares *
8
*Classe: Lua Preview *
9
*Descrição: Apresentação de objetos tipo lua***********/
10
11
#include "luaview.h"
12
#include <QString>
13
#include<QFile>
14
#include<QTextStream>
15
luaview::luaview
(QString filename)
16
{
17
QFile inputFile(filename);
18
QTextStream in(&inputFile);
19
inputFile.open(QIODevice::ReadOnly);
20
setText(in.readAll());
21
setReadOnly(
true
);
22
setStyleSheet(
"QTextEdit { background-color : white; color : black; }"
);
23
setAlignment(Qt::AlignCenter);
24
}
25
26
luaview::~luaview
()
27
{
28
29
}
composer-plugins
media-preview
luaview.cpp
Generated on Tue Jun 18 2013 16:03:00 for NCL Composer by
1.8.4