Source Code (Use browser search to find items of interest.)
Class Index
kworldwatch'AboutBox (./kdetoys/kworldwatch/world.cpp:328)
class AboutBox : public QDialog
{
public:
AboutBox();
protected:
void paintEvent(QPaintEvent *event);
private:
QPixmap back;
QPushButton button;
};
AboutBox::AboutBox()
: QDialog(NULL, "about", TRUE),
button(i18n("Close"), this)
{
KIconLoader iconLoader;
QPixmap back(locate("data", "kworldwatch/pics/world2.png"));
setCaption(i18n("About KDE World Watch"));
setFixedSize(back.width(), back.height());
setBackgroundPixmap(back);
connect(&button, SIGNAL(clicked()), this, SLOT(accept()));
button.adjustSize();
button.move((width()-button.width())/2, height()-3*button.height()/2);
}
void AboutBox::paintEvent(QPaintEvent *)
{
QPainter p(this);
p.setFont(QFont("Courier", 14, QFont::Bold));
p.setBackgroundMode(TransparentMode);
p.drawText(0,0,width(),3*height()/4, AlignCenter,
i18n("The KDE World Wide Watch\n\nwritten by Matthias Hölzer\n(hoelzer@physik.uni-wuerzburg.de)"));
}
kworldwatch'AboutBox::paintEvent() (./kdetoys/kworldwatch/world.cpp:363)
void AboutBox::paintEvent(QPaintEvent *)
{
QPainter p(this);
p.setFont(QFont("Courier", 14, QFont::Bold));
p.setBackgroundMode(TransparentMode);
p.drawText(0,0,width(),3*height()/4, AlignCenter,
i18n("The KDE World Wide Watch\n\nwritten by Matthias Hölzer\n(hoelzer@physik.uni-wuerzburg.de)"));
}