summaryrefslogtreecommitdiffstats
path: root/kicker/extensions/dockbar
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/dockbar
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/dockbar')
-rw-r--r--kicker/extensions/dockbar/dockbarextension.cpp24
-rw-r--r--kicker/extensions/dockbar/dockbarextension.h4
2 files changed, 14 insertions, 14 deletions
diff --git a/kicker/extensions/dockbar/dockbarextension.cpp b/kicker/extensions/dockbar/dockbarextension.cpp
index d3b625f80..5ebce58c4 100644
--- a/kicker/extensions/dockbar/dockbarextension.cpp
+++ b/kicker/extensions/dockbar/dockbarextension.cpp
@@ -60,7 +60,7 @@ DockBarExtension::DockBarExtension(const TQString& configFile, Type type,
kwin_module = new KWinModule(this);
connect( kwin_module, TQT_SIGNAL( windowAdded(WId) ), TQT_SLOT( windowAdded(WId) ) );
setMinimumSize(DockContainer::sz(), DockContainer::sz());
- setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
+ tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
loadContainerConfig();
}
@@ -77,7 +77,7 @@ DockBarExtension::~DockBarExtension()
if (dragging_container) delete dragging_container;
}
-TQSize DockBarExtension::sizeHint(Position p, TQSize) const
+TQSize DockBarExtension::tqsizeHint(Position p, TQSize) const
{
if (p == Left || p == Right)
return TQSize(DockContainer::sz(), DockContainer::sz() * containers.count());
@@ -87,7 +87,7 @@ TQSize DockBarExtension::sizeHint(Position p, TQSize) const
void DockBarExtension::resizeEvent(TQResizeEvent*)
{
- layoutContainers();
+ tqlayoutContainers();
}
@@ -167,7 +167,7 @@ void DockBarExtension::windowAdded(WId win)
saveContainerConfig();
}
-void DockBarExtension::layoutContainers()
+void DockBarExtension::tqlayoutContainers()
{
int i = 0;
for (DockContainer::Vector::const_iterator it = containers.constBegin();
@@ -212,7 +212,7 @@ void DockBarExtension::embedWindow(WId win, TQString command, TQString resName,
}
container->embed(win);
- layoutContainers();
+ tqlayoutContainers();
emit updateLayout();
if (ncmd)
container->askNewCommand();
@@ -246,7 +246,7 @@ void DockBarExtension::addContainer(DockContainer* c, int pos)
void DockBarExtension::removeContainer(DockContainer* c)
{
- DockContainer::Vector::iterator it = qFind(containers.begin(), containers.end(), c);
+ DockContainer::Vector::iterator it = tqFind(containers.begin(), containers.end(), c);
if (it == containers.end())
{
@@ -255,7 +255,7 @@ void DockBarExtension::removeContainer(DockContainer* c)
containers.erase(it);
delete c;
- layoutContainers();
+ tqlayoutContainers();
}
void DockBarExtension::embeddedWindowDestroyed(DockContainer* c)
@@ -335,7 +335,7 @@ int DockBarExtension::findContainerAtPoint(const TQPoint& p)
it != containers.constEnd();
++it, ++i)
{
- if ((*it)->geometry().contains(p))
+ if ((*it)->tqgeometry().tqcontains(p))
{
return i;
}
@@ -360,7 +360,7 @@ void DockBarExtension::mouseReleaseEvent(TQMouseEvent *e ) {
releaseMouse();
original_container->embed(dragging_container->embeddedWinId());
delete dragging_container; dragging_container = 0;
- layoutContainers();
+ tqlayoutContainers();
saveContainerConfig();
}
}
@@ -387,7 +387,7 @@ void DockBarExtension::mouseMoveEvent(TQMouseEvent *e) {
if (dragging_container) {
dragging_container->move(e->globalPos() - mclic_dock_pos);
- // change layout of other containers
+ // change tqlayout of other containers
TQPoint dragpos(dragging_container->pos()),
barpos(mapToGlobal(pos()));
int pdrag1,pdrag2,psz;
@@ -403,7 +403,7 @@ void DockBarExtension::mouseMoveEvent(TQMouseEvent *e) {
pdrag1 = dragged_container_original_pos;
- DockContainer::Vector::iterator it = qFind(containers.begin(), containers.end(), original_container);
+ DockContainer::Vector::iterator it = tqFind(containers.begin(), containers.end(), original_container);
if (it == containers.end())
{
@@ -418,6 +418,6 @@ void DockBarExtension::mouseMoveEvent(TQMouseEvent *e) {
containers.erase(it);
containers.insert(target, original_container);
- layoutContainers();
+ tqlayoutContainers();
}
}
diff --git a/kicker/extensions/dockbar/dockbarextension.h b/kicker/extensions/dockbar/dockbarextension.h
index e735ec708..5c0263586 100644
--- a/kicker/extensions/dockbar/dockbarextension.h
+++ b/kicker/extensions/dockbar/dockbarextension.h
@@ -40,7 +40,7 @@ public:
virtual ~DockBarExtension();
- TQSize sizeHint(Position, TQSize maxSize) const;
+ TQSize tqsizeHint(Position, TQSize maxSize) const;
Position preferedPosition() const { return Right; }
protected slots:
@@ -55,7 +55,7 @@ protected:
void removeContainer(DockContainer*);
void saveContainerConfig();
void loadContainerConfig();
- void layoutContainers();
+ void tqlayoutContainers();
int findContainerAtPoint(const TQPoint&);
void mousePressEvent(TQMouseEvent *);
void mouseReleaseEvent(TQMouseEvent *);