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.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/newui/docksplitter.cpp b/src/newui/docksplitter.cpp
index eae4a3e3..0dc55453 100644
--- a/src/newui/docksplitter.cpp
+++ b/src/newui/docksplitter.cpp
@@ -23,8 +23,8 @@
namespace Ideal {
-DockSplitter::DockSplitter(Orientation orientation, QWidget *parent, const char *name)
- :QSplitter(parent, name), m_orientation(orientation)
+DockSplitter::DockSplitter(Orientation orientation, TQWidget *parent, const char *name)
+ :TQSplitter(parent, name), m_orientation(orientation)
{
switch (m_orientation)
{
@@ -43,11 +43,11 @@ DockSplitter::~DockSplitter()
{
}
-void DockSplitter::addDock(uint row, uint col, QWidget *dock)
+void DockSplitter::addDock(uint row, uint col, TQWidget *dock)
{
if (m_docks.count() <= row)
for (uint i = m_docks.count(); i <= row ; ++i)
- m_docks.append(QValueList<QWidget*>());
+ m_docks.append(TQValueList<TQWidget*>());
if (m_docks[row].count() <= col)
{
@@ -62,9 +62,9 @@ void DockSplitter::addDock(uint row, uint col, QWidget *dock)
if (m_splitters.count() <= row)
createSplitters(row);
- QSplitter *splitter = m_splitters[row];
+ TQSplitter *splitter = m_splitters[row];
- dock->reparent(splitter, QPoint(0,0), true);
+ dock->reparent(splitter, TQPoint(0,0), true);
if (col < m_docks[row].count()-1)
shiftWidgets(splitter, row, col+1);
}
@@ -74,10 +74,10 @@ void DockSplitter::appendSplitter()
switch (m_orientation)
{
case Horizontal:
- m_splitters.append(new QSplitter(Horizontal, this));
+ m_splitters.append(new TQSplitter(Horizontal, this));
break;
case Vertical:
- m_splitters.append(new QSplitter(Vertical, this));
+ m_splitters.append(new TQSplitter(Vertical, this));
break;
}
m_splitters[m_splitters.size()-1]->setOpaqueResize(true);
@@ -99,7 +99,7 @@ void DockSplitter::removeDock(uint row, uint col, bool alsoDelete)
if ((row >= m_docks.count()) || (col >= m_docks[row].count()))
return;
- QWidget *w = m_docks[row][col];
+ TQWidget *w = m_docks[row][col];
m_docks[row].remove(m_docks[row].at(col));
if (alsoDelete)
@@ -109,7 +109,7 @@ void DockSplitter::removeDock(uint row, uint col, bool alsoDelete)
}
else
{
- w->reparent(0, QPoint(0,0), false);
+ w->reparent(0, TQPoint(0,0), false);
w->hide();
}
@@ -134,7 +134,7 @@ bool DockSplitter::isRowEmpty(int row)
return true;
}
-void DockSplitter::shiftWidgets(QSplitter *splitter, uint row, uint fromCol)
+void DockSplitter::shiftWidgets(TQSplitter *splitter, uint row, uint fromCol)
{
kdDebug(9000) << "shiftWidgets: row=" << row << " from col=" << fromCol << endl;
kdDebug(9000) << "row size is: " << m_docks[row].count() << endl;
@@ -161,7 +161,7 @@ int DockSplitter::numCols(int row) const
return 0;
}
-QPair<uint, uint> DockSplitter::indexOf(QWidget *dock)
+QPair<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)