mirror of
https://github.com/Indy970/QtHPConnect
synced 2024-11-17 07:49:02 +01:00
32 lines
572 B
C++
32 lines
572 B
C++
#include "hp_mdiwindow.h"
|
|
#include <QDebug>
|
|
|
|
hp_MdiWindow::hp_MdiWindow(QWidget * parent)
|
|
:QMdiSubWindow(parent)
|
|
{
|
|
setMinimumSize(500,400);
|
|
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();
|
|
}
|
|
|
|
hp_MdiWindow::~hp_MdiWindow() {
|
|
|
|
qDebug()<<"Entering ~hpmdiWindow()";
|
|
|
|
}
|