summaryrefslogtreecommitdiffstats
path: root/src/newui/docksplitter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /src/newui/docksplitter.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/newui/docksplitter.cpp')
-rw-r--r--src/newui/docksplitter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/newui/docksplitter.cpp b/src/newui/docksplitter.cpp
index 0dc55453..c22f2723 100644
--- a/src/newui/docksplitter.cpp
+++ b/src/newui/docksplitter.cpp
@@ -23,16 +23,16 @@
namespace Ideal {
-DockSplitter::DockSplitter(Orientation orientation, TQWidget *parent, const char *name)
- :TQSplitter(parent, name), m_orientation(orientation)
+DockSplitter::DockSplitter(Qt::Orientation orientation, TQWidget *tqparent, const char *name)
+ :TQSplitter(tqparent, name), m_orientation(orientation)
{
switch (m_orientation)
{
- case Horizontal:
- setOrientation(Vertical);
+ case Qt::Horizontal:
+ setOrientation(Qt::Vertical);
break;
- case Vertical:
- setOrientation(Horizontal);
+ case Qt::Vertical:
+ setOrientation(Qt::Horizontal);
break;
}
setOpaqueResize(true);
@@ -73,11 +73,11 @@ void DockSplitter::appendSplitter()
{
switch (m_orientation)
{
- case Horizontal:
- m_splitters.append(new TQSplitter(Horizontal, this));
+ case Qt::Horizontal:
+ m_splitters.append(new TQSplitter(Qt::Horizontal, this));
break;
- case Vertical:
- m_splitters.append(new TQSplitter(Vertical, this));
+ case Qt::Vertical:
+ m_splitters.append(new TQSplitter(Qt::Vertical, this));
break;
}
m_splitters[m_splitters.size()-1]->setOpaqueResize(true);
@@ -113,7 +113,7 @@ void DockSplitter::removeDock(uint row, uint col, bool alsoDelete)
w->hide();
}
- m_splitters[row]->setMinimumSize(m_splitters[row]->minimumSizeHint());
+ m_splitters[row]->setMinimumSize(m_splitters[row]->tqminimumSizeHint());
if (isRowEmpty(row))
{
@@ -161,13 +161,13 @@ int DockSplitter::numCols(int row) const
return 0;
}
-QPair<uint, uint> DockSplitter::indexOf(TQWidget *dock)
+TQPair<uint, uint> DockSplitter::indexOf(TQWidget *dock)
{
for (uint i = 0; i < m_docks.count(); ++i)
for (uint j = 0; j < m_docks[i].count(); ++j)
if (dock == m_docks[i][j])
- return qMakePair(i, j);
- return qMakePair(0u, 0u);
+ return tqMakePair(i, j);
+ return tqMakePair(0u, 0u);
}
}