summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/sidebar
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/extensions/sidebar
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/extensions/sidebar')
-rw-r--r--kicker/extensions/sidebar/sidebarextension.cpp32
-rw-r--r--kicker/extensions/sidebar/sidebarextension.h4
2 files changed, 18 insertions, 18 deletions
diff --git a/kicker/extensions/sidebar/sidebarextension.cpp b/kicker/extensions/sidebar/sidebarextension.cpp
index 401c67fbd..424414a3a 100644
--- a/kicker/extensions/sidebar/sidebarextension.cpp
+++ b/kicker/extensions/sidebar/sidebarextension.cpp
@@ -50,8 +50,8 @@ SidebarExtension::SidebarExtension( const TQString& configFile,
{
kdDebug() << "SidebarExtension: Created '" << name << "', '" << configFile << "'" << endl;
new KonqHistoryManager(0,"SidebarExtensionHistoryManager");
- m_layout=new TQHBoxLayout(this);
- m_layout->activate();
+ m_tqlayout=new TQHBoxLayout(this);
+ m_tqlayout->activate();
m_sbWrapper=new TQVBox(this);
KParts::ReadOnlyPart *p=KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadOnlyPart>(
"konq_sidebar",
@@ -94,7 +94,7 @@ void SidebarExtension::needLayoutUpdate(bool exp) {
m_currentWidth=24;
m_resizeHandle->hide();
}
- topLevelWidget()->setFixedWidth(m_currentWidth);
+ tqtopLevelWidget()->setFixedWidth(m_currentWidth);
emit updateLayout();
}
@@ -117,7 +117,7 @@ bool SidebarExtension::eventFilter( TQObject *, TQEvent *e ) {
return true;
} else if (e->type()==TQEvent::MouseButtonRelease) {
m_resizing=false;
- m_expandedSize=topLevelWidget()->width();
+ m_expandedSize=tqtopLevelWidget()->width();
needLayoutUpdate(true);
return true;
} else if (e->type()==TQEvent::MouseMove) {
@@ -126,14 +126,14 @@ bool SidebarExtension::eventFilter( TQObject *, TQEvent *e ) {
if (p==Left) {
int diff=((TQMouseEvent*)e)->globalX()-m_x;
if (abs(diff)>3) {
- topLevelWidget()->setFixedWidth(topLevelWidget()->width()+diff);
+ tqtopLevelWidget()->setFixedWidth(tqtopLevelWidget()->width()+diff);
m_x=((TQMouseEvent*)e)->globalX();
}
} else if (p==Right) {
int diff=((TQMouseEvent*)e)->globalX()-m_x;
if (abs(diff)>3) {
- topLevelWidget()->setFixedWidth(topLevelWidget()->width()-diff);
- topLevelWidget()->move(topLevelWidget()->x()+diff,topLevelWidget()->y());
+ tqtopLevelWidget()->setFixedWidth(tqtopLevelWidget()->width()-diff);
+ tqtopLevelWidget()->move(tqtopLevelWidget()->x()+diff,tqtopLevelWidget()->y());
m_x=((TQMouseEvent*)e)->globalX();
}
}
@@ -148,24 +148,24 @@ KPanelExtension::Position SidebarExtension::preferedPosition() const {
return KPanelExtension::Left;
}
-TQSize SidebarExtension::sizeHint(Position, TQSize maxSize ) const
+TQSize SidebarExtension::tqsizeHint(Position, TQSize maxSize ) const
{
return TQSize(m_currentWidth,maxSize.height());
}
void SidebarExtension::positionChange( Position position ) {
if (position == Right) {
- m_layout->remove(m_sbWrapper);
- m_layout->remove(m_resizeHandle);
+ m_tqlayout->remove(m_sbWrapper);
+ m_tqlayout->remove(m_resizeHandle);
- m_layout->add(m_resizeHandle);
- m_layout->add(m_sbWrapper);
+ m_tqlayout->add(m_resizeHandle);
+ m_tqlayout->add(m_sbWrapper);
} else if (position == Left) {
- m_layout->remove(m_sbWrapper);
- m_layout->remove(m_resizeHandle);
+ m_tqlayout->remove(m_sbWrapper);
+ m_tqlayout->remove(m_resizeHandle);
- m_layout->add(m_sbWrapper);
- m_layout->add(m_resizeHandle);
+ m_tqlayout->add(m_sbWrapper);
+ m_tqlayout->add(m_resizeHandle);
}
diff --git a/kicker/extensions/sidebar/sidebarextension.h b/kicker/extensions/sidebar/sidebarextension.h
index 4d0d1646b..7dea6b0fb 100644
--- a/kicker/extensions/sidebar/sidebarextension.h
+++ b/kicker/extensions/sidebar/sidebarextension.h
@@ -36,7 +36,7 @@ public:
virtual ~SidebarExtension();
- TQSize sizeHint( Position, TQSize maxSize ) const;
+ TQSize tqsizeHint( Position, TQSize maxSize ) const;
Position preferedPosition() const;
virtual void positionChange( Position position );
@@ -55,7 +55,7 @@ private:
TQFrame *m_resizeHandle;
bool m_resizing;
int m_expandedSize;
- TQHBoxLayout *m_layout;
+ TQHBoxLayout *m_tqlayout;
TQVBox *m_sbWrapper;
};