Fix the stupid things.

This includes:
 - NuulsUploader.cpp
   - changing upload delay to a #define
   - moving png conversion code to `boost::optional<QByteArray> convertToPng(QImage image)`
   - in uploadImageToNuuls: moving content type definition to a variable, move things around a bit to eliminate an if
   - in upload: adding a comment about `source->hasUrls()` and `source->urls()`, change `uploadQueue.size()` to `!uploadQueue.empty()`
 - ResizingTextEdit.cpp
   - changing #include order
This commit is contained in:
Mm2PL
2019-10-11 15:41:33 +02:00
parent 970503b755
commit bf434f3ac5
3 changed files with 78 additions and 46 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
#include <QMimeData>
#include "widgets/helper/ResizingTextEdit.hpp"
#include "common/Common.hpp"
#include "common/CompletionModel.hpp"
#include "singletons/Settings.hpp"
#include "widgets/helper/ResizingTextEdit.hpp"
#include <QMimeData>
namespace chatterino {