flagobj.cpp
changeset 149 4426ecd854bb
parent 0 7a96bd401351
child 166 325958acb69b
     1.1 --- a/flagobj.cpp	Sun Jan 30 12:58:47 2005 +0000
     1.2 +++ b/flagobj.cpp	Mon Aug 08 16:16:42 2005 +0000
     1.3 @@ -30,6 +30,7 @@
     1.4  void FlagObj::init ()
     1.5  {
     1.6  	name="undefined";
     1.7 +	group="undefined";
     1.8  
     1.9  	icon=new ImageObj (canvas);
    1.10  	icon->move (absPos.x(), absPos.y() );
    1.11 @@ -41,6 +42,7 @@
    1.12  {
    1.13      MapObj::copy(other);
    1.14  	name=other->name;
    1.15 +	group=other->group;
    1.16  	tooltip=other->tooltip;
    1.17  	state=other->state;
    1.18  	icon->copy(other->icon);
    1.19 @@ -95,6 +97,16 @@
    1.20  	return name;
    1.21  }
    1.22  
    1.23 +void FlagObj::setGroup (const QString &n)
    1.24 +{
    1.25 +	group=n;
    1.26 +}
    1.27 +
    1.28 +const QString FlagObj::getGroup()
    1.29 +{
    1.30 +	return group;
    1.31 +}
    1.32 +
    1.33  void FlagObj::setToolTip(const QString &n)
    1.34  {
    1.35  	tooltip=n;