summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrView.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:12:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:12:30 -0600
commit11191ef0b9908604d1d7aaca382b011ef22c454c (patch)
treed38f0ccd8bfcc9756f5cfc42fb2ad1dad351e6aa /kpresenter/KPrView.cpp
parentc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (diff)
downloadkoffice-11191ef0b9908604d1d7aaca382b011ef22c454c.tar.gz
koffice-11191ef0b9908604d1d7aaca382b011ef22c454c.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kpresenter/KPrView.cpp')
-rw-r--r--kpresenter/KPrView.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kpresenter/KPrView.cpp b/kpresenter/KPrView.cpp
index a86caa80..13e912f1 100644
--- a/kpresenter/KPrView.cpp
+++ b/kpresenter/KPrView.cpp
@@ -410,23 +410,23 @@ KPrView::KPrView( KPrDocument* _doc, TQWidget *_parent, const char *_name )
if ( sb ) // No statusbar in e.g. konqueror
{
m_sbPageLabel = new KStatusBarLabel( TQString(), 0, sb );
- m_sbPageLabel->tqsetAlignment( AlignLeft | AlignVCenter );
+ m_sbPageLabel->setAlignment( AlignLeft | AlignVCenter );
addStatusBarItem( m_sbPageLabel, 0 );
m_sbModifiedLabel = new KStatusBarLabel( " ", 0, sb );
- m_sbModifiedLabel->tqsetAlignment( AlignLeft | AlignVCenter );
+ m_sbModifiedLabel->setAlignment( AlignLeft | AlignVCenter );
addStatusBarItem( m_sbModifiedLabel, 0 );
m_sbObjectLabel = new KStatusBarLabel( TQString(), 0, sb );
- m_sbObjectLabel->tqsetAlignment( AlignLeft | AlignVCenter );
+ m_sbObjectLabel->setAlignment( AlignLeft | AlignVCenter );
addStatusBarItem( m_sbObjectLabel, 1 );
m_sbZoomLabel = new KStatusBarLabel( ' ' + TQString::number( m_pKPresenterDoc->zoomHandler()->zoom() ) + "% ", 0, sb );
- m_sbZoomLabel->tqsetAlignment( AlignHCenter | AlignVCenter );
+ m_sbZoomLabel->setAlignment( AlignHCenter | AlignVCenter );
addStatusBarItem( m_sbZoomLabel, 0 );
m_sbUnitLabel = new KStatusBarLabel( ' ' + KoUnit::unitDescription( m_pKPresenterDoc->unit() ) + ' ', 0, sb );
- m_sbUnitLabel->tqsetAlignment( AlignHCenter | AlignVCenter );
+ m_sbUnitLabel->setAlignment( AlignHCenter | AlignVCenter );
addStatusBarItem( m_sbUnitLabel, 0 );
}
@@ -581,7 +581,7 @@ void KPrView::print( KPrinter &prt )
m_canvas->tqrepaint();
kdDebug(33001) << "KPrView::print zoom&res reset" << endl;
- m_pKPresenterDoc->getVariableCollection()->variableSetting()->setLastPrintingDate(TQDateTime::tqcurrentDateTime());
+ m_pKPresenterDoc->getVariableCollection()->variableSetting()->setLastPrintingDate(TQDateTime::currentDateTime());
m_pKPresenterDoc->recalcVariables( VT_DATE );
}
@@ -632,7 +632,7 @@ void KPrView::editPaste()
{
// TODO: it would be nice to have no offset when pasting onto a different page...
m_canvas->activePage()->pasteObjs(
- data->tqencodedData(KoStoreDrag::mimeType("application/x-kpresenter")),
+ data->encodedData(KoStoreDrag::mimeType("application/x-kpresenter")),
1, 0.0, 0.0, 0.0, 20.0, 20.0);
m_canvas->setMouseSelectedObject(true);
@@ -644,7 +644,7 @@ void KPrView::editPaste()
//TODO : fix me !!
// TODO: it would be nice to have no offset when pasting onto a different page...
//m_canvas->activePage()->pasteObjs(
- //data->tqencodedData(KoStoreDrag::mimeType("application/vnd.oasis.opendocument.presentation")),
+ //data->encodedData(KoStoreDrag::mimeType("application/vnd.oasis.opendocument.presentation")),
//1, 0.0, 0.0, 0.0, 20.0, 20.0);
m_canvas->setMouseSelectedObject(true);
@@ -1274,7 +1274,7 @@ void KPrView::extraShadow()
if ( !shadowDia ) {
shadowDia = new KPrShadowDialogImpl( this );
- shadowDia->resize( shadowDia->tqminimumSize() );
+ shadowDia->resize( shadowDia->minimumSize() );
connect( shadowDia, TQT_SIGNAL( apply() ), TQT_TQOBJECT(this), TQT_SLOT( shadowOk() ) );
}
@@ -1509,7 +1509,7 @@ void KPrView::startScreenPres( int pgNum /*1-based*/ )
KProcess proc;
proc << xdgScreenSaver;
proc << "suspend";
- proc << TQString::number( tqtopLevelWidget()->winId() );
+ proc << TQString::number( topLevelWidget()->winId() );
kdDebug() << k_funcinfo << proc.args() << endl;
proc.start( KProcess::DontCare );
} else {
@@ -1633,7 +1633,7 @@ void KPrView::screenStop()
KProcess proc;
proc << xdgScreenSaver;
proc << "resume";
- proc << TQString::number( tqtopLevelWidget()->winId() );
+ proc << TQString::number( topLevelWidget()->winId() );
kdDebug() << k_funcinfo << proc.args() << endl;
proc.start( KProcess::DontCare );
} else {
@@ -1856,7 +1856,7 @@ void KPrView::slotApplyFont()
void KPrView::slotCounterStyleSelected()
{
- TQString actionName = TQString::tqfromLatin1(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
+ TQString actionName = TQString::fromLatin1(TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name());
if ( actionName.startsWith( "counterstyle_" ) )
{
TQString styleStr = actionName.mid(13);
@@ -2175,7 +2175,7 @@ void KPrView::createGUI()
// setup page
pageBase = new PageBase( splitterVertical, this );
- pageBase->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
+ pageBase->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
m_canvas=new KPrCanvas( pageBase, "Canvas", this );
@@ -3491,8 +3491,8 @@ void KPrView::reorganize()
if(kPresenterDoc()->showRuler())
{
- int hSpace = v_ruler->tqminimumSizeHint().width();
- int vSpace = h_ruler->tqminimumSizeHint().height();
+ int hSpace = v_ruler->minimumSizeHint().width();
+ int vSpace = h_ruler->minimumSizeHint().height();
m_canvas->move( hSpace, vSpace );
if ( h_ruler )
@@ -3552,8 +3552,8 @@ void PageBase::resizeEvent( TQResizeEvent *e )
TQSize s = e ? e->size() : size();
if ( view->m_bShowGUI ) {
- int hSpace = view->getVRuler()->tqminimumSizeHint().width();
- int vSpace = view->getVRuler()->tqminimumSizeHint().height();
+ int hSpace = view->getVRuler()->minimumSizeHint().width();
+ int vSpace = view->getVRuler()->minimumSizeHint().height();
view->m_canvas->resize( s.width() - ( hSpace + 16 ), s.height() - ( vSpace + 16 ) );
view->vert->setGeometry( s.width() - 16, 0, 16, s.height() - 32 );
@@ -3778,8 +3778,8 @@ void KPrView::setupRulers()
v_ruler = new KoRuler( pageBase, m_canvas, Qt::Vertical, kPresenterDoc()->pageLayout(), 0, kPresenterDoc()->unit() );
v_ruler->setReadWrite(kPresenterDoc()->isReadWrite());
- int hSpace = v_ruler->tqminimumSizeHint().width();
- int vSpace = h_ruler->tqminimumSizeHint().height();
+ int hSpace = v_ruler->minimumSizeHint().width();
+ int vSpace = h_ruler->minimumSizeHint().height();
m_canvas->resize( m_canvas->width() - hSpace, m_canvas->height() - vSpace );
m_canvas->move( hSpace, vSpace );
@@ -5968,7 +5968,7 @@ void KPrView::duplicateObj()
TQCString clip_str = KoStoreDrag::mimeType("application/x-kpresenter");
if ( data->provides( clip_str ) )
{
- m_canvas->activePage()->pasteObjs( data->tqencodedData(clip_str),
+ m_canvas->activePage()->pasteObjs( data->encodedData(clip_str),
nbCopy, angle, increaseX,increaseY, moveX, moveY );
m_canvas->setMouseSelectedObject(true);
emit objectSelectedChanged();