diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:31 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:31 -0600 |
commit | c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch) | |
tree | 1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kivio/kiviopart/kivio_page.cpp | |
parent | 94844816550ad672ccfcdc25659c625546239998 (diff) | |
download | koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kivio/kiviopart/kivio_page.cpp')
-rw-r--r-- | kivio/kiviopart/kivio_page.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kivio/kiviopart/kivio_page.cpp b/kivio/kiviopart/kivio_page.cpp index 41fe984b..0b60344b 100644 --- a/kivio/kiviopart/kivio_page.cpp +++ b/kivio/kiviopart/kivio_page.cpp @@ -30,10 +30,10 @@ #include <tqptrstack.h> #include <tqbuffer.h> #include <tqmessagebox.h> -#include <clipboard.h> +#include <tqclipboard.h> #include <tqpicture.h> #include <tqdom.h> -#include <textstream.h> +#include <tqtextstream.h> #include <tqdragobject.h> #include <tqmime.h> #include <tqsortedlist.h> @@ -153,7 +153,7 @@ TQDomElement KivioPage::save( TQDomDocument& doc ) page.setAttribute( "name", m_strName ); page.setAttribute( "hide", (int)m_bPageHide ); - // Create a child element for the page layout + // Create a child element for the page tqlayout TQDomElement layoutE = saveLayout( doc ); page.appendChild( layoutE ); @@ -194,7 +194,7 @@ void KivioPage::saveOasis(KoStore* /*store*/, KoXmlWriter* docWriter, KoGenStyle TQString layoutName = styles->lookup(pageLayout, "PL"); KoGenStyle masterPage(KoGenStyle::STYLE_MASTER); - masterPage.addAttribute("style:page-layout-name", layoutName); + masterPage.addAttribute("style:page-tqlayout-name", layoutName); TQString masterName = styles->lookup(masterPage, "MP"); docWriter->addAttribute("draw:master-page-name", masterName); @@ -324,17 +324,17 @@ bool KivioPage::loadOasis(const TQDomElement& page, KoOasisStyles& oasisStyles) return false; } - const TQDomElement *pageLayout = oasisStyles.findStyle(masterPage->attributeNS( KoXmlNS::style, "page-layout-name", TQString() ) ); + const TQDomElement *pageLayout = oasisStyles.findStyle(masterPage->attributeNS( KoXmlNS::style, "page-tqlayout-name", TQString() ) ); if(!pageLayout) { - kdDebug(430000) << "Couldn't find the pagelayout!" << endl; + kdDebug(430000) << "Couldn't find the pagetqlayout!" << endl; return false; } m_pPageLayout.loadOasis(*pageLayout); if(m_pPageLayout.ptWidth <= 1e-13 || m_pPageLayout.ptHeight <= 1e-13) { - kdDebug(430000) << "Non valid pagelayout!" << endl; + kdDebug(430000) << "Non valid pagetqlayout!" << endl; return false; } @@ -941,7 +941,7 @@ void KivioPage::copy() KivioDragObject* kdo = new KivioDragObject(); kdo->setStencilList(m_lstSelection); kdo->setStencilRect(getRectForAllSelectedStencils()); - TQApplication::clipboard()->setData(kdo, TQClipboard::Clipboard); + TQApplication::tqclipboard()->setData(kdo, TQClipboard::Clipboard); } void KivioPage::cut() @@ -987,7 +987,7 @@ void KivioPage::paste(KivioView* view) list.setAutoDelete(false); KivioDragObject kdo; - if(kdo.decode(TQApplication::clipboard()->data(TQClipboard::Clipboard), list, this)) { + if(kdo.decode(TQApplication::tqclipboard()->data(TQClipboard::Clipboard), list, this)) { unselectAllStencils(); KivioStencil* stencil = list.first(); |