Compile Problems After Updating to Qt6
Kornel Benko
kornel at lyx.org
Thu Mar 11 17:56:44 UTC 2021
Am Thu, 11 Mar 2021 12:27:50 -0500
schrieb Richard Kimberly Heck <rikiheck at lyx.org>:
> > Trying to adapt cmake to qt6, I get compile errors
> >
> > usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp: In member function
> > ‘std::__debug::vector<std::pair<std::__cxx11::basic_string<char>,
> > std::__cxx11::basic_string<wchar_t> > > lyx::InsetInfoParams::getArguments(const
> > lyx::Buffer*, const string&)
> > const’: /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:300:22: error: ‘fromTime_t’ is
> > not a member of ‘QDateTime’ date =
> > QDateTime::fromTime_t(buf->fileName().lastModified()).date();
> > ^~~~~~~~~~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:326:22: error: ‘fromTime_t’
> > is not a member of ‘QDateTime’ time =
> > QDateTime::fromTime_t(buf->fileName().lastModified()).time();
> > ^~~~~~~~~~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp: In member function ‘virtual
> > void lyx::InsetInfo::updateBuffer(const lyx::ParIterator&, lyx::UpdateType,
> > bool)’: /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:1152:22: error: ‘fromTime_t’ is
> > not a member of ‘QDateTime’ date =
> > QDateTime::fromTime_t(buffer().fileName().lastModified()).date();
> > ^~~~~~~~~~ /usr2/src/lyx/lyx-git/src/insets/InsetInfo.cpp:1169:22: error:
> > ‘fromTime_t’ is not a member of ‘QDateTime’ time =
> > QDateTime::fromTime_t(buffer().fileName().lastModified()).time();
>
> This will take some work. There's some info here:
>
> https://doc.qt.io/qt-6/portingguide.html
>
> Maybe we should make this a post 2.4 priority, though of course work on
> it could start now in a branch.
>
> Riki
The guide is lengthy and I did not find QDateTime mentioned there.
Yes, we should postpone.
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210311/b6912939/attachment-0001.asc>
More information about the lyx-devel
mailing list