Back to index

fet  5.18.0
Public Member Functions
LastWarningsDialogE Class Reference

#include <export.h>

List of all members.

Public Member Functions

 LastWarningsDialogE (QWidget *parent, QString lastWarning)
 ~LastWarningsDialogE ()

Detailed Description

Definition at line 64 of file export.h.


Constructor & Destructor Documentation

LastWarningsDialogE::LastWarningsDialogE ( QWidget *  parent,
QString  lastWarning 
)

Definition at line 396 of file export.cpp.

                                                                            : QDialog(parent)
{
       this->setWindowTitle(tr("FET - export comment", "The comment of the exporting operation"));
       QVBoxLayout* lastWarningsMainLayout=new QVBoxLayout(this);

       QPlainTextEdit* lastWarningsText=new QPlainTextEdit();
       lastWarningsText->setMinimumWidth(500);                        //width
       lastWarningsText->setMinimumHeight(250);
       lastWarningsText->setReadOnly(true);
       lastWarningsText->setWordWrapMode(QTextOption::NoWrap);
       lastWarningsText->setPlainText(lastWarning);

       //Start Buttons
       QPushButton* pb1=new QPushButton(tr("&Ok"));
       //pb1->setAutoDefault(true);

       QHBoxLayout* hl=new QHBoxLayout();
       hl->addStretch();
       hl->addWidget(pb1);

       //Start adding all into main layout
       lastWarningsMainLayout->addWidget(lastWarningsText);
       lastWarningsMainLayout->addLayout(hl);

       QObject::connect(pb1, SIGNAL(clicked()), this, SLOT(accept()));
       
       //pb1->setDefault(true);

       pb1->setDefault(true);
       pb1->setFocus();
}

Definition at line 428 of file export.cpp.

{
}

The documentation for this class was generated from the following files: