Добавил:
korayakov
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
/****************************************************************************
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code.
**
** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy().
** These will automatically be called by the form's constructor and
** destructor.
*****************************************************************************/
void DisplayDialog::displayText(QString str)
{
textEdit->setText(str);
if (!isVisible()) show();
}
void DisplayDialog::self_init()
{
QHBoxLayout *bl = new QHBoxLayout();
bl->addStretch(1);
bl->addWidget(quit_Button);
QVBoxLayout *mainl = new QVBoxLayout(this);
mainl->setMargin(5);
mainl->setSpacing(5);
mainl->addWidget(textEdit);
mainl->addLayout(bl);
}
** ui.h extension file, included from the uic-generated form implementation.
**
** If you want to add, delete, or rename functions or slots, use
** Qt Designer to update this file, preserving your code.
**
** You should not define a constructor or destructor in this file.
** Instead, write your code in functions called init() and destroy().
** These will automatically be called by the form's constructor and
** destructor.
*****************************************************************************/
void DisplayDialog::displayText(QString str)
{
textEdit->setText(str);
if (!isVisible()) show();
}
void DisplayDialog::self_init()
{
QHBoxLayout *bl = new QHBoxLayout();
bl->addStretch(1);
bl->addWidget(quit_Button);
QVBoxLayout *mainl = new QVBoxLayout(this);
mainl->setMargin(5);
mainl->setSpacing(5);
mainl->addWidget(textEdit);
mainl->addLayout(bl);
}
Соседние файлы в папке net_sniff