⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kdevview.cpp

📁 Linux程序设计权威指南代码.包含所有章节代码
💻 CPP
字号:
/***************************************************************************                          kdevview.cpp  -  description                             -------------------    begin                : 四 09 21 05:30:27 CST 2000    copyright            : (C) 2000 by     email                :  ***************************************************************************//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************/// include files for Qt#include <qprinter.h>#include <qpainter.h>// application specific includes#include "kdevview.h"#include "kdevdoc.h"KdevView::KdevView(KdevDoc* pDoc, QWidget *parent, const char* name, int wflags) : QWidget(parent, name, wflags){    doc=pDoc;}KdevView::~KdevView(){}KdevDoc *KdevView::getDocument() const{	return doc;}void KdevView::update(KdevView* pSender){	if(pSender != this)		repaint();}void KdevView::print(QPrinter *pPrinter){  if (pPrinter->setup(this))  {		QPainter p;		p.begin(pPrinter);				///////////////////////////////		// TODO: add your printing code here		///////////////////////////////				p.end();  }}void KdevView::closeEvent(QCloseEvent*){  // LEAVE THIS EMPTY: THE EVENT FILTER IN THE KdevApp CLASS TAKES CARE FOR CLOSING  // QWidget closeEvent must be prevented.}

⌨️ 快捷键说明

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