浏览代码

Small changes

Kandrashin Denis 13 年之前
父节点
当前提交
e9b50fe01f
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 5 0
      source/fb2html.cpp
  2. 1 0
      source/fb2html.h

+ 5 - 0
source/fb2html.cpp

@@ -121,6 +121,11 @@ void FbTextElement::getChildren(FbElementList &list)
     }
 }
 
+bool FbTextElement::hasScheme() const
+{
+    return subtypes();
+}
+
 const FbTextElement::TypeList * FbTextElement::subtypes() const
 {
     static Scheme scheme;

+ 1 - 0
source/fb2html.h

@@ -59,6 +59,7 @@ public:
     FbTextElement &operator=(const QWebElement &x) { QWebElement::operator=(x); return *this; }
     FbTextElement insertInside(const QString &style, const QString &html);
     void getChildren(FbElementList &list);
+    bool hasScheme() const;
     QString location();
 
 public: