Skip to content

Commit

Permalink
Added support for old Qt versions
Browse files Browse the repository at this point in the history
  • Loading branch information
CineEncoder committed Sep 12, 2021
1 parent 0847662 commit 4f3ef22
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 52 deletions.
7 changes: 7 additions & 0 deletions app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#ifndef UNICODE
#define UNICODE
#endif
#include <unistd.h>
#include <signal.h>
#include <MediaInfo/MediaInfo.h>
using namespace MediaInfoLib;
Expand All @@ -29,6 +30,7 @@
#define _itot itoa
#endif
#endif
#include <windows.h>
#include "MediaInfoDLL/MediaInfoDLL.h"
using namespace MediaInfoDLL;
#endif
Expand Down Expand Up @@ -3189,7 +3191,12 @@ void Widget::openFiles(const QStringList &openFileNames) /*** Open files ***/
QApplication::processEvents();
showOpeningFiles(100);
QApplication::processEvents();
#ifdef Q_OS_LINUX
usleep(50000);
#endif
#ifdef Q_OS_WIN64
Sleep(50);
#endif
i++;
}
showOpeningFiles(false);
Expand Down
104 changes: 52 additions & 52 deletions app/preset.ui
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
<x>0</x>
<y>0</y>
<width>426</width>
<height>597</height>
<height>595</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_27">
Expand Down Expand Up @@ -1819,7 +1819,7 @@
<x>0</x>
<y>0</y>
<width>426</width>
<height>597</height>
<height>595</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
Expand Down Expand Up @@ -2082,12 +2082,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>Constant Bitrate</string>
Expand Down Expand Up @@ -2443,12 +2443,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>MKV</string>
Expand Down Expand Up @@ -2504,12 +2504,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>H.265/HEVC 4:2:0 10 bit</string>
Expand Down Expand Up @@ -2690,12 +2690,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>High</string>
Expand Down Expand Up @@ -2820,12 +2820,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>1 Pass</string>
Expand Down Expand Up @@ -2948,12 +2948,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>None</string>
Expand Down Expand Up @@ -3129,12 +3129,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>yuv444p10le</string>
Expand Down Expand Up @@ -3210,12 +3210,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>Auto</string>
Expand Down Expand Up @@ -3387,7 +3387,7 @@
<x>0</x>
<y>0</y>
<width>426</width>
<height>597</height>
<height>595</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_32">
Expand Down Expand Up @@ -3491,12 +3491,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>Source</string>
Expand Down Expand Up @@ -3658,12 +3658,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>AAC</string>
Expand Down Expand Up @@ -3740,12 +3740,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>384k</string>
Expand Down Expand Up @@ -3917,7 +3917,7 @@
<x>0</x>
<y>0</y>
<width>426</width>
<height>597</height>
<height>595</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_33">
Expand Down Expand Up @@ -4043,12 +4043,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>Source</string>
Expand Down Expand Up @@ -4618,12 +4618,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>Source</string>
Expand Down Expand Up @@ -4760,12 +4760,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>Source</string>
Expand Down Expand Up @@ -4902,12 +4902,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>Source</string>
Expand Down Expand Up @@ -5004,12 +5004,12 @@
<height>16</height>
</size>
</property>
<property name="placeholderText">
<string notr="true"/>
</property>
<property name="frame">
<bool>true</bool>
</property>
<property name="placeholderText" stdset="0">
<string notr="true"/>
</property>
<item>
<property name="text">
<string>Source</string>
Expand Down

0 comments on commit 4f3ef22

Please sign in to comment.