NCL Composer
0.1.5
Main Page
Related Pages
Classes
All
Classes
Functions
Variables
Pages
textview.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: Texto Preview *
9
*Descrição: Apresentação de objetos de mída de tipo texto**/
10
11
#include "textview.h"
12
#include<QFile>
13
#include<QTextStream>
14
#include<QIODevice>
15
16
textview::textview
(QString filename)
17
{
18
QFile inputFile(filename);
19
QTextStream in(&inputFile);
20
inputFile.open(QIODevice::ReadOnly);
21
setText(in.readAll());
22
setReadOnly(
true
);
23
setStyleSheet(
"QTextEdit { background-color : white; color : black; }"
);
24
setAlignment(Qt::AlignCenter);
25
26
}
27
28
textview::~textview
()
29
{
30
31
}
composer-plugins
media-preview
textview.cpp
Generated on Tue Jun 18 2013 16:03:02 for NCL Composer by
1.8.4