summaryrefslogtreecommitdiffstats
path: root/src/newui/docksplitter.cpp
diff options
context:
space:
mode:
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);
}
}