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
-4
View File
@@ -16,7 +16,3 @@ void upload(TypedBytes imageData, ChannelPtr channel,
void upload(const QMimeData *source, ChannelPtr channel,
ResizingTextEdit &outputTextEdit);
} // namespace chatterino
namespace {
QString getImageFileFormat(QString path);
}