{
Q_OBJECT
public:
{
Dialog
->setObjectName
(QString::fromUtf8("Dialog"));
Dialog
->resize
(QSize(552,
555).
expandedTo(Dialog
->minimumSizeHint
()));
layoutWidget
= new QWidget(Dialog
);
layoutWidget
->setObjectName
(QString::fromUtf8("layoutWidget"));
layoutWidget
->setGeometry
(QRect(230,
410,
131,
38));
hboxLayout->setSpacing(6);
hboxLayout->setMargin(0);
hboxLayout
->setObjectName
(QString::fromUtf8("hboxLayout"));
exit
->setObjectName
(QString::fromUtf8("exit"));
hboxLayout->addWidget(exit);
text2
->setObjectName
(QString::fromUtf8("text2"));
text2
->setGeometry
(QRect(60,
220,
104,
52));
list1
->setObjectName
(QString::fromUtf8("list1"));
list1
->setGeometry
(QRect(380,
90,
120,
80));
enter
->setObjectName
(QString::fromUtf8("enter"));
enter
->setGeometry
(QRect(210,
90,
108,
36));
text1
->setObjectName
(QString::fromUtf8("text1"));
text1
->setGeometry
(QRect(60,
80,
104,
52));
QWidget::setTabOrder(text1, enter
);
QWidget::setTabOrder(enter, list1
);
QWidget::setTabOrder(list1, text2
);
retranslateUi(Dialog);
QObject::connect(exit,
SIGNAL(clicked
()),
this,
SLOT(reject
()));
QObject::connect(enter,
SIGNAL(clicked
()),
this,
SLOT(show
()));
QObject::connect(text1,
SIGNAL(textChanged
()),
this,
SLOT(update
()));
} // setupUi
void retranslateUi
(QDialog *Dialog
) {
Q_UNUSED(Dialog);
} // retranslateUi
public slots:
void show()
{
list1->addItem(text1->toPlainText());
}
};
class Ui_Dialog : public QObject
{
Q_OBJECT
public:
QWidget *layoutWidget;
QHBoxLayout *hboxLayout;
QPushButton *exit;
QTextEdit *text2;
QListWidget *list1;
QPushButton *enter;
QTextEdit *text1;
void setupUi(QDialog *Dialog)
{
Dialog->setObjectName(QString::fromUtf8("Dialog"));
Dialog->resize(QSize(552, 555).expandedTo(Dialog->minimumSizeHint()));
layoutWidget = new QWidget(Dialog);
layoutWidget->setObjectName(QString::fromUtf8("layoutWidget"));
layoutWidget->setGeometry(QRect(230, 410, 131, 38));
hboxLayout = new QHBoxLayout(layoutWidget);
hboxLayout->setSpacing(6);
hboxLayout->setMargin(0);
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
exit = new QPushButton(layoutWidget);
exit->setObjectName(QString::fromUtf8("exit"));
hboxLayout->addWidget(exit);
text2 = new QTextEdit(Dialog);
text2->setObjectName(QString::fromUtf8("text2"));
text2->setGeometry(QRect(60, 220, 104, 52));
list1 = new QListWidget(Dialog);
list1->setObjectName(QString::fromUtf8("list1"));
list1->setGeometry(QRect(380, 90, 120, 80));
enter = new QPushButton(Dialog);
enter->setObjectName(QString::fromUtf8("enter"));
enter->setGeometry(QRect(210, 90, 108, 36));
text1 = new QTextEdit(Dialog);
text1->setObjectName(QString::fromUtf8("text1"));
text1->setGeometry(QRect(60, 80, 104, 52));
QWidget::setTabOrder(text1, enter);
QWidget::setTabOrder(enter, list1);
QWidget::setTabOrder(list1, text2);
QWidget::setTabOrder(text2, exit);
retranslateUi(Dialog);
QObject::connect(exit, SIGNAL(clicked()), this, SLOT(reject()));
QObject::connect(enter, SIGNAL(clicked()), this, SLOT(show()));
QObject::connect(list1, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(copy()));
QObject::connect(text1, SIGNAL(textChanged()), this, SLOT(update()));
QMetaObject::connectSlotsByName(Dialog);
} // setupUi
void retranslateUi(QDialog *Dialog)
{
Dialog->setWindowTitle(QApplication::translate("Dialog", "Dialog", 0, QApplication::UnicodeUTF8));
exit->setText(QApplication::translate("Dialog", "Exit", 0, QApplication::UnicodeUTF8));
enter->setText(QApplication::translate("Dialog", "Enter", 0, QApplication::UnicodeUTF8));
Q_UNUSED(Dialog);
} // retranslateUi
public slots:
void show()
{
list1->addItem(text1->toPlainText());
}
};
To copy to clipboard, switch view to plain text mode
Bookmarks