fix os/2 build failure

This commit is contained in:
Martin Rotter 2021-08-23 07:19:46 +02:00
parent 620aa20868
commit f23b7a6ef0
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@
<url type="donation">https://martinrotter.github.io/donate/</url> <url type="donation">https://martinrotter.github.io/donate/</url>
<content_rating type="oars-1.1" /> <content_rating type="oars-1.1" />
<releases> <releases>
<release version="4.0.0" date="2021-08-20"/> <release version="4.0.0" date="2021-08-23"/>
</releases> </releases>
<content_rating type="oars-1.0"> <content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute> <content_attribute id="violence-cartoon">none</content_attribute>

View File

@ -58,7 +58,7 @@ QByteArray MessagesView::saveHeaderState() const {
outt.setVersion(QDataStream::Version::Qt_4_7); outt.setVersion(QDataStream::Version::Qt_4_7);
outt << header()->count(); outt << header()->count();
outt << header()->sortIndicatorOrder(); outt << int(header()->sortIndicatorOrder());
outt << header()->sortIndicatorSection(); outt << header()->sortIndicatorSection();
// Save column data. // Save column data.
@ -84,7 +84,7 @@ void MessagesView::restoreHeaderState(const QByteArray& dta) {
return; return;
} }
Qt::SortOrder saved_sort_order; inn >> saved_sort_order; int saved_sort_order; inn >> saved_sort_order;
int saved_sort_column; inn >> saved_sort_column; int saved_sort_column; inn >> saved_sort_column;
for (int i = 0; i < saved_header_count && i < header()->count(); i++) { for (int i = 0; i < saved_header_count && i < header()->count(); i++) {
@ -104,7 +104,7 @@ void MessagesView::restoreHeaderState(const QByteArray& dta) {
} }
if (saved_sort_column < header()->count()) { if (saved_sort_column < header()->count()) {
header()->setSortIndicator(saved_sort_column, saved_sort_order); header()->setSortIndicator(saved_sort_column, Qt::SortOrder(saved_sort_order));
} }
} }