Back to index

fet  5.18.0
Public Member Functions
LastWarningsDialog Class Reference

#include <import.h>

List of all members.

Public Member Functions

 LastWarningsDialog (QWidget *parent)
 ~LastWarningsDialog ()

Detailed Description

Definition at line 131 of file import.h.


Constructor & Destructor Documentation

Definition at line 428 of file import.cpp.

                                                     : QDialog(parent)
{
       this->setWindowTitle(tr("FET - import %1 comment", "The comment of the importing of the category named %1").arg(importThing));
       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 460 of file import.cpp.

{
}

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