The QtLockedFile class extends QFile with advisory locking functions.
20 |
This class extends the QFile class with inter-process file locking capabilities. If an application requires that several processes should access the same file, QtLockedFile can be used to easily ensure that only one process at a time is writing to the file, and that no process is writing to it while others are reading it.
This example demonstrates how to decorate the existing QtDoublePropertyManager class with additional responsibilities.
18 |
It also shows how to write respective editor factory for decorated manager by delegating common responsibilities of undecorated base manager to the aggregated QtDoubleSpinBoxFactory member.
19 |
The source files can be found in examples/decoration directory of the package.
This example shows how to customize a property browser widget's appearance and behavior.
18 |
The various property browsers presented in this example display the same set of properties, and are implementations of the QtTreePropertyBrowser class and the QtGroupBoxPropertyBrowser class, respectively.
19 |
The example shows how a property browser's appearance and behavior can be varied using the QtPropertyBrowser framework's property managers and editor factories.
20 |
The source files can be found in examples/demo directory of the package.
This example implements a simple widget component which shows QObject's and its subclasses' properties. The user can modify these properies interacively and the object controller applies the changes to the controlled object. The object controller is similar to the property editor used in QDesigner application. To control the object just instantiate ObjectController, set controlled object (any QObject subclass) by calling ObjectController::setObject() and show the controller.
18 |
The source files can be found in examples/object_controller directory of the package.
25 |
26 |
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/canvas_typed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/canvas_typed.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/canvas_variant.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/canvas_variant.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/decoration.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/decoration.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/demo.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/extension.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/extension.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/object_controller.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/object_controller.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/qt-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/qt-logo.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/qtbuttonpropertybrowser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/qtbuttonpropertybrowser.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/qtgroupboxpropertybrowser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/qtgroupboxpropertybrowser.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/qtpropertybrowser-duplicate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/qtpropertybrowser-duplicate.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/qtpropertybrowser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/qtpropertybrowser.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/qttreepropertybrowser.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/qttreepropertybrowser.png
--------------------------------------------------------------------------------
/qtpropertybrowser/doc/images/simple.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/doc/images/simple.png
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/canvas_typed/canvas_typed.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | DEPENDPATH += .
3 | INCLUDEPATH += .
4 |
5 | include(../../src/qtpropertybrowser.pri)
6 | # Input
7 | HEADERS += qtcanvas.h mainwindow.h
8 | SOURCES += qtcanvas.cpp mainwindow.cpp main.cpp
9 |
10 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/canvas_typed/main.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | #include
42 | #include "mainwindow.h"
43 |
44 | int main(int argc, char **argv)
45 | {
46 | QApplication app(argc, argv);
47 |
48 | MainWindow mw;
49 | mw.show();
50 |
51 | return app.exec();
52 | }
53 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/canvas_variant/canvas_variant.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | DEPENDPATH += .
3 | INCLUDEPATH += .
4 |
5 | include(../../src/qtpropertybrowser.pri)
6 | # Input
7 | HEADERS += qtcanvas.h mainwindow.h
8 | SOURCES += qtcanvas.cpp mainwindow.cpp main.cpp
9 |
10 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/canvas_variant/main.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | #include
42 | #include "mainwindow.h"
43 |
44 | int main(int argc, char **argv)
45 | {
46 | QApplication app(argc, argv);
47 |
48 | MainWindow mw;
49 | mw.show();
50 |
51 | return app.exec();
52 | }
53 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/decoration/decoration.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | DEPENDPATH += .
3 | INCLUDEPATH += .
4 |
5 | include(../../src/qtpropertybrowser.pri)
6 | # Input
7 | SOURCES += main.cpp
8 |
9 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/demo/demo.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | DEPENDPATH += .
3 | INCLUDEPATH += .
4 |
5 | include(../../src/qtpropertybrowser.pri)
6 | # Input
7 | SOURCES += main.cpp
8 | RESOURCES += demo.qrc
9 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/demo/demo.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | images/up.png
4 | images/down.png
5 | images/right.png
6 | images/left.png
7 |
8 |
9 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/demo/images/down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/examples/demo/images/down.png
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/demo/images/left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/examples/demo/images/left.png
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/demo/images/right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/examples/demo/images/right.png
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/demo/images/up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/examples/demo/images/up.png
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/examples.pro:
--------------------------------------------------------------------------------
1 | ######################################################################
2 | # Automatically generated by qmake (2.00a) Wed Jun 15 15:53:34 2005
3 | ######################################################################
4 |
5 | TEMPLATE = subdirs
6 | SUBDIRS = simple canvas_variant canvas_typed demo decoration extension object_controller
7 |
8 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/extension/extension.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | DEPENDPATH += .
3 | INCLUDEPATH += .
4 |
5 | include(../../src/qtpropertybrowser.pri)
6 | # Input
7 | SOURCES += main.cpp
8 |
9 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/extension/extension.qdoc:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | /*!
42 | \page qtpropertybrowser-example-extension.html
43 | \title Extension Example
44 |
45 | This example demonstrates how to extend the
46 | QtVariantPropertyManager class to handle additional property
47 | types.
48 |
49 | \image extension.png
50 |
51 | The variant manager is extended to handle the QPointF type.
52 |
53 | The source files can be found in examples/extension directory of the package.
54 | */
55 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/object_controller/object_controller.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | DEPENDPATH += .
3 | INCLUDEPATH += .
4 |
5 | include(../../src/qtpropertybrowser.pri)
6 | # Input
7 | HEADERS += objectcontroller.h
8 | SOURCES += objectcontroller.cpp main.cpp
9 |
10 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/simple/simple.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | DEPENDPATH += .
3 | INCLUDEPATH += .
4 |
5 | include(../../src/qtpropertybrowser.pri)
6 | # Input
7 | SOURCES += main.cpp
8 |
9 |
--------------------------------------------------------------------------------
/qtpropertybrowser/examples/simple/simple.qdoc:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | /*!
42 | \page qtpropertybrowser-example-simple.html
43 | \title Simple Tree Property Browser Example
44 |
45 | \image simple.png
46 |
47 | This example shows how to present various properties using a
48 | simple tree property browser, i.e. an implementation of the
49 | QtTreePropertyBrowser class.
50 |
51 | The source files can be found in examples/simple directory of the package.
52 | */
53 |
--------------------------------------------------------------------------------
/qtpropertybrowser/qtpropertybrowser.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE=subdirs
2 | CONFIG += ordered
3 | include(common.pri)
4 | qtpropertybrowser-uselib:SUBDIRS=buildlib
5 | SUBDIRS+=examples
6 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtAbstractEditorFactoryBase:
--------------------------------------------------------------------------------
1 | #include "qtpropertybrowser.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtAbstractPropertyBrowser:
--------------------------------------------------------------------------------
1 | #include "qtpropertybrowser.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtAbstractPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertybrowser.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtBoolPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtBrowserItem:
--------------------------------------------------------------------------------
1 | #include "qtpropertybrowser.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtButtonPropertyBrowser:
--------------------------------------------------------------------------------
1 | #include "qtbuttonpropertybrowser.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtCharEditorFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtCharPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtCheckBoxFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtColorEditorFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtColorPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtCursorEditorFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtCursorPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtDateEditFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtDatePropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtDateTimeEditFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtDateTimePropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtDoublePropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtDoubleSpinBoxFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtEnumEditorFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtEnumPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtFlagPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtFontEditorFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtFontPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtGroupBoxPropertyBrowser:
--------------------------------------------------------------------------------
1 | #include "qtgroupboxpropertybrowser.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtGroupPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtIntPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtKeySequenceEditorFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtKeySequencePropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtLineEditFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtLocalePropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtPointFPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtPointPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtProperty:
--------------------------------------------------------------------------------
1 | #include "qtpropertybrowser.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtRectFPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtRectPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtScrollBarFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtSizeFPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtSizePolicyPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtSizePropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtSliderFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtSpinBoxFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtStringPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtTimeEditFactory:
--------------------------------------------------------------------------------
1 | #include "qteditorfactory.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtTimePropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtpropertymanager.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtTreePropertyBrowser:
--------------------------------------------------------------------------------
1 | #include "qttreepropertybrowser.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtVariantEditorFactory:
--------------------------------------------------------------------------------
1 | #include "qtvariantproperty.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtVariantProperty:
--------------------------------------------------------------------------------
1 | #include "qtvariantproperty.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/QtVariantPropertyManager:
--------------------------------------------------------------------------------
1 | #include "qtvariantproperty.h"
2 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-arrow.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-busy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-busy.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-closedhand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-closedhand.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-cross.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-cross.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-forbidden.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-forbidden.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-hand.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-hsplit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-hsplit.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-ibeam.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-ibeam.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-openhand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-openhand.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-sizeall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-sizeall.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-sizeb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-sizeb.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-sizef.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-sizef.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-sizeh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-sizeh.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-sizev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-sizev.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-uparrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-uparrow.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-vsplit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-vsplit.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-wait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-wait.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/images/cursor-whatsthis.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtpropertybrowser/src/images/cursor-whatsthis.png
--------------------------------------------------------------------------------
/qtpropertybrowser/src/qtpropertybrowser.pri:
--------------------------------------------------------------------------------
1 | include(../common.pri)
2 | greaterThan(QT_MAJOR_VERSION, 4): QT *= widgets
3 | INCLUDEPATH += $$PWD
4 | DEPENDPATH += $$PWD
5 |
6 | qtpropertybrowser-uselib:!qtpropertybrowser-buildlib {
7 | LIBS += -L$$QTPROPERTYBROWSER_LIBDIR -l$$QTPROPERTYBROWSER_LIBNAME
8 | } else {
9 | DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
10 | SOURCES += $$PWD/qtpropertybrowser.cpp \
11 | $$PWD/qtpropertymanager.cpp \
12 | $$PWD/qteditorfactory.cpp \
13 | $$PWD/qtvariantproperty.cpp \
14 | $$PWD/qttreepropertybrowser.cpp \
15 | $$PWD/qtbuttonpropertybrowser.cpp \
16 | $$PWD/qtgroupboxpropertybrowser.cpp \
17 | $$PWD/qtpropertybrowserutils.cpp
18 | HEADERS += $$PWD/qtpropertybrowser.h \
19 | $$PWD/qtpropertymanager.h \
20 | $$PWD/qteditorfactory.h \
21 | $$PWD/qtvariantproperty.h \
22 | $$PWD/qttreepropertybrowser.h \
23 | $$PWD/qtbuttonpropertybrowser.h \
24 | $$PWD/qtgroupboxpropertybrowser.h \
25 | $$PWD/qtpropertybrowserutils_p.h
26 | RESOURCES += $$PWD/qtpropertybrowser.qrc
27 | }
28 |
29 | win32 {
30 | contains(TEMPLATE, lib):contains(CONFIG, shared):DEFINES += QT_QTPROPERTYBROWSER_EXPORT
31 | else:qtpropertybrowser-uselib:DEFINES += QT_QTPROPERTYBROWSER_IMPORT
32 | }
33 |
--------------------------------------------------------------------------------
/qtpropertybrowser/src/qtpropertybrowser.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | images/cursor-arrow.png
4 | images/cursor-busy.png
5 | images/cursor-closedhand.png
6 | images/cursor-cross.png
7 | images/cursor-forbidden.png
8 | images/cursor-hand.png
9 | images/cursor-hsplit.png
10 | images/cursor-ibeam.png
11 | images/cursor-openhand.png
12 | images/cursor-sizeall.png
13 | images/cursor-sizeb.png
14 | images/cursor-sizef.png
15 | images/cursor-sizeh.png
16 | images/cursor-sizev.png
17 | images/cursor-uparrow.png
18 | images/cursor-vsplit.png
19 | images/cursor-wait.png
20 | images/cursor-whatsthis.png
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/qtscriptclassic/README.TXT:
--------------------------------------------------------------------------------
1 | Qt Solutions Component: QtScript Classic
2 |
3 | This component provides the original (pre-Qt 4.6) implementation
4 | of the QtScript module.
5 |
6 |
7 |
8 | Notes:
9 |
10 | QtScriptClassic is always built as a shared/dynamic library. The
11 | library file is named QtScriptClassic, so as to differentiate it
12 | from the QtScript module's, which is called QtScript.
13 |
14 | To use QtScriptClassic in your project, include the
15 | src/qtscriptclassic.pri file in your qmake project file, or make
16 | the corresponding changes to your build setup. The project file
17 | must not contain 'Qt += script', since that may cause the wrong
18 | header files to be used and linking symbol clashes with the
19 | QtScript module.
20 |
21 | As per Qt 4.6, the API of QtScriptClassic is for most practical
22 | purposes fully source compatible with the QtScript module.
23 |
24 | Qt can be built without the QtScript module by giving the
25 | -no-script option to configure.
26 |
27 | Version history:
28 |
29 | 1.0: - Initial version, corresponding to Qt 4.6.0
30 |
31 |
--------------------------------------------------------------------------------
/qtscriptclassic/configure:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ "x$1" != "x" -a "x$1" != "x-library" ]; then
4 | echo "Usage: $0 [-library]"
5 | echo
6 | echo "-library: Build the component as a dynamic library (DLL). Default is to"
7 | echo " include the component source code directly in the application."
8 | echo
9 | exit 0
10 | fi
11 |
12 | rm -f config.pri
13 | if [ "x$1" = "x-library" ]; then
14 | echo "Configuring to build this component as a dynamic library."
15 | echo "SOLUTIONS_LIBRARY = yes" > config.pri
16 | fi
17 |
18 | echo
19 | echo "This component is now configured."
20 | echo
21 | echo "To build the component library (if requested) and example(s),"
22 | echo "run qmake and your make command."
23 | echo
24 | echo "To remove or reconfigure, run make distclean."
25 | echo
26 |
--------------------------------------------------------------------------------
/qtscriptclassic/doc/html/images/qt-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtscriptclassic/doc/html/images/qt-logo.png
--------------------------------------------------------------------------------
/qtscriptclassic/doc/html/qscriptable-members.html:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 | List of All Members for QScriptable
8 |
9 |
10 |
11 |
The QtService component is useful for developing Windows services and Unix daemons.
20 |
The project provides a QtService template class that can be used to implement service applications, and a QtServiceController class to control a service.
21 |
On Windows systems the implementation uses the Service Control Manager.
22 |
On Unix systems services are implemented as daemons.
33 |
34 |
--------------------------------------------------------------------------------
/qtsoap/doc/images/qt-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtsoap/doc/images/qt-logo.png
--------------------------------------------------------------------------------
/qtsoap/examples/easter/easter.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | #ifndef EASTER_H
42 | #define EASTER_H
43 | #include
44 |
45 | class Easter : public QObject
46 | {
47 | Q_OBJECT
48 | public:
49 | Easter(short year, QObject *parent = 0);
50 |
51 | private slots:
52 | void getResponse(const QtSoapMessage &);
53 |
54 | private:
55 | QtSoapHttpTransport http;
56 | int year;
57 | };
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/qtsoap/examples/easter/easter.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | INCLUDEPATH += .
3 | CONFIG += console
4 |
5 | include(../../src/qtsoap.pri)
6 |
7 | # Input
8 | HEADERS += easter.h
9 | SOURCES += main.cpp easter.cpp
10 |
--------------------------------------------------------------------------------
/qtsoap/examples/examples.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = subdirs
2 | SUBDIRS = google population easter
3 |
4 |
--------------------------------------------------------------------------------
/qtsoap/examples/google/google.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | INCLUDEPATH += .
3 |
4 | include(../../src/qtsoap.pri)
5 |
6 | # Input
7 | HEADERS += google.h
8 | SOURCES += google.cpp main.cpp
9 |
--------------------------------------------------------------------------------
/qtsoap/examples/google/main.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | #include
42 | #include "google.h"
43 |
44 | int main(int argc, char **argv)
45 | {
46 | QApplication app(argc, argv);
47 |
48 | Google google;
49 |
50 | google.show();
51 |
52 | return app.exec();
53 | }
54 |
--------------------------------------------------------------------------------
/qtsoap/examples/population/population.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | #ifndef POPULATION_H
42 | #define POPULATION_H
43 | #include
44 |
45 | class Population : public QObject
46 | {
47 | Q_OBJECT
48 | public:
49 | Population(const QString &country, QObject *parent = 0);
50 |
51 | private slots:
52 | void getResponse();
53 |
54 | private:
55 | QtSoapHttpTransport http;
56 | };
57 |
58 | #endif
59 |
--------------------------------------------------------------------------------
/qtsoap/examples/population/population.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | INCLUDEPATH += .
3 | CONFIG += console
4 |
5 | include(../../src/qtsoap.pri)
6 |
7 | HEADERS += population.h
8 | SOURCES += main.cpp population.cpp
9 |
--------------------------------------------------------------------------------
/qtsoap/qtsoap.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE=subdirs
2 | CONFIG += ordered
3 | include(common.pri)
4 | qtsoap-uselib:SUBDIRS=buildlib
5 | SUBDIRS+=examples
6 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapArray:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapArrayIterator:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapHttpTransport:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapMessage:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapNamespaces:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapQName:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapSimpleType:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapStruct:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapStructIterator:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapType:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapTypeConstructor:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapTypeConstructorBase:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/QtSoapTypeFactory:
--------------------------------------------------------------------------------
1 | #include "qtsoap.h"
2 |
--------------------------------------------------------------------------------
/qtsoap/src/qtsoap.pri:
--------------------------------------------------------------------------------
1 | include(../common.pri)
2 | INCLUDEPATH += $$PWD
3 | DEPENDPATH += $$PWD
4 | QT += xml network
5 |
6 | qtsoap-uselib:!qtsoap-buildlib {
7 | LIBS += -L$$QTSOAP_LIBDIR -l$$QTSOAP_LIBNAME
8 | } else {
9 | SOURCES += $$PWD/qtsoap.cpp
10 | HEADERS += $$PWD/qtsoap.h
11 | }
12 |
13 | win32 {
14 | contains(TEMPLATE, lib):contains(CONFIG, shared):DEFINES += QT_QTSOAP_EXPORT
15 | else:qtsoap-uselib:DEFINES += QT_QTSOAP_IMPORT
16 | }
17 |
--------------------------------------------------------------------------------
/qtwinmigrate/README.TXT:
--------------------------------------------------------------------------------
1 | Qt Solutions Component: Qt/MFC Migration Framework
2 |
3 | The Qt/MFC Migration Framework tool assists in the migration of
4 | existing Win32 or MFC applications to the Qt toolkit.
5 |
6 | The project provides a set of classes that allow using Qt and
7 | MFC/Win32 windows in the same application. User interface elements
8 | developed with Qt can be embedded into an existing MFC or Win32
9 | based user interface, and existing custom controls developed with
10 | MFC or Win32 can be integrated into Qt widgets.
11 |
12 | Notes:
13 |
14 | When building this component as a library ("configure.bat
15 | -library"), the default configuration includes MFC support. That
16 | is, the MFC SDK must be present, otherwise compilation will fail.
17 | To avoid this dependency (e.g. for usage with Visual Studio
18 | Express editions, which do not include MFC), edit the
19 | src/qtwinmigrate.pri file as explained in its comments before
20 | building this component.
21 |
22 | Version history:
23 |
24 | 1.1: - Block the Win32 window when a modal Qt dialog opens.
25 |
26 | 1.2: - Integrate Qt and Win32 focus chains for QWinWidget.
27 |
28 | 2.0: - Version 1.2 ported to Qt 4.
29 |
30 | 2.1: - Fix compilation issue in "winwidget" example.
31 | - Don't close when the last Qt widget closes.
32 | - Improve idle-processing.
33 | - Make MFC accelerators work.
34 |
35 | 2.2: - Compilation and documentation fixes.
36 |
37 | 2.3: - Fix possible endless recursion when using QWinWidget in an
38 | MFC dialog.
39 | - Make sure that widgets paint focus indicators when tabbed into
40 | coming from Win32 windows.
41 |
42 | 2.4: - Make QtWinWidget center properly on parent widget when
43 | showCentered().
44 | - Do not activate Win32 window when a nested Qt dialog is opened.
45 |
46 | 2.5: - Make QWinHost a Q_OBJECT to allow safe casting via
47 | qobject_cast.
48 | - Assert if window handles passed in are invalid.
49 | - Clarify documentation.
50 | - New API QWinWidget::center that does not show the widget.
51 | - Fix type of idle-counter to make OnIdle handling work as in MFC.
52 |
53 | 2.6: - Provide API to block deferred deletes from being processed.
54 | - Compile without Qt3Support.
55 | - Support modal QWinWidget-children that are not QDialogs.
56 |
57 | 2.7: - Fix potential infinite loop when setting focus.
58 |
59 | 2.8: - Misc. minor fixes.
60 | - LGPL release.
61 |
62 |
--------------------------------------------------------------------------------
/qtwinmigrate/buildlib/buildlib.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE=lib
2 | CONFIG += qt dll qtwinmigrate-buildlib
3 | mac:CONFIG += absolute_library_soname
4 | win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release build_all
5 | include(../src/qtwinmigrate.pri)
6 | TARGET = $$QTWINMIGRATE_LIBNAME
7 | DESTDIR = $$QTWINMIGRATE_LIBDIR
8 | win32 {
9 | DLLDESTDIR = $$[QT_INSTALL_BINS]
10 | QMAKE_DISTCLEAN += $$[QT_INSTALL_BINS]\\$${QTWINMIGRATE_LIBNAME}.dll
11 | }
12 | target.path = $$DESTDIR
13 | INSTALLS += target
14 |
--------------------------------------------------------------------------------
/qtwinmigrate/common.pri:
--------------------------------------------------------------------------------
1 | exists(config.pri):infile(config.pri, SOLUTIONS_LIBRARY, yes): CONFIG += qtwinmigrate-uselib
2 | TEMPLATE += fakelib
3 | QTWINMIGRATE_LIBNAME = $$qtLibraryTarget(QtSolutions_MFCMigrationFramework-head)
4 | TEMPLATE -= fakelib
5 | QTWINMIGRATE_LIBDIR = $$PWD/lib
6 | unix:qtwinmigrate-uselib:!qtwinmigrate-buildlib:QMAKE_RPATHDIR += $$QTWINMIGRATE_LIBDIR
7 |
--------------------------------------------------------------------------------
/qtwinmigrate/configure:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ "x$1" != "x" -a "x$1" != "x-library" ]; then
4 | echo "Usage: $0 [-library]"
5 | echo
6 | echo "-library: Build the component as a dynamic library (DLL). Default is to"
7 | echo " include the component source code directly in the application."
8 | echo
9 | exit 0
10 | fi
11 |
12 | rm -f config.pri
13 | if [ "x$1" = "x-library" ]; then
14 | echo "Configuring to build this component as a dynamic library."
15 | echo "SOLUTIONS_LIBRARY = yes" > config.pri
16 | fi
17 |
18 | echo
19 | echo "This component is now configured."
20 | echo
21 | echo "To build the component library (if requested) and example(s),"
22 | echo "run qmake and your make command."
23 | echo
24 | echo "To remove or reconfigure, run make distclean."
25 | echo
26 |
--------------------------------------------------------------------------------
/qtwinmigrate/doc/html/images/qt-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtwinmigrate/doc/html/images/qt-logo.png
--------------------------------------------------------------------------------
/qtwinmigrate/doc/html/qwinwidget-obsolete.html:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 | Obsolete Members for QWinWidget
8 |
9 |
10 |
11 |
35 |
36 |
--------------------------------------------------------------------------------
/qtwinmigrate/doc/images/qt-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtwinmigrate/doc/images/qt-logo.png
--------------------------------------------------------------------------------
/qtwinmigrate/examples/examples.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = subdirs
2 |
3 | SUBDIRS += winhost winwidget qtdll
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step1/Resource.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | //{{NO_DEPENDENCIES}}
42 | // Microsoft Visual C++ generated include file.
43 | // Used by QTMFC.RC
44 | //
45 | #define IDD_ABOUTBOX 100
46 | #define IDR_MAINFRAME 128
47 | #define IDR_QTMFCTYPE 129
48 |
49 | // Next default values for new objects
50 | //
51 | #ifdef APSTUDIO_INVOKED
52 | #ifndef APSTUDIO_READONLY_SYMBOLS
53 | #define _APS_3D_CONTROLS 1
54 | #define _APS_NEXT_RESOURCE_VALUE 130
55 | #define _APS_NEXT_CONTROL_VALUE 1000
56 | #define _APS_NEXT_SYMED_VALUE 101
57 | #define _APS_NEXT_COMMAND_VALUE 32771
58 | #endif
59 | #endif
60 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step1/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | // stdafx.cpp : source file that includes just the standard includes
42 | // QtMfc.pch will be the pre-compiled header
43 | // stdafx.obj will contain the pre-compiled type information
44 |
45 | #include "stdafx.h"
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step1/res/QtMfc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtwinmigrate/examples/mfc/step1/res/QtMfc.ico
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step1/res/QtMfc.rc2:
--------------------------------------------------------------------------------
1 | //
2 | // QTMFC.RC2 - resources Microsoft Visual C++ does not edit directly
3 | //
4 |
5 | #ifdef APSTUDIO_INVOKED
6 | #error this file is not editable by Microsoft Visual C++
7 | #endif //APSTUDIO_INVOKED
8 |
9 |
10 | /////////////////////////////////////////////////////////////////////////////
11 | // Add manually edited resources here...
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step2/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | // stdafx.cpp : source file that includes just the standard includes
42 | // QtMfc.pch will be the pre-compiled header
43 | // stdafx.obj will contain the pre-compiled type information
44 |
45 | #include "stdafx.h"
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step2/res/QtMfc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtwinmigrate/examples/mfc/step2/res/QtMfc.ico
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step2/res/QtMfc.rc2:
--------------------------------------------------------------------------------
1 | //
2 | // QTMFC.RC2 - resources Microsoft Visual C++ does not edit directly
3 | //
4 |
5 | #ifdef APSTUDIO_INVOKED
6 | #error this file is not editable by Microsoft Visual C++
7 | #endif //APSTUDIO_INVOKED
8 |
9 |
10 | /////////////////////////////////////////////////////////////////////////////
11 | // Add manually edited resources here...
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step2/step2.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | TARGET = QtMfc2
3 |
4 | DEFINES -= UNICODE
5 | DEFINES += _AFXDLL WINVER=0x0500
6 | QMAKE_LIBS_QT_ENTRY =
7 |
8 | HEADERS = childview.h mainframe.h qtmfc.h stdafx.h
9 | SOURCES = childview.cpp mainframe.cpp qtmfc.cpp stdafx.cpp
10 | RC_FILE = qtmfc.rc
11 |
12 | include(../../../src/qtwinmigrate.pri)
13 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step3/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | // stdafx.cpp : source file that includes just the standard includes
42 | // QtMfc.pch will be the pre-compiled header
43 | // stdafx.obj will contain the pre-compiled type information
44 |
45 | #include "stdafx.h"
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step3/res/QtMfc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtwinmigrate/examples/mfc/step3/res/QtMfc.ico
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step3/res/QtMfc.rc2:
--------------------------------------------------------------------------------
1 | //
2 | // QTMFC.RC2 - resources Microsoft Visual C++ does not edit directly
3 | //
4 |
5 | #ifdef APSTUDIO_INVOKED
6 | #error this file is not editable by Microsoft Visual C++
7 | #endif //APSTUDIO_INVOKED
8 |
9 |
10 | /////////////////////////////////////////////////////////////////////////////
11 | // Add manually edited resources here...
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step3/step3.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | TARGET = QtMfc3
3 |
4 | DEFINES -= UNICODE
5 | DEFINES += _AFXDLL WINVER=0x0500
6 | QMAKE_LIBS_QT_ENTRY =
7 |
8 | HEADERS = childview.h mainframe.h qtmfc.h stdafx.h
9 | SOURCES = childview.cpp mainframe.cpp qtmfc.cpp stdafx.cpp
10 | RC_FILE = qtmfc.rc
11 |
12 | include(../../../src/qtwinmigrate.pri)
13 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step4/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | // stdafx.cpp : source file that includes just the standard includes
42 | // QtMfc.pch will be the pre-compiled header
43 | // stdafx.obj will contain the pre-compiled type information
44 |
45 | #include "stdafx.h"
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step4/optionsdialog.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | OptionsDialog
6 |
7 |
8 |
9 | 0
10 | 0
11 | 386
12 | 275
13 |
14 |
15 |
16 | Options
17 |
18 |
19 | true
20 |
21 |
22 |
23 | qPixmapFromMimeSource
24 |
25 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step4/res/QtMfc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtwinmigrate/examples/mfc/step4/res/QtMfc.ico
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step4/res/QtMfc.rc2:
--------------------------------------------------------------------------------
1 | //
2 | // QTMFC.RC2 - resources Microsoft Visual C++ does not edit directly
3 | //
4 |
5 | #ifdef APSTUDIO_INVOKED
6 | #error this file is not editable by Microsoft Visual C++
7 | #endif //APSTUDIO_INVOKED
8 |
9 |
10 | /////////////////////////////////////////////////////////////////////////////
11 | // Add manually edited resources here...
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step4/step4.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | TARGET = QtMfc4
3 |
4 | DEFINES -= UNICODE
5 | DEFINES += _AFXDLL WINVER=0x0500
6 | QMAKE_LIBS_QT_ENTRY =
7 |
8 | HEADERS = childview.h mainframe.h qtmfc.h stdafx.h
9 | SOURCES = childview.cpp mainframe.cpp qtmfc.cpp stdafx.cpp
10 | FORMS = optionsdialog.ui
11 | RC_FILE = qtmfc.rc
12 |
13 | include(../../../src/qtwinmigrate.pri)
14 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step5/childview.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | // childview.h : interface of the ChildView class
42 | //
43 | /////////////////////////////////////////////////////////////////////////////
44 |
45 | #ifndef CHILDVIEW_H
46 | #define CHILDVIEW_H
47 |
48 | #include
49 |
50 | class ChildView : public QWidget
51 | {
52 | public:
53 | ChildView(QWidget *parent = 0);
54 |
55 | protected:
56 | void paintEvent(QPaintEvent *);
57 | };
58 |
59 | #endif
60 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step5/mainframe.h:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | // mainframe.h : interface of the MainFrame class
42 | //
43 | /////////////////////////////////////////////////////////////////////////////
44 |
45 | #ifndef MAINFRAME_H
46 | #define MAINFRAME_H
47 |
48 | #include
49 |
50 | class ChildView;
51 |
52 | class MainFrame : public QMainWindow
53 | {
54 | Q_OBJECT
55 | public:
56 | MainFrame(QWidget *parent = 0);
57 |
58 | protected Q_SLOTS:
59 | void editOptions();
60 | void helpAbout();
61 |
62 | private:
63 | ChildView *view;
64 | };
65 |
66 | #endif
67 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step5/qtmfc.cpp:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | **
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 | ** Contact: http://www.qt-project.org/legal
5 | **
6 | ** This file is part of the Qt Solutions component.
7 | **
8 | ** $QT_BEGIN_LICENSE:BSD$
9 | ** You may use this file under the terms of the BSD license as follows:
10 | **
11 | ** "Redistribution and use in source and binary forms, with or without
12 | ** modification, are permitted provided that the following conditions are
13 | ** met:
14 | ** * Redistributions of source code must retain the above copyright
15 | ** notice, this list of conditions and the following disclaimer.
16 | ** * Redistributions in binary form must reproduce the above copyright
17 | ** notice, this list of conditions and the following disclaimer in
18 | ** the documentation and/or other materials provided with the
19 | ** distribution.
20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 | ** of its contributors may be used to endorse or promote products derived
22 | ** from this software without specific prior written permission.
23 | **
24 | **
25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 | **
37 | ** $QT_END_LICENSE$
38 | **
39 | ****************************************************************************/
40 |
41 | #include
42 | #include "mainframe.h"
43 |
44 | int main(int argc, char **argv)
45 | {
46 | QApplication app(argc, argv);
47 |
48 | MainFrame frame;
49 | frame.show();
50 |
51 | return app.exec();
52 | }
53 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step5/qtmfc.rc:
--------------------------------------------------------------------------------
1 | IDR_MAINFRAME ICON DISCARDABLE "res\\QtMfc.ico"
2 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step5/res/QtMfc.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtwinmigrate/examples/mfc/step5/res/QtMfc.ico
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step5/res/qtmfc.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bac1335/qt-solution/1c173b5e87bb78c6f2d3fa30747a046711300095/qtwinmigrate/examples/mfc/step5/res/qtmfc.bmp
--------------------------------------------------------------------------------
/qtwinmigrate/examples/mfc/step5/step5.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | TARGET = QtMfc5
3 |
4 | SOURCES += childview.cpp mainframe.cpp qtmfc.cpp
5 | HEADERS += childview.h mainframe.h
6 | FORMS += ../step4/optionsdialog.ui
7 | RC_FILE = qtmfc.rc
8 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/qtdll/qtdll.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = lib
2 | CONFIG += dll
3 | SOURCES = main.cpp
4 |
5 | TARGET = qtdialog
6 | DLLDESTDIR = $$[QT_INSTALL_PREFIX]/bin
7 |
8 | include(../../src/qtwinmigrate.pri)
9 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/winhost/winhost.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | SOURCES += main.cpp
3 |
4 | include(../../src/qtwinmigrate.pri)
5 |
--------------------------------------------------------------------------------
/qtwinmigrate/examples/winwidget/winwidget.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 | SOURCES += main.cpp
3 |
4 | include("../../src/qtwinmigrate.pri")
5 |
--------------------------------------------------------------------------------
/qtwinmigrate/qtwinmigrate.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE=subdirs
2 | CONFIG += ordered
3 | include(common.pri)
4 | qtwinmigrate-uselib:SUBDIRS=buildlib
5 | SUBDIRS+=examples
6 |
7 | !win32:error("This component will only work on Windows. No makefile generated.")
8 |
--------------------------------------------------------------------------------
/qtwinmigrate/src/QMfcApp:
--------------------------------------------------------------------------------
1 | #include "qmfcapp.h"
2 |
--------------------------------------------------------------------------------
/qtwinmigrate/src/QWinHost:
--------------------------------------------------------------------------------
1 | #include "qwinhost.h"
2 |
--------------------------------------------------------------------------------
/qtwinmigrate/src/QWinWidget:
--------------------------------------------------------------------------------
1 | #include "qwinwidget.h"
2 |
--------------------------------------------------------------------------------
/qtwinmigrate/src/qtwinmigrate.pri:
--------------------------------------------------------------------------------
1 | include(../common.pri)
2 | INCLUDEPATH += $$PWD
3 | DEPENDPATH += $$PWD
4 | LIBS += -luser32
5 |
6 | # When built as a library, the default is to include the component's
7 | # MFC support. To disable this (e.g. in order to use this component
8 | # with Visual Studio Express, which does not include MFC), comment out
9 | # the following line.
10 | qtwinmigrate-uselib:DEFINES *= _AFXDLL
11 |
12 | qtwinmigrate-uselib:!qtwinmigrate-buildlib {
13 | LIBS += -L$$QTWINMIGRATE_LIBDIR -l$$QTWINMIGRATE_LIBNAME
14 | } else {
15 | SOURCES += $$PWD/qwinwidget.cpp $$PWD/qwinhost.cpp $$PWD/qmfcapp.cpp
16 | HEADERS += $$PWD/qwinwidget.h $$PWD/qwinhost.h $$PWD/qmfcapp.h
17 | }
18 |
19 | win32 {
20 | qtwinmigrate-buildlib:DEFINES += QT_QTWINMIGRATE_EXPORT
21 | else:qtwinmigrate-uselib:DEFINES += QT_QTWINMIGRATE_IMPORT
22 | }
23 | contains(QT_MAJOR_VERSION, 5): QT += widgets gui-private
--------------------------------------------------------------------------------