Skip to content

Commit

Permalink
Update for Qt 6
Browse files Browse the repository at this point in the history
  • Loading branch information
aronbierbaum committed Oct 3, 2022
1 parent e2bbc87 commit 7f99878
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter/X11FilterContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void X11FilterContext::drawPlainText(const QPointF &pos, const QString &text)
this->plain = true;

QFontMetrics fm(font);
text_q = QImage(fm.width(text), fm.height(), QImage::Format_ARGB32);
text_q = QImage(fm.horizontalAdvance(text), fm.height(), QImage::Format_ARGB32);
text_q.fill(0);
painter->begin(&text_q);
painter->translate(0, 0);
Expand Down
2 changes: 2 additions & 0 deletions src/output/OutputSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#ifndef QTAV_OUTPUTSET_H
#define QTAV_OUTPUTSET_H

#include <climits>

#include <QtCore/QObject>
#include <QtCore/QMutex>
#include <QtCore/QWaitCondition>
Expand Down
2 changes: 2 additions & 0 deletions src/utils/BlockingQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#ifndef QTAV_BLOCKINGQUEUE_H
#define QTAV_BLOCKINGQUEUE_H

#include <climits>

#include <QtCore/QReadWriteLock>
#include <QtCore/QScopedPointer>
#include <QtCore/QWaitCondition>
Expand Down

0 comments on commit 7f99878

Please sign in to comment.