summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_qt_add_ui_common/UicIncBuild_sameFileDiffFolder/src/widget2.cpp
blob: 721f0c868f16c145717b8c7c929b14016bed4e8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include "widget2.h"

#include "../../../../ui_widget1.h"

Widget2::Widget2(QWidget* parent)
  : QWidget(parent)
  , ui(new Ui::Widget2)
{
  ui->setupUi(this);
  connect(ui->lineEdit, SIGNAL(textChanged(const QString&)), this,
          SLOT(onTextChanged(const QString&)));
}

Widget2::~Widget2()
{
  delete ui;
}

void Widget2::onTextChanged(const QString& text)
{
  ui->OnTextChanged->setText(text);
}