D25664: [WIP]: Port away from deprecated QSignalMapper

David Faure noreply at phabricator.kde.org
Mon Dec 2 15:19:41 GMT 2019


dfaure added a comment.


  Then write your own, it's easy:
  
    // this adds const to non-const objects (like std::as_const)
    template <typename T> Q_DECL_CONSTEXPR typename std::add_const<T>::type &koAsConst(T &t) noexcept { return t; }
    // prevent rvalue arguments:
    template <typename T> void koAsConst(const T &&) = delete;

REPOSITORY
  R8 Calligra

REVISION DETAIL
  https://phabricator.kde.org/D25664

To: ognarb, #calligra:_3.0, #kf6, dfaure
Cc: danders, dfaure, Calligra-Devel-list, davidllewellynjones, dcaliste, ognarb, cochise, vandenoever
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20191202/3b5ed771/attachment.htm>


More information about the calligra-devel mailing list