Debian Codegraph @

tests/auto/cmake/test_qt_add_ui_common/UicIncrementalBuild/src/widget2.cpp

raw
1 // Copyright (C) 2023 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #include "widget2.h"
5
6 #include "src/ui_widget2.h"
7
8 Widget2::Widget2(QWidget* parent)
9 : QWidget(parent)
10 , ui(new Ui::Widget2)
11 {
12 ui->setupUi(this);
13 connect(ui->lineEdit, SIGNAL(textChanged(const QString&)), this,
14 SLOT(onTextChanged(const QString&)));
15 }
16
17 Widget2::~Widget2()
18 {
19 delete ui;
20 }
21
22 void Widget2::onTextChanged(const QString& text)
23 {
24 ui->OnTextChanged->setText(text);
25 }