📄 qmaboutdialog.cpp
字号:
/* qmaboutdialog.cpp * * $Id: qmaboutdialog.cpp,v 1.16 2002/04/27 22:08:22 mariuss Exp $ * * Apollo sound player: http://www.apolloplayer.org * Copyright(C) 2000-2002 Apollo Team. See CREDITS file. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * The GNU General Public License is also available online at: * * http://www.gnu.org/copyleft/gpl.html */#include "qmaboutdialog.h"#include <qlabel.h>#include <qlayout.h>#include <qpixmap.h>#include <qpushbutton.h>#include <qtextview.h>#include <qwidgetstack.h>#include "qmpixmapsupplier.h"#include "version.h"/*! \file qmaboutdialog.cpp \brief The About dialog: displays contact info Implementation of QmAboutDialog class which handles the About dialog.*//*! \class QmAboutDialog qmaboutdialog.h \brief The about dialog in Apollo A class for containing all code for the about dialog box. It sets up a dialog with a picture and some text.*//*! Initialize the about dialog.*/QmAboutDialog::QmAboutDialog( QWidget *parent, const char *name, bool modal) : QDialog(parent, name, modal){ QVBoxLayout *main = new QVBoxLayout(this, 4); QHBoxLayout *top = new QHBoxLayout; QHBoxLayout *bottom = new QHBoxLayout; setCaption(tr("About Apollo")); QmPixmapSupplier *sup = QmPixmapSupplier::instance(); QLabel *logo = new QLabel(this); logo->setPixmap( sup->pixmap( "icons-apollo" ) ); setBackgroundColor(white); QWidgetStack *m_pStack = new QWidgetStack(this); m_pText = new QLabel( tr("<center>" "Version %1<br>" "Copyright (C) Apollo Team 2000-2002 - Distributed under GPL<br>" "</center>" "<hr/>" "<table>" "<tr>" "<td>Developers:</td><td>Marius Sundbakken<br>Jan Borsodi<br>Ren
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -