qt5base-lts/examples/corelib/tools
Albert Astals Cid f121f319b9 examples: Fix -Wdeprecated-copy warnings
examples/corelib/tools/customtypesending/window.cpp: In member function ‘void Window::sendMessage()’:
examples/corelib/tools/customtypesending/window.cpp:79:71: warning: implicitly-declared ‘Message& Message::operator=(const Message&)’ is deprecated [-Wdeprecated-copy]
   79 |     thisMessage = Message(editor->toPlainText(), thisMessage.headers());
      |                                                                       ^
In file included from examples/corelib/tools/customtypesending/window.h:55,
                 from examples/corelib/tools/customtypesending/window.cpp:52:
examples/corelib/tools/customtypesending/message.h:62:5: note: because ‘Message’ has user-provided ‘Message::Message(const Message&)’
   62 |     Message(const Message &other);
      |     ^~~~~~~
examples/corelib/tools/customtypesending/window.cpp: In member function ‘void Window::setMessage(const Message&)’:
examples/corelib/tools/customtypesending/window.cpp:87:19: warning: implicitly-declared ‘Message& Message::operator=(const Message&)’ is deprecated [-Wdeprecated-copy]
   87 |     thisMessage = message;
      |                   ^~~~~~~
In file included from examples/corelib/tools/customtypesending/window.h:55,
                 from examples/corelib/tools/customtypesending/window.cpp:52:
examples/corelib/tools/customtypesending/message.h:62:5: note: because ‘Message’ has user-provided ‘Message::Message(const Message&)’
   62 |     Message(const Message &other);
      |     ^~~~~~~

Change-Id: I563d53f7dd1e0e0dc5fd4db06299b2d0a70c62ff
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2019-10-30 07:46:35 +02:00
..
contiguouscache Cleanup QtCore examples 2019-02-06 22:11:27 +00:00
customtype examples: Fix -Wdeprecated-copy warnings 2019-10-30 07:46:35 +02:00
customtypesending examples: Fix -Wdeprecated-copy warnings 2019-10-30 07:46:35 +02:00
doc/src examples: Fix -Wdeprecated-copy warnings 2019-10-30 07:46:35 +02:00
README
tools.pro Use dependencies instead of CONFIG+=ordered 2017-12-02 11:09:15 +00:00

Qt is equipped with a range of capable tool classes, from containers and
iterators to classes for string handling and manipulation.

Other classes provide application infrastructure support, handling plugin
loading and managing configuration files.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.