Debian Codegraph @

tests/auto/cmake/test_qt_add_ui_common/UicIncrementalBuild/src/widget1.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 "widget1.h"
5
6 #include "src/ui_widget1.h"
7
8 Widget1::Widget1(QWidget* parent)
9 : QWidget(parent)
10 , ui(new Ui::Widget1)
11 {
12 ui->setupUi(this);
13 connect(ui->lineEdit, SIGNAL(textChanged(const QString&)), this,
14 SLOT(onTextChanged(const QString&)));
15 }
16
17 Widget1::~Widget1()
18 {
19 delete ui;
20 }
21
22 void Widget1::onTextChanged(const QString& text)
23 {
24 ui->OnTextChanged->setText(text);
25 }