summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kiviosdk/kivio_base_connector_stencil.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kivio/kiviopart/kiviosdk/kivio_base_connector_stencil.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kivio/kiviopart/kiviosdk/kivio_base_connector_stencil.cpp')
-rw-r--r--kivio/kiviopart/kiviosdk/kivio_base_connector_stencil.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kivio/kiviopart/kiviosdk/kivio_base_connector_stencil.cpp b/kivio/kiviopart/kiviosdk/kivio_base_connector_stencil.cpp
index 9073e152..a9e78928 100644
--- a/kivio/kiviopart/kiviosdk/kivio_base_connector_stencil.cpp
+++ b/kivio/kiviopart/kiviosdk/kivio_base_connector_stencil.cpp
@@ -65,7 +65,7 @@ KivioBaseConnectorStencil::KivioBaseConnectorStencil()
m_pFillStyle = new KivioFillStyle();
m_pLineStyle = new KivioLineStyle();
- m_pConnectorPoints = new QPtrList<KivioConnectorPoint>;
+ m_pConnectorPoints = new TQPtrList<KivioConnectorPoint>;
m_pConnectorPoints->setAutoDelete(true);
}
@@ -81,12 +81,12 @@ KivioBaseConnectorStencil::~KivioBaseConnectorStencil()
delete m_pConnectorPoints;
}
-void KivioBaseConnectorStencil::setFGColor( QColor c )
+void KivioBaseConnectorStencil::setFGColor( TQColor c )
{
m_pLineStyle->setColor(c);
}
-QColor KivioBaseConnectorStencil::fgColor()
+TQColor KivioBaseConnectorStencil::fgColor()
{
return m_pLineStyle->color();
}
@@ -101,12 +101,12 @@ double KivioBaseConnectorStencil::lineWidth()
return m_pLineStyle->width();
}
-void KivioBaseConnectorStencil::setBGColor( QColor c )
+void KivioBaseConnectorStencil::setBGColor( TQColor c )
{
m_pFillStyle->setColor(c);
}
-QColor KivioBaseConnectorStencil::bgColor()
+TQColor KivioBaseConnectorStencil::bgColor()
{
return m_pFillStyle->color();
}
@@ -225,7 +225,7 @@ void KivioBaseConnectorStencil::paintSelectionHandles( KivioIntraStencilData *pD
double x1, y1;
painter->setLineWidth(1.0f);
- painter->setFGColor(QColor(0,0,0));
+ painter->setFGColor(TQColor(0,0,0));
KivioConnectorPoint *p = m_pConnectorPoints->first();
while( p )
@@ -234,9 +234,9 @@ void KivioBaseConnectorStencil::paintSelectionHandles( KivioIntraStencilData *pD
y1 = zoomHandler->zoomItY(p->y()) - HWo2;
if( p->target() )
- painter->setBGColor(QColor(200,0,0));
+ painter->setBGColor(TQColor(200,0,0));
else
- painter->setBGColor(QColor(0,200,0));
+ painter->setBGColor(TQColor(0,200,0));
painter->fillRect( x1, y1, HWP1, HWP1 );
@@ -356,14 +356,14 @@ void KivioBaseConnectorStencil::updateGeometry()
// file i/o routines
-bool KivioBaseConnectorStencil::loadXML( const QDomElement & )
+bool KivioBaseConnectorStencil::loadXML( const TQDomElement & )
{
return false;
}
-QDomElement KivioBaseConnectorStencil::saveXML( QDomDocument & )
+TQDomElement KivioBaseConnectorStencil::saveXML( TQDomDocument & )
{
- return QDomElement();
+ return TQDomElement();
}
@@ -484,9 +484,9 @@ int KivioBaseConnectorStencil::resizeHandlePositions()
return (int)krhpNone;
}
-QDomElement KivioBaseConnectorStencil::saveConnectors( QDomDocument &doc )
+TQDomElement KivioBaseConnectorStencil::saveConnectors( TQDomDocument &doc )
{
- QDomElement eConns = doc.createElement("KivioConnectors");
+ TQDomElement eConns = doc.createElement("KivioConnectors");
KivioConnectorPoint *p;
p = m_pConnectorPoints->first();
@@ -500,15 +500,15 @@ QDomElement KivioBaseConnectorStencil::saveConnectors( QDomDocument &doc )
return eConns;
}
-bool KivioBaseConnectorStencil::loadConnectors( const QDomElement &e )
+bool KivioBaseConnectorStencil::loadConnectors( const TQDomElement &e )
{
m_pConnectorPoints->clear();
KivioConnectorPoint *p;
- QDomNode node = e.firstChild();
- QDomElement e2;
- QString name;
+ TQDomNode node = e.firstChild();
+ TQDomElement e2;
+ TQString name;
while( !node.isNull() )
{
@@ -531,9 +531,9 @@ bool KivioBaseConnectorStencil::loadConnectors( const QDomElement &e )
return true;
}
-QDomElement KivioBaseConnectorStencil::saveProperties( QDomDocument &doc )
+TQDomElement KivioBaseConnectorStencil::saveProperties( TQDomDocument &doc )
{
- QDomElement propE = doc.createElement("KivioConnectorProperties");
+ TQDomElement propE = doc.createElement("KivioConnectorProperties");
propE.appendChild( m_pLineStyle->saveXML( doc ) );
@@ -542,10 +542,10 @@ QDomElement KivioBaseConnectorStencil::saveProperties( QDomDocument &doc )
return propE;
}
-bool KivioBaseConnectorStencil::loadProperties( const QDomElement &e )
+bool KivioBaseConnectorStencil::loadProperties( const TQDomElement &e )
{
- QDomNode node;
- QString nodeName;
+ TQDomNode node;
+ TQString nodeName;
node = e.firstChild();
while( !node.isNull() )