test code

This commit is contained in:
Rasmus Karlsson
2018-01-19 22:45:33 +01:00
parent 66e99fd36f
commit 03ff2205fa
17 changed files with 397 additions and 221 deletions
+6 -2
View File
@@ -2,9 +2,11 @@
#include <QPixmap>
#include <QString>
#include <boost/noncopyable.hpp>
#include <atomic>
#include <mutex>
namespace chatterino {
namespace messages {
@@ -41,6 +43,7 @@ private:
};
QPixmap *currentPixmap;
QPixmap *loadedPixmap;
std::vector<FrameData> allFrames;
int currentFrame = 0;
int currentFrameOffset = 0;
@@ -53,7 +56,8 @@ private:
bool ishat;
qreal scale;
bool isLoading;
bool isLoading = false;
std::atomic<bool> isLoaded{false};
void loadImage();
void gifUpdateTimout();