aboutdlg.cpp

来自「Linux下的C、C++ IDE」· C++ 代码 · 共 64 行

CPP
64
字号
#include "aboutdlg.h"#include "portdef.h"#include <qpushbutton.h>#include <qlayout.h>#include <qhbox.h>#include <qpixmap.h>#include <qlabel.h>AboutDlg::AboutDlg(QWidget *parent, const char *name)	: QDialog(parent, name){	QVBoxLayout *vbox = new QVBoxLayout(this);	vbox->setSpacing(5);	QPixmap pm((QString) getenv("HIDEPATH") + FILE_SEP +		"img" + FILE_SEP + "logo.jpg");	QLabel *lblSplash = new QLabel("", this);	lblSplash->setPixmap(pm);	vbox->addWidget(lblSplash);	QHBox *hbox = new QHBox(this);	hbox->setMaximumWidth(100);	QString msg = (QString)		"<br>" +		"<b>Developed By:</b><br>" +		"James Martin (boolean_machine@yahoo.com)<br><br>" +		"<b>Special Thanx...</b><br><br>" +		"<ul>" +		"<li>SourceForge.net for hosting the project." +		"<li>All the programmer\'s from Yahoo! Programming:1<br>" +		"for their feature suggestions\\complaints." +		"<li>Maxwell House coffee, hIDE would not exist<br>" +		"without that =)";		"</ul>";	QLabel *lblMsg = new QLabel(msg, this);	lblMsg->setTextFormat(Qt::RichText);	vbox->addWidget(lblMsg);	QPushButton *ok = new QPushButton("Close", hbox);	ok->setDefault(true);	QObject::connect(ok, SIGNAL(clicked()), this, SLOT(verify()));	vbox->addWidget(hbox);	setCaption("About hIDE");}int AboutDlg::exec(){	return QDialog::exec();}void AboutDlg::verify(){	accept();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?