help.cpp

来自「图形软件,用QT编写的,可以用来学习软件的」· C++ 代码 · 共 74 行

CPP
74
字号
/**************************************************************************************************************************************************************                                                                           ****    equal III the graphic builder                                          ****                                                                           ****    Copyright (C) 2003 Oleksiy Pylypenko                                   ****                                                                           **** This file may be distributed and/or modified under the terms of the       **** GNU General Public License version 2 as published by the Free Software    **** Foundation and appearing in the file license included in the              **** packaging of this file.                                                   ****                                                                           **** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE   **** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ****                                                                           **** Contact earthman@inbox.ru if any conditions of this licensing are         **** not clear to you.                                                         ****                                                                           ****                                                                           ********************************************************************************* *****************************************************************************/#include <qtextview.h>#include "help.h"#include "allhelp.h"#include <qstylesheet.h>#include "xpms.h"myHelp::myHelp(const char *what){	LoadHelp();	resize(800,600);	setIcon(QPixmap(equal3));	setCaption(tr("equal3"));	QStyleSheet *sheet = styleSheet();	if(sheet){		QStyleSheetItem *item;		item = sheet->item("p");		if(item){			item->setFontFamily("Times New Roman");			item->setWhiteSpaceMode(QStyleSheetItem::WhiteSpaceNormal);			item->setFontSize(14);		}		item = sheet->item("pre");		if(item){			item->setFontFamily("Courier New");			item->setFontSize(14);		}		item = sheet->item("h1");		if(item){			item->setFontFamily("Arial");			item->setFontSize(30);		}				item = sheet->item("h3");		if(item){			item->setFontFamily("Arial");			item->setFontSize(20);		}		item = sheet->item("a");		if(item){			item->setColor(QColor(0,79,175));		}	}	if(what == 0)what = "equal3.xml";	setSource(what);}

⌨️ 快捷键说明

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