summaryrefslogtreecommitdiffstats
path: root/kicker/applets/minipager/pagerapplet.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /kicker/applets/minipager/pagerapplet.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kicker/applets/minipager/pagerapplet.cpp')
-rw-r--r--kicker/applets/minipager/pagerapplet.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kicker/applets/minipager/pagerapplet.cpp b/kicker/applets/minipager/pagerapplet.cpp
index dc2431e15..ecdcd4509 100644
--- a/kicker/applets/minipager/pagerapplet.cpp
+++ b/kicker/applets/minipager/pagerapplet.cpp
@@ -83,7 +83,7 @@ extern "C"
KMiniPager::KMiniPager(const TQString& configFile, Type type, int actions,
TQWidget *parent, const char *name)
: KPanelApplet( configFile, type, actions, parent, name ),
- m_layout(0),
+ m_tqlayout(0),
m_desktopLayoutOwner( NULL ),
m_shadowEngine(0),
m_contextMenu(0),
@@ -363,7 +363,7 @@ void KMiniPager::updateDesktopLayout(int o, int x, int y)
if( y == -1 )
y = 0;
if( m_desktopLayoutOwner == NULL )
- { // must own manager selection before setting global desktop layout
+ { // must own manager selection before setting global desktop tqlayout
int screen = DefaultScreen( qt_xdisplay());
m_desktopLayoutOwner = new KSelectionOwner( TQString( "_NET_DESKTOP_LAYOUT_S%1" ).arg( screen ).latin1(),
screen, this );
@@ -397,10 +397,10 @@ void KMiniPager::resizeEvent(TQResizeEvent*)
if(deskNum == 0 || deskNum % rowNum != 0)
deskCols += 1;
- if (m_layout)
+ if (m_tqlayout)
{
- delete m_layout;
- m_layout = 0;
+ delete m_tqlayout;
+ m_tqlayout = 0;
}
int nDX, nDY;
@@ -418,7 +418,7 @@ void KMiniPager::resizeEvent(TQResizeEvent*)
}
// 1 pixel spacing.
- m_layout = new TQGridLayout(this, nDX, nDY, 0, 1);
+ m_tqlayout = new TQGridLayout(this, nDX, nDY, 0, 1);
TQValueList<KMiniPagerButton*>::Iterator it = m_desktops.begin();
TQValueList<KMiniPagerButton*>::Iterator itEnd = m_desktops.end();
@@ -427,14 +427,14 @@ void KMiniPager::resizeEvent(TQResizeEvent*)
while( it != itEnd ) {
c = 0;
while( (it != itEnd) && (c < nDY) ) {
- m_layout->addWidget( *it, r, c );
+ m_tqlayout->addWidget( *it, r, c );
++it;
++c;
}
++r;
}
- m_layout->activate();
+ m_tqlayout->activate();
updateGeometry();
}
@@ -865,7 +865,7 @@ void KMiniPager::slotDesktopNamesChanged()
{
TQString name = m_kwin->desktopName(i);
(*it)->setDesktopName(name);
- (*it)->repaint();
+ (*it)->tqrepaint();
TQToolTip::remove((*it));
TQToolTip::add((*it), name);
}