2019-02-10 14:32:15 +01:00
|
|
|
#include "hp_mdiwindow.h"
|
2019-09-15 17:23:44 +02:00
|
|
|
#include <QDebug>
|
2019-02-10 14:32:15 +01:00
|
|
|
|
2019-02-10 14:43:00 +01:00
|
|
|
hp_MdiWindow::hp_MdiWindow(QWidget * parent)
|
|
|
|
:QMdiSubWindow(parent)
|
2019-02-10 14:32:15 +01:00
|
|
|
{
|
2019-04-02 21:14:31 +02:00
|
|
|
setMinimumSize(500,400);
|
2019-02-10 14:43:00 +01:00
|
|
|
setMaximumSize(1000,1000);
|
|
|
|
setSizePolicy(QSizePolicy::Ignored,QSizePolicy::Ignored);
|
|
|
|
setup();
|
|
|
|
}
|
|
|
|
|
|
|
|
void hp_MdiWindow::setup() {
|
|
|
|
|
|
|
|
textEdit = new QTextEdit(this);
|
|
|
|
setWidget(textEdit);
|
|
|
|
}
|
|
|
|
|
|
|
|
QTextEdit * hp_MdiWindow::getEditor() {
|
|
|
|
return textEdit;
|
|
|
|
}
|
|
|
|
|
|
|
|
void hp_MdiWindow::show() {
|
|
|
|
textEdit->show();
|
|
|
|
QMdiSubWindow::show();
|
|
|
|
}
|
2019-02-10 14:32:15 +01:00
|
|
|
|
2019-02-10 14:43:00 +01:00
|
|
|
hp_MdiWindow::~hp_MdiWindow() {
|
2019-09-15 17:23:44 +02:00
|
|
|
|
2020-01-19 17:55:14 +01:00
|
|
|
qDebug()<<"Entering ~hpmdiWindow()";
|
2019-09-15 17:23:44 +02:00
|
|
|
|
2019-02-10 14:32:15 +01:00
|
|
|
}
|