Qt: Support runtime renderer switching
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#pragma once
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <initializer_list>
|
||||
#include <optional>
|
||||
|
||||
class ByteStream;
|
||||
|
||||
class QKeyEvent;
|
||||
class QTableView;
|
||||
class QWidget;
|
||||
@@ -31,4 +34,10 @@ std::optional<int> ParseKeyString(const QString& key_str);
|
||||
/// Returns a key id for a key event, including any modifiers.
|
||||
int KeyEventToInt(const QKeyEvent* ke);
|
||||
|
||||
/// Reads a whole stream to a Qt byte array.
|
||||
QByteArray ReadStreamToQByteArray(ByteStream* stream, bool rewind = false);
|
||||
|
||||
/// Creates a stream from a Qt byte array.
|
||||
bool WriteQByteArrayToStream(QByteArray& arr, ByteStream* stream);
|
||||
|
||||
} // namespace QtUtils
|
||||
Reference in New Issue
Block a user