mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-09-16 18:54:54 +00:00
27 lines
553 B
C++
27 lines
553 B
C++
#include "intbasicfileviewer.h"
|
|
#include "ui_intbasicfileviewer.h"
|
|
#include "fileviewerinterface.h"
|
|
|
|
IntBasicFileViewer::IntBasicFileViewer(QWidget *parent) :
|
|
FileViewerInterface(parent),
|
|
ui(new Ui::IntBasicFileViewer)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
IntBasicFileViewer::~IntBasicFileViewer()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void IntBasicFileViewer::setFile(GenericFile *file) {
|
|
IntBasicFile *ibf = dynamic_cast<IntBasicFile*>(file);
|
|
if (ibf)
|
|
{
|
|
// setFile(ibf);
|
|
ui->textArea->setText(ibf->data());
|
|
}
|
|
}
|
|
|
|
|