Re: [Development] Deprecated functions / procedure of removal in Qt6?

2018-10-21 Thread Elvis Stansvik
Den mån 22 okt. 2018 kl 00:14 skrev Giuseppe D'Angelo via Development : > > Hi, > > Il 21/10/18 19:59, Christian Ehrlicher ha scritto: > > there are a lot of deprecated functions in qtbase which are only marked > > as deprecated/obsolete in the documentation but don't have a > > Q_DECL_DEPRECATED.

Re: [Development] Deprecated functions / procedure of removal in Qt6?

2018-10-21 Thread Christian Ehrlicher
Am 22.10.2018 um 00:14 schrieb Giuseppe D'Angelo via Development: Hi, Thus, adding deprecation warnings is definitely the right thing to do: users get the deprecation warnings (*), and we have an easy way to find and drop all those functions. Ok, I'll go on with adding Q_DECL_DEPRECATED + QT

[Development] HEADS UP : Qt 5.12 string freeze

2018-10-21 Thread Jani Heikkinen
Hi, As informed earlier string freeze for Qt 5.12 is now in effect. So please, no changes to translatable strings from this point, unless approved by the documentation team. br, Jani From: Development on behalf of Jani Heikkinen Sent: Thursday, Octobe

Re: [Development] Deprecated functions / procedure of removal in Qt6?

2018-10-21 Thread Giuseppe D'Angelo via Development
Hi, Il 21/10/18 19:59, Christian Ehrlicher ha scritto: there are a lot of deprecated functions in qtbase which are only marked as deprecated/obsolete in the documentation but don't have a Q_DECL_DEPRECATED. Most of them were deprecated in the pre Qt5-era. What's the 'correct' way to make sure th

Re: [Development] Un-inlining members allowed?

2018-10-21 Thread Thiago Macieira
On Sunday, 21 October 2018 11:07:38 PDT Christian Ehrlicher wrote: > Hi, > > one more question - is it ok to un-inline a function? For example I want > to move QListWidgetItem::isSelected() to the cpp file so I can properly > mark QListWidget::isItemSelected() as deprecated but I'm unsure if this

[Development] Un-inlining members allowed?

2018-10-21 Thread Christian Ehrlicher
Hi, one more question - is it ok to un-inline a function? For example I want to move QListWidgetItem::isSelected() to the cpp file so I can properly mark QListWidget::isItemSelected() as deprecated but I'm unsure if this is allowed. Thx, Christian

[Development] Deprecated functions / procedure of removal in Qt6?

2018-10-21 Thread Christian Ehrlicher
Hi, there are a lot of deprecated functions in qtbase which are only marked as deprecated/obsolete in the documentation but don't have a Q_DECL_DEPRECATED. Most of them were deprecated in the pre Qt5-era. What's the 'correct' way to make sure they can be removed with Qt6? Must they marked as

Re: [Development] qMoveToConst helper for rvalue references to movable Qt containers?

2018-10-21 Thread Elvis Stansvik
Den sön 21 okt. 2018 kl 17:50 skrev Giuseppe D'Angelo : > > Hello, > > Il 21/10/18 16:15, Elvis Stansvik ha scritto: > > I couldn't find a way to contact them. > > The best shot would be the std-discussion mailing list, I think. > > > In order to try out the unsafe usage you suggested in your other

Re: [Development] qMoveToConst helper for rvalue references to movable Qt containers?

2018-10-21 Thread Elvis Stansvik
Den sön 21 okt. 2018 kl 17:50 skrev Giuseppe D'Angelo : > > Hello, > > Il 21/10/18 16:15, Elvis Stansvik ha scritto: > > I couldn't find a way to contact them. > > The best shot would be the std-discussion mailing list, I think. > > > In order to try out the unsafe usage you suggested in your other

Re: [Development] qMoveToConst helper for rvalue references to movable Qt containers?

2018-10-21 Thread Giuseppe D'Angelo via Development
Il 21/10/18 17:50, Giuseppe D'Angelo via Development ha scritto: This won't compile when called on a non-const lvalue (the return type will be a lvalue reference to const, To NON-const, that is. -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer KDAB (France) S.A.S.,

Re: [Development] qMoveToConst helper for rvalue references to movable Qt containers?

2018-10-21 Thread Giuseppe D'Angelo via Development
Hello, Il 21/10/18 16:15, Elvis Stansvik ha scritto: I couldn't find a way to contact them. The best shot would be the std-discussion mailing list, I think. In order to try out the unsafe usage you suggested in your other mail, and also another unsafe usage pointed out in an SO question (htt

Re: [Development] qMoveToConst helper for rvalue references to movable Qt containers?

2018-10-21 Thread Elvis Stansvik
Den sön 21 okt. 2018 kl 16:15 skrev Elvis Stansvik : > > Den lör 20 okt. 2018 kl 18:53 skrev Giuseppe D'Angelo via Development > : > > > > Il 20/10/18 14:43, Elvis Stansvik ha scritto: > > > In our application we added a helper like > > > > > > template > > > const T moveToConst(T &&t) > > > { > >

Re: [Development] qMoveToConst helper for rvalue references to movable Qt containers?

2018-10-21 Thread Elvis Stansvik
Den lör 20 okt. 2018 kl 18:53 skrev Giuseppe D'Angelo via Development : > > Il 20/10/18 14:43, Elvis Stansvik ha scritto: > > In our application we added a helper like > > > > template > > const T moveToConst(T &&t) > > { > > return std::move(t); > > } > > > > that we use for these cases. It