summaryrefslogtreecommitdiffstats
path: root/kviewshell/plugins/djvu/libdjvu/XMLParser.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:47:59 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:47:59 -0600
commitc2637a0da6d9a1c8626ca39f8451ab3b7cda487a (patch)
treebe38034f085e8be24f14f329f87a611d319e6259 /kviewshell/plugins/djvu/libdjvu/XMLParser.cpp
parent3fd343f2c6b0545bd750b2939c74be3834b13274 (diff)
downloadtdegraphics-c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.tar.gz
tdegraphics-c2637a0da6d9a1c8626ca39f8451ab3b7cda487a.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kviewshell/plugins/djvu/libdjvu/XMLParser.cpp')
-rw-r--r--kviewshell/plugins/djvu/libdjvu/XMLParser.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kviewshell/plugins/djvu/libdjvu/XMLParser.cpp b/kviewshell/plugins/djvu/libdjvu/XMLParser.cpp
index 0c39a745..b1d9f469 100644
--- a/kviewshell/plugins/djvu/libdjvu/XMLParser.cpp
+++ b/kviewshell/plugins/djvu/libdjvu/XMLParser.cpp
@@ -373,20 +373,20 @@ lt_XMLParser::Impl::ChangeAnno(
}
}
}
- GUTF8String tqshape;
+ GUTF8String shape;
{
- GPosition tqshape_pos=args.contains("tqshape");
- if(tqshape_pos)
+ GPosition shape_pos=args.contains("shape");
+ if(shape_pos)
{
- tqshape=args[tqshape_pos];
+ shape=args[shape_pos];
}
}
GP<GMapArea> a;
- if(tqshape == "default")
+ if(shape == "default")
{
GRect rect(0,0,w,h);
a=GMapRect::create(rect);
- }else if(!tqshape.length() || tqshape == "rect")
+ }else if(!shape.length() || shape == "rect")
{
int xx[4];
int i=0;
@@ -420,7 +420,7 @@ lt_XMLParser::Impl::ChangeAnno(
}
GRect rect(xmin,ymin,xmax-xmin,ymax-ymin);
a=GMapRect::create(rect);
- }else if(tqshape == "circle")
+ }else if(shape == "circle")
{
int xx[4];
int i=0;
@@ -440,7 +440,7 @@ lt_XMLParser::Impl::ChangeAnno(
int x=xx[0],y=xx[1],rx=xx[2],ry=(h-xx[3])-1;
GRect rect(x-rx,y-ry,2*rx,2*ry);
a=GMapOval::create(rect);
- }else if(tqshape == "oval")
+ }else if(shape == "oval")
{
int xx[4];
int i=0;
@@ -474,7 +474,7 @@ lt_XMLParser::Impl::ChangeAnno(
}
GRect rect(xmin,ymin,xmax-xmin,ymax-ymin);
a=GMapOval::create(rect);
- }else if(tqshape == "poly")
+ }else if(shape == "poly")
{
GP<GMapPoly> p=GMapPoly::create();
for(GPosition poly_pos=coords;poly_pos;++poly_pos)
@@ -489,7 +489,7 @@ lt_XMLParser::Impl::ChangeAnno(
a=p;
}else
{
- G_THROW( ( ERR_MSG("XMLAnno.unknown_tqshape") "\t")+tqshape );
+ G_THROW( ( ERR_MSG("XMLAnno.unknown_shape") "\t")+shape );
}
if(a)
{