summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-05 10:58:49 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-05 10:58:49 +0200
commit0a28fda7e13dd1bcf49fd43d0d790c2dd5d10e65 (patch)
treea31470ad907f3889b53434f807bff7f2e5847226
parentce251cf8c12b64450873d1f01d955062dbe3ffbf (diff)
downloadkube-0a28fda7e13dd1bcf49fd43d0d790c2dd5d10e65.tar.gz
kube-0a28fda7e13dd1bcf49fd43d0d790c2dd5d10e65.zip
Match auto css properties
-rw-r--r--framework/src/domain/mime/partmodel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/src/domain/mime/partmodel.cpp b/framework/src/domain/mime/partmodel.cpp
index 4c53906d..4583e2a6 100644
--- a/framework/src/domain/mime/partmodel.cpp
+++ b/framework/src/domain/mime/partmodel.cpp
@@ -23,7 +23,6 @@
23#include "htmlutils.h" 23#include "htmlutils.h"
24 24
25#include <QDebug> 25#include <QDebug>
26#include <QMimeDatabase>
27#include <QTextDocument> 26#include <QTextDocument>
28 27
29#include <gpgme++/key.h> 28#include <gpgme++/key.h>
@@ -225,6 +224,10 @@ QVariant PartModel::data(const QModelIndex &index, int role) const
225 if (text.contains("@media")) { 224 if (text.contains("@media")) {
226 return true; 225 return true;
227 } 226 }
227 //auto css properties are not supported e.g margin-left: auto;
228 if (text.contains(": auto;")) {
229 return true;
230 }
228 return false; 231 return false;
229 } else { 232 } else {
230 return false; 233 return false;