/[classpath]/classpath/gnu/java/awt/peer/qt/QtImageGraphics.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/qt/QtImageGraphics.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by smarothy, Thu Aug 11 17:06:48 2005 UTC revision 1.2 by smarothy, Tue Aug 16 23:22:09 2005 UTC
# Line 93  public class QtImageGraphics extends QtG Line 93  public class QtImageGraphics extends QtG
93    {    {
94      super( g );      super( g );
95      parentImage = g.parentImage;      parentImage = g.parentImage;
96      if( g.topParent == null )      if( parentImage instanceof QtImage )
97        topParent = g;        ((QtImage)parentImage).painters.add( this );
     else  
       topParent = g.topParent;  
     topParent.owners.push( this );  
98    }    }
99    
100    public void dispose()    public void dispose()
101    {    {
102      while(!owners.empty())      delete();
       ((QtImageGraphics)owners.pop()).delete();  
103    }    }
104    
   
105    /**    /**
106     * Create a copy of this context.     * Create a copy of this context.
107     */     */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26