/[classpath]/classpath/native/jni/qt-peer/componentevent.h
ViewVC logotype

Diff of /classpath/native/jni/qt-peer/componentevent.h

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, Sun Aug 21 00:19:49 2005 UTC
# Line 173  class AWTGetOriginEvent : public AWTEven Line 173  class AWTGetOriginEvent : public AWTEven
173    }    }
174  };  };
175    
 class AWTGetSizeEvent : public AWTEvent {  
     
  private:  
   QWidget *widget;  
   bool preferred;  
   
  public:  
   
   QSize **size;  
   
   AWTGetSizeEvent(QWidget *w, QSize **s, bool pref) : AWTEvent()  
     {  
       widget = w;  
       preferred = pref;  
       size = s;  
     }  
   void runEvent()  
   {  
     QSize s;  
     if( preferred )  
       s = widget->sizeHint();  
     else  
       s = widget->minimumSizeHint();  
     *size = new QSize( s.width(), s.height() );  
   }  
 };  
   
176  #endif  #endif

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