From 2c01fd64ddde84a6d78b632f7f3b7c3560dc288c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:58:25 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 73c08b592db45af554b9f21029bc549d70f683ab. --- kpager/kpager.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'kpager/kpager.cpp') diff --git a/kpager/kpager.cpp b/kpager/kpager.cpp index b089c1c35..57a960bb7 100644 --- a/kpager/kpager.cpp +++ b/kpager/kpager.cpp @@ -38,7 +38,7 @@ #include #include -#include +#include #include #include @@ -76,7 +76,7 @@ KPagerMainWindow::KPagerMainWindow(TQWidget *parent, const char *name) if (w > 0 && h > 0) resize(w,h); else - resize(m_pPager->sizeHint()); + resize(m_pPager->tqsizeHint()); // resize(cfg->readNumEntry(lWidth(),200),cfg->readNumEntry(lHeight(),90)); int xpos=cfg->readNumEntry("xPos",-1); @@ -91,7 +91,7 @@ KPagerMainWindow::KPagerMainWindow(TQWidget *parent, const char *name) // rect.pos.y+rect.size.height-m_pPager->height()); // antonio:The above lines don't work. I should look at them when I have // more time - move(kapp->desktop()->width()-m_pPager->sizeHint().width()-5,kapp->desktop()->height()-m_pPager->sizeHint().height()-25); + move(kapp->desktop()->width()-m_pPager->tqsizeHint().width()-5,kapp->desktop()->height()-m_pPager->tqsizeHint().height()-25); } // Set the wm flags to this window @@ -374,7 +374,7 @@ void KPager::configureDialog() updateLayout(); for( TQValueList ::Iterator it = m_desktops.begin(); it != m_desktops.end(); ++it ) - (*it)->repaint(); + (*it)->tqrepaint(); } } @@ -409,7 +409,7 @@ void KPager::slotActiveWindowChanged( WId win ) { if ( (inf1 && inf1->isOnDesktop(i)) || (inf2 && inf2->isOnDesktop(i) ) ) - m_desktops[i-1]->repaint(false); + m_desktops[i-1]->tqrepaint(false); } } @@ -422,7 +422,7 @@ void KPager::slotWindowAdded( WId win) for ( int i=1; i <= (int) m_desktops.count(); ++i) { if ( inf->isOnDesktop( i )) - m_desktops[i-1]->repaint(false); + m_desktops[i-1]->tqrepaint(false); } } @@ -438,14 +438,14 @@ void KPager::slotWindowRemoved( WId win ) for (int i = 1; i <= (int) m_desktops.count(); ++i) { if (onAllDesktops || desktop == i) - m_desktops[i-1]->repaint(false); + m_desktops[i-1]->tqrepaint(false); } } } void KPager::slotWindowChanged( WId win , unsigned int prop) { - bool repaint=false; + bool tqrepaint=false; KWin::WindowInfo* inf = m_windows[win]; if (!inf) @@ -453,7 +453,7 @@ void KPager::slotWindowChanged( WId win , unsigned int prop) inf=info(win); prop=0; // info already calls KWin::info, so there's no need // to update anything else. - repaint=true; + tqrepaint=true; }; bool onAllDesktops = inf ? inf->onAllDesktops() : false; @@ -466,15 +466,15 @@ void KPager::slotWindowChanged( WId win , unsigned int prop) } if((prop & ~( NET::WMName | NET::WMVisibleName )) != 0 ) - repaint = true; + tqrepaint = true; - if (repaint) + if (tqrepaint) for ( int i=1; i <= (int) m_desktops.count(); ++i) { if ((inf && (inf->isOnDesktop(i))) || onAllDesktops || desktop == i ) { - m_desktops[i-1]->repaint(false); + m_desktops[i-1]->tqrepaint(false); } } // redrawDesktops(); @@ -485,9 +485,9 @@ void KPager::slotStackingOrderChanged() m_desktops[m_currentDesktop-1]->m_grabWindows=true; for ( int i=1; i <= (int) m_desktops.count(); ++i) { - m_desktops[i-1]->repaint(false); + m_desktops[i-1]->tqrepaint(false); } -// repaint(true); +// tqrepaint(true); } void KPager::slotDesktopNamesChanged() @@ -547,8 +547,8 @@ void KPager::slotCurrentDesktopChanged(int desk) m_desktops[m_currentDesktop-1]->update(); m_desktops[desk-1]->paintFrame( true ); m_desktops[desk-1]->update(); -// m_desktops[m_currentDesktop-1]->repaint(); -// m_desktops[desk-1]->repaint(); +// m_desktops[m_currentDesktop-1]->tqrepaint(); +// m_desktops[desk-1]->tqrepaint(); m_currentDesktop=desk; @@ -643,21 +643,21 @@ void KPager::redrawDesktops() { TQValueList ::Iterator it; for( it = m_desktops.begin(); it != m_desktops.end(); ++it ) - (*it)->repaint(); + (*it)->tqrepaint(); } void KPager::slotGrabWindows() { m_desktops[m_currentDesktop-1]->m_grabWindows=true; - m_desktops[m_currentDesktop-1]->repaint(); + m_desktops[m_currentDesktop-1]->tqrepaint(); } -TQSize KPager::sizeHint() const +TQSize KPager::tqsizeHint() const { int n=m_desktops.count(); int w=-1,h=-1; - TQSize size=m_desktops[0]->sizeHint(); + TQSize size=m_desktops[0]->tqsizeHint(); int wDsk=size.width(); int hDsk=size.height(); switch (m_layoutType) -- cgit v1.2.1