From: Peter Hedlund Date: Tue, 27 Feb 2007 22:56:47 +0000 (+0000) Subject: Cleanup X-Git-Tag: v3.90.1~70 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=32c3ffc09c6b49959038ef2f37ca8d789a4acbd1;p=libqmvoc.git Cleanup svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=637834 --- diff --git a/kdeeducore/keduvocdocument.cpp b/kdeeducore/keduvocdocument.cpp index 4250c8b..1cf8e87 100644 --- a/kdeeducore/keduvocdocument.cpp +++ b/kdeeducore/keduvocdocument.cpp @@ -78,7 +78,6 @@ KEduVocDocument::KEduVocDocument(QObject *parent) KEduVocDocument::~KEduVocDocument() { - delete m_font; } @@ -111,7 +110,7 @@ void KEduVocDocument::Init () m_remark = ""; m_version = ""; m_generator = ""; - m_font = NULL; +// m_font = NULL; m_activeLeitnerSystem = false; m_leitnerSystem = NULL; @@ -751,12 +750,6 @@ QString KEduVocDocument::docRemark() const } -QFont* KEduVocDocument::font() const -{ - return m_font; -} - - void KEduVocDocument::setTitle(const QString & title) { m_title = title.simplified(); @@ -781,13 +774,6 @@ void KEduVocDocument::setDocRemark(const QString & s) } -void KEduVocDocument::setFont(QFont* font) -{ - delete m_font; - m_font = font; -} - - int KEduVocDocument::search(const QString &substr, int id, int first, int last, bool word_start) { if (last >= entryCount() || last < 0) diff --git a/kdeeducore/keduvocdocument.h b/kdeeducore/keduvocdocument.h index 1ffef08..be056c3 100644 --- a/kdeeducore/keduvocdocument.h +++ b/kdeeducore/keduvocdocument.h @@ -578,11 +578,6 @@ public: */ QString docRemark() const; - /** - * @returns the font - */ - QFont* font() const; - /** * Retrieves the identifiers for the current query * @@ -621,11 +616,6 @@ public: */ void setDocRemark(const QString & rem); - /** - * Sets the font - */ - void setFont(QFont *font); - /** * Sets the generator of the file */ @@ -763,7 +753,6 @@ private: int m_currentLesson; QList m_extraSizeHints; QList m_sizeHints; - QFont* m_font; QString m_generator; QString m_queryorg; diff --git a/kdeeducore/keduvocwqlreader.cpp b/kdeeducore/keduvocwqlreader.cpp index d143a8b..69f18e2 100644 --- a/kdeeducore/keduvocwqlreader.cpp +++ b/kdeeducore/keduvocwqlreader.cpp @@ -84,7 +84,7 @@ bool KEduVocWqlReader::readDoc(KEduVocDocument *doc) s = s.right(s.length() - (p + 1)); bool it = (s == "1"); - m_doc->setFont(new QFont(fam, ps, b, it)); + //m_doc->setFont(new QFont(fam, ps, b, it)); /* TODO while (inputStream.readLine() != "[Character Info]");