diff options
Diffstat (limited to 'examples/designer/worldtimeclockbuilder')
5 files changed, 0 insertions, 309 deletions
diff --git a/examples/designer/worldtimeclockbuilder/CMakeLists.txt b/examples/designer/worldtimeclockbuilder/CMakeLists.txt deleted file mode 100644 index b435dba0d..000000000 --- a/examples/designer/worldtimeclockbuilder/CMakeLists.txt +++ /dev/null @@ -1,54 +0,0 @@ -# Generated from worldtimeclockbuilder.pro. - -cmake_minimum_required(VERSION 3.16) -project(worldtimeclockbuilder LANGUAGES CXX) - -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) - -if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/designer/worldtimeclockbuilder") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) -find_package(Qt6 COMPONENTS UiTools) - -qt_add_executable(worldtimeclockbuilder - main.cpp -) -set_target_properties(worldtimeclockbuilder PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) -target_link_libraries(worldtimeclockbuilder PUBLIC - Qt::Core - Qt::Gui - Qt::UiTools - Qt::Widgets -) - - -# Resources: -set(worldtimeclockbuilder_resource_files - "form.ui" -) - -qt6_add_resources(worldtimeclockbuilder "worldtimeclockbuilder" - PREFIX - "/forms" - FILES - ${worldtimeclockbuilder_resource_files} -) - -install(TARGETS worldtimeclockbuilder - RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" - BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" -) diff --git a/examples/designer/worldtimeclockbuilder/form.ui b/examples/designer/worldtimeclockbuilder/form.ui deleted file mode 100644 index e5be1d911..000000000 --- a/examples/designer/worldtimeclockbuilder/form.ui +++ /dev/null @@ -1,162 +0,0 @@ -<ui version="4.0" > - <author></author> - <comment></comment> - <exportmacro></exportmacro> - <class>WorldTimeForm</class> - <widget class="QWidget" name="WorldTimeForm" > - <property name="geometry" > - <rect> - <x>0</x> - <y>0</y> - <width>400</width> - <height>300</height> - </rect> - </property> - <property name="windowTitle" > - <string>World Time Clock</string> - </property> - <layout class="QHBoxLayout" > - <property name="margin" > - <number>9</number> - </property> - <property name="spacing" > - <number>6</number> - </property> - <item> - <widget class="WorldTimeClock" name="worldTimeClock" /> - </item> - <item> - <layout class="QVBoxLayout" > - <property name="margin" > - <number>1</number> - </property> - <property name="spacing" > - <number>6</number> - </property> - <item> - <spacer> - <property name="orientation" > - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" > - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item> - <layout class="QHBoxLayout" > - <property name="margin" > - <number>1</number> - </property> - <property name="spacing" > - <number>6</number> - </property> - <item> - <widget class="QLabel" name="label" > - <property name="text" > - <string>Current time:</string> - </property> - </widget> - </item> - <item> - <widget class="QTimeEdit" name="timeEdit" > - <property name="readOnly" > - <bool>true</bool> - </property> - </widget> - </item> - </layout> - </item> - <item> - <layout class="QHBoxLayout" > - <property name="margin" > - <number>1</number> - </property> - <property name="spacing" > - <number>6</number> - </property> - <item> - <widget class="QLabel" name="label_2" > - <property name="text" > - <string>Set time zone:</string> - </property> - </widget> - </item> - <item> - <widget class="QSpinBox" name="spinBox" > - <property name="maximum" > - <number>12</number> - </property> - <property name="minimum" > - <number>-12</number> - </property> - </widget> - </item> - </layout> - </item> - <item> - <spacer> - <property name="orientation" > - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" > - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - </layout> - </widget> - <pixmapfunction></pixmapfunction> - <customwidgets> - <customwidget> - <class>WorldTimeClock</class> - <extends></extends> - <header>worldtimeclock.h</header> - <container>0</container> - <pixmap></pixmap> - </customwidget> - </customwidgets> - <resources/> - <connections> - <connection> - <sender>spinBox</sender> - <signal>valueChanged(int)</signal> - <receiver>worldTimeClock</receiver> - <slot>setTimeZone(int)</slot> - <hints> - <hint type="sourcelabel" > - <x>339</x> - <y>166</y> - </hint> - <hint type="destinationlabel" > - <x>157</x> - <y>230</y> - </hint> - </hints> - </connection> - <connection> - <sender>worldTimeClock</sender> - <signal>updated(QTime)</signal> - <receiver>timeEdit</receiver> - <slot>setTime(QTime)</slot> - <hints> - <hint type="sourcelabel" > - <x>141</x> - <y>59</y> - </hint> - <hint type="destinationlabel" > - <x>291</x> - <y>133</y> - </hint> - </hints> - </connection> - </connections> -</ui> diff --git a/examples/designer/worldtimeclockbuilder/main.cpp b/examples/designer/worldtimeclockbuilder/main.cpp deleted file mode 100644 index ad2728079..000000000 --- a/examples/designer/worldtimeclockbuilder/main.cpp +++ /dev/null @@ -1,80 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -//! [0] -#include <QtUiTools> -//! [0] -#include <QApplication> -#include <QWidget> -#include <QFile> -//! [1] -int main(int argc, char *argv[]) -{ - Q_INIT_RESOURCE(worldtimeclockbuilder); - - QApplication app(argc, argv); - - QUiLoader loader; -//! [1] - -//! [2] - QFile file(":/forms/form.ui"); - file.open(QFile::ReadOnly); - - QWidget *widget = loader.load(&file); - - file.close(); - widget->show(); -//! [2] - -//! [3] - return app.exec(); -} -//! [3] diff --git a/examples/designer/worldtimeclockbuilder/worldtimeclockbuilder.pro b/examples/designer/worldtimeclockbuilder/worldtimeclockbuilder.pro deleted file mode 100644 index 1e420aa65..000000000 --- a/examples/designer/worldtimeclockbuilder/worldtimeclockbuilder.pro +++ /dev/null @@ -1,8 +0,0 @@ -#! [0] -QT += widgets uitools -SOURCES = main.cpp -RESOURCES = worldtimeclockbuilder.qrc -#! [0] - -target.path = $$[QT_INSTALL_EXAMPLES]/designer/worldtimeclockbuilder -INSTALLS += target diff --git a/examples/designer/worldtimeclockbuilder/worldtimeclockbuilder.qrc b/examples/designer/worldtimeclockbuilder/worldtimeclockbuilder.qrc deleted file mode 100644 index 89d5ac3c2..000000000 --- a/examples/designer/worldtimeclockbuilder/worldtimeclockbuilder.qrc +++ /dev/null @@ -1,5 +0,0 @@ -<!DOCTYPE RCC><RCC version="1.0"> -<qresource prefix="/forms"> - <file>form.ui</file> -</qresource> -</RCC> |