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

📄 texteditor_internal.cpp

📁 爱可视605看PDF程式源代码, 基于APDF
💻 CPP
字号:
#include "texteditor_internal.h"#include "keyboardwidget.h"#include <qapplication.h>#include <qlayout.h>#include <qmultilineedit.h>#include <stdio.h>archos::TextEditorInternal::TextEditorInternal( QWidget *parent )	: QWidget( parent )	, kbdw( NULL )	, editw( NULL ){	QLayout *l = new QVBoxLayout( this );	l->setAutoAdd( true );	editw = new QMultiLineEdit( this );	editw->setFrameStyle( QFrame::NoFrame );	QPalette pal = editw->palette();	pal.setColor( QColorGroup::Background, QColor( 0, 86, 194 ) );	editw->setPalette( pal );	kbdw = new KeyboardWidget( this );	kbdw->setPalette( pal );	kbdw->setReceiver( editw );	qApp->installEventFilter( kbdw );	editw->setFocus();	connect(		kbdw, SIGNAL( enterPressed() ),		this, SIGNAL( editingFinished() )	);}void archos::TextEditorInternal::setText( const QString &txt ){	editw->setText( txt );}QString archos::TextEditorInternal::text() const{	return editw->text();}

⌨️ 快捷键说明

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