#include <GeopsyAbout.h>
Public Member Functions | |
GeopsyAbout (QWidget *parent=0, Qt::WFlags fl=0) | |
bool | painted () const |
Protected Member Functions | |
void | paintEvent (QPaintEvent *e) |
GeopsyAbout::GeopsyAbout | ( | QWidget * | parent = 0 , |
Qt::WFlags | fl = 0 |
||
) |
Constructs a GeopsyAbout as a child of 'parent', with the name 'name' and widget flags set to 'f'.
References GEOPSY_DISTRIBUTION, str, QGpCoreTools::tr(), and TRACE.
: QWidget(parent, fl) { TRACE; setupUi(this); QString str( "Version: " ); str += GEOPSY_VERSION; if(strlen(GEOPSY_DISTRIBUTION)>0) { str += " ("; str += GEOPSY_DISTRIBUTION; str += ")"; } version->setText(str); str=tr( "Licensed to you under the terms of the GNU General Public License Version 2." " For details see the file COPYING included in this package." ); license->setText(str); _painted=false; }
bool GeopsyAbout::painted | ( | ) | const [inline] |
Referenced by modeGui().
{return _painted;}
void GeopsyAbout::paintEvent | ( | QPaintEvent * | e | ) | [protected] |
References TRACE.
{ TRACE; // For startup splash screen, last 3 second after first repaint if( !parent()) { _painted=true; QTimer::singleShot(3000, this, SLOT(close()) ); } QWidget::paintEvent(e); }