diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-05 11:54:26 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-16 23:40:13 +0900 |
commit | c8c5e11f05f023849896d09cf06917e9a2c016ca (patch) | |
tree | a62f00b0249b967528e115e2123b56d40633c17a /kivio/kiviopart/kivio_page.cpp | |
parent | c9973bfbf1091ef91f30b5ab456015676123aa47 (diff) | |
download | koffice-c8c5e11f.tar.gz koffice-c8c5e11f.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ef06f14f2475bd08d3ea2ceec54a7b2238f3554e)
Diffstat (limited to 'kivio/kiviopart/kivio_page.cpp')
-rw-r--r-- | kivio/kiviopart/kivio_page.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kivio/kiviopart/kivio_page.cpp b/kivio/kiviopart/kivio_page.cpp index 6bf6a3aab..cd09d54cc 100644 --- a/kivio/kiviopart/kivio_page.cpp +++ b/kivio/kiviopart/kivio_page.cpp @@ -1639,7 +1639,7 @@ void KivioPage::saveGuideLines(TQDomElement& element) TQDomElement e = element.ownerDocument().createElement("Guideline"); element.appendChild(e); XmlWriteDouble(e, "pos", *it); - XmlWriteInt(e, "orient", (int)Qt::Horizontal); + XmlWriteInt(e, "orient", (int)TQt::Horizontal); } itEnd = m_vGuideLines.end(); @@ -1648,7 +1648,7 @@ void KivioPage::saveGuideLines(TQDomElement& element) TQDomElement e = element.ownerDocument().createElement("Guideline"); element.appendChild(e); XmlWriteDouble(e, "pos", *it); - XmlWriteInt(e, "orient", (int)Qt::Vertical); + XmlWriteInt(e, "orient", (int)TQt::Vertical); } } @@ -1662,14 +1662,14 @@ void KivioPage::loadGuideLines(const TQDomElement& element) for( ; !e.isNull(); e = e.nextSibling().toElement() ) { double pos = XmlReadDouble(e, "pos", 0.0); - Qt::Orientation orient = (Qt::Orientation)XmlReadInt(e, "orient", 0); + TQt::Orientation orient = (TQt::Orientation)XmlReadInt(e, "orient", 0); addGuideLine(orient, pos); } } -void KivioPage::addGuideLine(Qt::Orientation orientation, double position) +void KivioPage::addGuideLine(TQt::Orientation orientation, double position) { - if(orientation == Qt::Horizontal) { + if(orientation == TQt::Horizontal) { m_hGuideLines.append(position); } else { m_vGuideLines.append(position); |