2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include "helloworldwindow.h"
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QTextEdit>
|
|
|
|
|
#include <QVBoxLayout>
|
2008-12-02 15:08:31 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
using namespace HelloWorld::Internal;
|
|
|
|
|
|
|
|
|
|
HelloWorldWindow::HelloWorldWindow(QWidget *parent)
|
2008-12-02 15:08:31 +01:00
|
|
|
: QWidget(parent)
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
2018-11-11 00:53:35 +01:00
|
|
|
auto layout = new QVBoxLayout(this);
|
2009-04-17 21:11:52 +02:00
|
|
|
layout->addWidget(new QTextEdit(tr("Focus me to activate my context!")));
|
2008-12-02 12:01:29 +01:00
|
|
|
setWindowTitle(tr("Hello, world!"));
|
|
|
|
|
}
|