summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials/gettingStarted/gsQt/part3
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-05-15 12:24:50 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-05-15 23:54:01 +0200
commitc6540cb6e41aea6b4152109cade9aa145884a8f6 (patch)
treec2fe1e0d2609d8ae1e30e50aca71a3667c889c91 /examples/widgets/tutorials/gettingStarted/gsQt/part3
parent0cb46b25f3ac7f5d8e3c0365c4e5d033900360a2 (diff)
Doc cleanup: remove old gettingStarted tutorial, move doc file
The Qt getting started tutorial is based on the "notepad" example files in this directory, the gettingStarted/gsQt files are completely unused and not referenced in documentation. Pick-to: 6.5 Change-Id: If8caebd2c8359c81f94f72ef40a1cf92a021a83f Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'examples/widgets/tutorials/gettingStarted/gsQt/part3')
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt36
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/main.cpp61
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part3/part3.pro8
3 files changed, 0 insertions, 105 deletions
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt b/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
deleted file mode 100644
index 28aee654266..00000000000
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part3/CMakeLists.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (C) 2022 The Qt Company Ltd.
-# SPDX-License-Identifier: BSD-3-Clause
-
-cmake_minimum_required(VERSION 3.16)
-project(getting_started_part3 LANGUAGES CXX)
-
-if(NOT DEFINED INSTALL_EXAMPLESDIR)
- set(INSTALL_EXAMPLESDIR "examples")
-endif()
-
-set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/tutorials/gettingStarted/gsQt/part3")
-
-find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
-
-qt_standard_project_setup()
-
-qt_add_executable(getting_started_part3
- main.cpp
-)
-
-set_target_properties(getting_started_part3 PROPERTIES
- WIN32_EXECUTABLE TRUE
- MACOSX_BUNDLE TRUE
-)
-
-target_link_libraries(getting_started_part3 PRIVATE
- Qt6::Core
- Qt6::Gui
- Qt6::Widgets
-)
-
-install(TARGETS getting_started_part3
- RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
- BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
- LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
-)
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part3/main.cpp b/examples/widgets/tutorials/gettingStarted/gsQt/part3/main.cpp
deleted file mode 100644
index 5424dc3caab..00000000000
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part3/main.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include <QtWidgets>
-
-class Notepad : public QWidget
-{
- Q_OBJECT
-
-public:
- Notepad();
-
-private slots:
- void quit();
-
-private:
- QTextEdit *textEdit;
- QPushButton *quitButton;
-
-};
-
-Notepad::Notepad()
-{
- textEdit = new QTextEdit;
- quitButton = new QPushButton(tr("Quit"));
-
- connect(quitButton, &QPushButton::clicked,
- this, &Notepad::quit);
-
- QVBoxLayout *layout = new QVBoxLayout;
- layout->addWidget(textEdit);
- layout->addWidget(quitButton);
-
- setLayout(layout);
-
- setWindowTitle(tr("Notepad"));
-}
-
-void Notepad::quit()
-{
- QMessageBox messageBox;
- messageBox.setWindowTitle(tr("Notepad"));
- messageBox.setText(tr("Do you really want to quit?"));
- messageBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
- messageBox.setDefaultButton(QMessageBox::No);
- if (messageBox.exec() == QMessageBox::Yes)
- qApp->quit();
-}
-
-int main(int argc, char **argv)
-{
- QApplication app(argc, argv);
-
- Notepad notepad;
- notepad.show();
-
- return app.exec();
-}
-
-#include "main.moc"
-
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part3/part3.pro b/examples/widgets/tutorials/gettingStarted/gsQt/part3/part3.pro
deleted file mode 100644
index 1577848de5d..00000000000
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part3/part3.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-
-QT += widgets
-SOURCES = main.cpp
-
-# install
-target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tutorials/gettingStarted/gsQt/part3
-INSTALLS += target
-