Browse Source

Small changes

Kandrashin Denis 13 years ago
parent
commit
e9b50fe01f
2 changed files with 6 additions and 0 deletions
  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: