[vlc-devel] [PATCH 2/2] qt: fix compilation on Qt4
KO Myung-Hun
komh78 at gmail.com
Wed Dec 21 00:46:40 CET 2016
Gilles Sabourin wrote:
> Hello KO,
>
> Aren't you supposed to compile vlc 3.0 in qt5 environment?
No, at least 4.8.
> I've
> installed both qt4/qt5 development environment with my distro and have
> no problem.
>
Strange. However, Assistant says QMap::last() was introduced in Qt 5.2
as I said in a commit message.
> Best,
>
> Gilles Sabourin
>
> Le 20/12/2016 à 13:37, KO Myung-Hun a écrit :
>> QMap::last() was introduced in Qt 5.2
>> ---
>> modules/gui/qt/components/epg/EPGView.cpp | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/modules/gui/qt/components/epg/EPGView.cpp b/modules/gui/qt/components/epg/EPGView.cpp
>> index ea5b3ac..5af463a 100644
>> --- a/modules/gui/qt/components/epg/EPGView.cpp
>> +++ b/modules/gui/qt/components/epg/EPGView.cpp
>> @@ -173,7 +173,11 @@ void EPGView::walkItems( bool b_cleanup )
>>
>> if( !program->eventsbytime.isEmpty() )
>> {
>> +#if QT_VERSION >= 0x050200
>> const EPGItem *last = program->eventsbytime.last();
>> +#else
>> + const EPGItem *last = (program->eventsbytime.end() - 1).value();
>> +#endif
>> if( !maxTime.isValid() ||
>> last->start().addSecs( last->duration() ) > maxTime )
>> {
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
More information about the vlc-devel
mailing list