Change more things.

Things changed:
 - make getImageFileFormat case insensitive
 - use QTextEdit::dragEnterEvent instead of QAbstractScrollArea::dragEnterEvent,
 - Make dragEnterEvent() and dropEvent() overrides.
This commit is contained in:
Mm2PL
2019-10-11 17:00:26 +02:00
parent bf434f3ac5
commit 77af5d54cf
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ QString getImageFileFormat(QString path)
static QStringList listOfImageFormats = {".png", ".jpg", ".jpeg"};
for (const QString &format : listOfImageFormats)
{
if (path.endsWith(format))
if (path.endsWith(format, Qt::CaseInsensitive))
{
return format.mid(1);
}