summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrView.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-21 14:05:41 -0600
committerTimothy Pearson <[email protected]>2011-12-21 14:05:41 -0600
commit2d6954f69caf63ed5057bd8e1405a65d7d970292 (patch)
tree88e6436b2e81d4e68313f02a9021054252e14cc4 /kpresenter/KPrView.cpp
parentf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (diff)
downloadkoffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.tar.gz
koffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'kpresenter/KPrView.cpp')
-rw-r--r--kpresenter/KPrView.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kpresenter/KPrView.cpp b/kpresenter/KPrView.cpp
index a2781ca1..af3905ba 100644
--- a/kpresenter/KPrView.cpp
+++ b/kpresenter/KPrView.cpp
@@ -502,12 +502,12 @@ void KPrView::setupPrinter( KPrinter &prt )
prt.setFromTo( 1, m_pKPresenterDoc->getPageNums() );
prt.setOption( "kde-range", m_pKPresenterDoc->selectedForPrinting() );
prt.setPageSelection(KPrinter::ApplicationSide);
- KoPageLayout tqlayout = m_pKPresenterDoc->pageLayout();
- prt.setOption( "kde-margin-top", TQString::number(tqlayout.ptTop) );
- prt.setOption( "kde-margin-bottom", TQString::number(tqlayout.ptBottom) );
- prt.setOption( "kde-margin-left", TQString::number(tqlayout.ptLeft) );
- prt.setOption( "kde-margin-right", TQString::number(tqlayout.ptRight) );
- KoFormat pageFormat = tqlayout.format;
+ KoPageLayout layout = m_pKPresenterDoc->pageLayout();
+ prt.setOption( "kde-margin-top", TQString::number(layout.ptTop) );
+ prt.setOption( "kde-margin-bottom", TQString::number(layout.ptBottom) );
+ prt.setOption( "kde-margin-left", TQString::number(layout.ptLeft) );
+ prt.setOption( "kde-margin-right", TQString::number(layout.ptRight) );
+ KoFormat pageFormat = layout.format;
prt.setPageSize( static_cast<KPrinter::PageSize>( KoPageFormat::printerPageSize( pageFormat ) ) );
if ( m_pKPresenterDoc->pageLayout().orientation == PG_LANDSCAPE || pageFormat == PG_SCREEN )
@@ -620,7 +620,7 @@ void KPrView::editPaste()
if ( !m_canvas->currentTextObjectView() ) {
m_canvas->setToolEditMode( TEM_MOUSE );
deSelectAllObjects();
- TQMimeSource *data = TQApplication::tqclipboard()->data();
+ TQMimeSource *data = TQApplication::clipboard()->data();
if ( data->provides( "text/uri-list" ) )
{
m_pKPresenterDoc->pastePage( data, currPg );
@@ -5360,7 +5360,7 @@ KoTextZoomHandler *KPrView::zoomHandler() const
void KPrView::slotViewFormattingChars()
{
m_pKPresenterDoc->setViewFormattingChars(actionViewFormattingChars->isChecked());
- m_pKPresenterDoc->tqlayout(); // Due to the different formatting when this option is activated
+ m_pKPresenterDoc->layout(); // Due to the different formatting when this option is activated
m_pKPresenterDoc->repaint(false);
}
@@ -5964,7 +5964,7 @@ void KPrView::duplicateObj()
m_canvas->copyObjs();
m_canvas->setToolEditMode( TEM_MOUSE );
deSelectAllObjects();
- TQMimeSource *data = TQApplication::tqclipboard()->data();
+ TQMimeSource *data = TQApplication::clipboard()->data();
TQCString clip_str = KoStoreDrag::mimeType("application/x-kpresenter");
if ( data->provides( clip_str ) )
{