亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qmultilineedit.cpp

?? qtopia-phone-2.2.0下公共的控件實現源代碼。
?? CPP
?? 第 1 頁 / 共 5 頁
	return QString::null;}/*!  Returns a copy of the whole text. If the multi line edit contains no  text, a  \link QString::operator!() null string\endlink  is returned.*/QString QMultiLineEdit::text() const{    QString tmp;    for( int i = 0 ; i < (int)contents->count() ; i++ ) {	tmp += *getString(i);	if ( i+1 < (int)contents->count() && contents->at(i)->newline )	    tmp += '\n';    }    return tmp;}/*!  Selects all text without moving the cursor.*/void QMultiLineEdit::selectAll(){    markAnchorX    = 0;    markAnchorY    = 0;    markDragY = numLines() - 1;    markDragX = lineLength( markDragY );    turnMark( markDragX != markAnchorX || markDragY != markAnchorY );    if ( autoUpdate() )	update();}/*!  Deselects all text (i.e. removes marking) and leaves the cursor at the  current position.*/void QMultiLineEdit::deselect(){    turnMark( FALSE );}/*!  Sets the text to \a s, removing old text, if any.*/void QMultiLineEdit::setText( const QString &s ){    bool oldUndo = isUndoEnabled();    setUndoEnabled( FALSE );    bool oldAuto = autoUpdate();    setAutoUpdate( FALSE );    bool b = signalsBlocked();    blockSignals( TRUE );    clear();    CLEAR_UNDO    blockSignals( b );    insertLine( s, -1 );    emit textChanged();    setAutoUpdate(oldAuto);    if ( autoUpdate() )	update();    setUndoEnabled( oldUndo );#ifdef QT_KEYPAD_MODE    if( qt_modalEditingEnabled ) {	d->orgTxt = text();    }#endif}/*!  Appends \a s to the text.*/void QMultiLineEdit::append( const QString &s ){    bool oldUndo = isUndoEnabled();    setUndoEnabled( FALSE );    insertLine( s, -1 );    setUndoEnabled( oldUndo );    emit textChanged();#ifdef QT_KEYPAD_MODE    if( qt_modalEditingEnabled ) {	d->orgTxt = text();    }#endif}/*! \reimpPasses wheel events to the vertical scrollbar.*/void QMultiLineEdit::wheelEvent( QWheelEvent *e ){    QApplication::sendEvent( verticalScrollBar(), e);}/*!  The key press event handler converts a key press to some line editor  action.  Here are the default key bindings when isReadOnly() is FALSE:  <ul>  <li><i> Left Arrow </i> Move the cursor one character leftwards  <li><i> Right Arrow </i> Move the cursor one character rightwards  <li><i> Up Arrow </i> Move the cursor one line upwards  <li><i> Down Arrow </i> Move the cursor one line downwards  <li><i> Page Up </i> Move the cursor one page upwards  <li><i> Page Down </i> Move the cursor one page downwards  <li><i> Backspace </i> Delete the character to the left of the cursor  <li><i> Home </i> Move the cursor to the beginning of the line  <li><i> End </i> Move the cursor to the end of the line  <li><i> Delete </i> Delete the character to the right of the cursor  <li><i> Shift - Left Arrow </i> Mark text one character leftwards  <li><i> Shift - Right Arrow </i> Mark text one character rightwards  <li><i> Control-A </i> Move the cursor to the beginning of the line  <li><i> Control-B </i> Move the cursor one character leftwards  <li><i> Control-C </i> Copy the marked text to the clipboard  <li><i> Control-D </i> Delete the character to the right of the cursor  <li><i> Control-E </i> Move the cursor to the end of the line  <li><i> Control-F </i> Move the cursor one character rightwards  <li><i> Control-H </i> Delete the character to the left of the cursor  <li><i> Control-K </i> Delete to end of line  <li><i> Control-N </i> Move the cursor one line downwards  <li><i> Control-P </i> Move the cursor one line upwards  <li><i> Control-V </i> Paste the clipboard text into line edit  <li><i> Control-X </i> Cut the marked text, copy to clipboard  <li><i> Control-Z </i> Undo the last operation  <li><i> Control-Y </i> Redo the last operation  <li><i> Control - Left Arrow </i> Move the cursor one word leftwards  <li><i> Control - Right Arrow </i> Move the cursor one word rightwards  <li><i> Control - Up Arrow </i> Move the cursor one word upwards  <li><i> Control - Down Arrow </i> Move the cursor one word downwards  <li><i> Control - Home Arrow </i> Move the cursor to the beginning of the text  <li><i> Control - End Arrow </i> Move the cursor to the end of the text  </ul>  In addition, the following key bindings are used on Windows:  <ul>  <li><i> Shift - Delete </i> Cut the marked text, copy to clipboard  <li><i> Shift - Insert </i> Paste the clipboard text into line edit  <li><i> Control - Insert </i> Copy the marked text to the clipboard  </ul>  All other keys with valid ASCII codes insert themselves into the line.  Here are the default key bindings when isReadOnly() is TRUE:  <ul>  <li><i> Left Arrow </i> Scrolls the table rightwards  <li><i> Right Arrow </i> Scrolls the table rightwards  <li><i> Up Arrow </i> Scrolls the table one line downwards  <li><i> Down Arrow </i> Scrolls the table one line upwards  <li><i> Page Up </i> Scrolls the table one page downwards  <li><i> Page Down </i> Scrolls the table one page upwards  <li><i> Control-C </i> Copy the marked text to the clipboard  </ul>*/void QMultiLineEdit::keyPressEvent( QKeyEvent *e ){#ifdef QT_KEYPAD_MODE    if( qt_modalEditingEnabled ) {	switch( e->key() ) {	    // two enters in a row to insert a return, one enter followed by any	    // other key to escape from modal mode	    case Key_Select:		setModalEditing( !isModalEditing() );		return;	    case Key_Back:	    case Key_No:		if ( !isModalEditing() ) {		    e->ignore();		    return;		}		break;	    default:		if ( !isModalEditing() ) {		    if ( e->text()[0].isPrint() ) {			setModalEditing( TRUE );			clear();		    } else {			e->ignore();			return;		    }		}	}    }#endif        textDirty = FALSE;    d->isHandlingEvent = TRUE;    int unknown = 0;    if ( readOnly ) {	int pageSize = viewHeight() / cellHeight();	switch ( e->key() ) {	case Key_Left:	    setXOffset( xOffset() - viewWidth()/10 );	    break;	case Key_Right:	    setXOffset( xOffset() + viewWidth()/10 );	    break;	case Key_Up:	    setTopCell( topCell() - 1 );	    break;	case Key_Down:	    setTopCell( topCell() + 1 );	    break;	case Key_Home:	    setCursorPosition(0,0, e->state() & ShiftButton );	    break;	case Key_End:	    setCursorPosition( numLines()-1, lineLength( numLines()-1 ),			       e->state() & ShiftButton );	    break;        case Key_Next:	    setTopCell( topCell() + pageSize );	    break;	case Key_Prior:	    setTopCell( QMAX( topCell() - pageSize, 0 ) );	    break;#ifndef QT_NO_CLIPBOARD	case Key_C:	    if ( echoMode() == Normal && (e->state()&ControlButton) )		copy();	    else		unknown++;	    break;	case Key_F16: // Copy key on Sun keyboards	    if ( echoMode() == Normal )		copy();	    else		unknown++;	    break;#endif	default:	    unknown++;	}	if ( unknown )	    e->ignore();	d->isHandlingEvent = FALSE;	return;    }    if ( e->text().length() &&	 e->key() != Key_Return &&	 e->key() != Key_Enter &&	 e->key() != Key_Delete &&	 e->key() != Key_Backspace &&#ifdef QT_KEYPAD_MODE	 e->key() != Key_Back &&	 e->key() != Key_No &&#endif	 (!e->ascii() || e->ascii()>=32)	 ) {	insert( e->text() );	//QApplication::sendPostedEvents( this, QEvent::Paint );	if ( textDirty )	    emit textChanged();	d->isHandlingEvent = FALSE;	return;    }    if ( e->state() & ControlButton ) {	switch ( e->key() ) {	case Key_A:	    home( e->state() & ShiftButton );	    break;	case Key_B:	    cursorLeft( e->state() & ShiftButton );	    break;#ifndef QT_NO_CLIPBOARD	case Key_C:	    if ( echoMode() == Normal )		copy();	    break;#endif	case Key_D:	    del();	    break;	case Key_E:	    end( e->state() & ShiftButton );	    break;	case Key_Left:	    cursorWordBackward( e->state() & ShiftButton );	    break;	case Key_Right:	    cursorWordForward( e->state() & ShiftButton );	    break;	case Key_Up:	    cursorUp( e->state() & ShiftButton );	    break;	case Key_Down:	    cursorDown( e->state() & ShiftButton );	    break;	case Key_Home:	    setCursorPosition(0,0, e->state() & ShiftButton );	    break;	case Key_End:	    setCursorPosition( numLines()-1, lineLength( numLines()-1 ),			       e->state() & ShiftButton );	    break;	case Key_F:	    cursorRight( e->state() & ShiftButton );	    break;	case Key_H:	    backspace();	    break;	case Key_K:	    killLine();	    break;	case Key_N:	    cursorDown( e->state() & ShiftButton );	    break;	case Key_P:	    cursorUp( e->state() & ShiftButton );	    break;#ifndef QT_NO_CLIPBOARD	case Key_V:	    paste();	    break;	case Key_X:	    cut();	    break;#endif	case Key_Z:	    undo();	    break;	case Key_Y:	    redo();	    break;#if defined (_WS_WIN_)	case Key_Insert:	    copy();#endif	default:	    unknown++;	}    } else {	switch ( e->key() ) {	case Key_Left:	    cursorLeft( e->state() & ShiftButton );	    break;	case Key_Right:	    cursorRight( e->state() & ShiftButton );	    break;	case Key_Up:	    cursorUp( e->state() & ShiftButton );	    break;	case Key_Down:	    cursorDown( e->state() & ShiftButton );	    break;#ifdef QT_KEYPAD_MODE	case Key_No:	    if( qt_modalEditingEnabled ) {		setText(d->orgTxt);		setModalEditing( FALSE );		setEdited(FALSE);	    } else {		unknown++;	    }	    break;#endif#ifdef QT_KEYPAD_MODE	case Key_Back:	    if (!e->isAutoRepeat()) {		if ( qt_modalEditingEnabled && !length() ) {		    setText(d->orgTxt);		    setEdited(FALSE);		    setModalEditing( FALSE );		} else if ( qt_modalEditingEnabled && d->deleteAllTimerId < 0) {		    d->deleteAllTimerId = startTimer(750);		} else if (!qt_modalEditingEnabled) {		    ++unknown;		}	    }	    break;#endif	case Key_Backspace:	    backspace();	    break;	case Key_Home:	    home( e->state() & ShiftButton );	    break;	case Key_End:	    end( e->state() & ShiftButton );	    break;	case Key_Delete:#if defined (_WS_WIN_)	    if ( e->state() & ShiftButton ) {		cut();		break;	    }#endif	    del();	    break;	case Key_Next:	    pageDown( e->state() & ShiftButton );	    break;	case Key_Prior:	    pageUp( e->state() & ShiftButton );	    break;	case Key_Enter:	case Key_Return:	    newLine();	    emit returnPressed();	    break;	case Key_Tab:	    insert( e->text() );	    break;#if defined (_WS_WIN_)	case Key_Insert:	    if ( e->state() & ShiftButton )		paste();	    else		unknown++;	    break;#endif	case Key_F14: // Undo key on Sun keyboards	    undo();	    break;#ifndef QT_NO_CLIPBOARD	case Key_F16: // Copy key on Sun keyboards	    if ( echoMode() == Normal )		copy();	    break;	case Key_F18: // Paste key on Sun keyboards	    paste();	    break;	case Key_F20: // Paste key on Sun keyboards	    cut();	    break;#endif	default:	    unknown++;	}    }    if ( textDirty )	emit textChanged();    if ( unknown )				// unknown key	e->ignore();#ifdef QT_KEYPAD_MODE    if( qt_modalEditingEnabled ) {	if (cursorY == numLines()-1 && lineLength(numLines()-1) != 0)	    d->extraNewLineCount = 0;    }#endif    d->isHandlingEvent = FALSE;}/*!  Moves the cursor one page down.  If \a mark is TRUE, the text  is marked.*/void QMultiLineEdit::pageDown( bool mark ){    bool oldAuto = autoUpdate();    if ( mark )	setAutoUpdate( FALSE );    if ( partiallyInvisible( cursorY ) )	cursorY = topCell();    int delta = cursorY - topCell();    int pageSize = viewHeight() / cellHeight();    int newTopCell = QMIN( topCell() + pageSize, numLines() - 1 - pageSize );    if ( pageSize >= numLines() ) { // quick fix to handle small texts	newTopCell = topCell();    }    if ( !curXPos )	curXPos = mapToView( cursorX, cursorY );    int oldY = cursorY;    if ( mark && !hasMarkedText() ) {	markAnchorX    = cursorX;	markAnchorY    = cursorY;    }    if ( newTopCell != topCell() ) {	cursorY = newTopCell + delta;	cursorX = mapFromView( curXPos, cursorY );	if ( mark )	    newMark( cursorX, cursorY, FALSE );	setTopCell( newTopCell );    } else if ( cursorY != (int)contents->count() - 1) { // just move the cursor	cursorY = QMIN( cursorY + pageSize, numLines() - 1);	cursorX = mapFromView( curXPos, cursorY );	if ( mark )	    newMark( cursorX, cursorY, FALSE );	makeVisible();    }    if ( oldAuto )	if ( mark ) {	    setAutoUpdate( TRUE );	    update();	} else {	    updateCell( oldY, 0, FALSE );	}    if ( !mark )	turnMark( FALSE );}/*!  Moves the cursor one page up.  If \a mark is TRUE, the text  is marked.*/void QMultiLineEdit::pageUp( bool mark ){    bool oldAuto = autoUpdate();    if ( mark )	setAutoUpdate( FALSE );    if ( partiallyInvisible( cursorY ) )	cursorY = topCell();    int delta = cursorY - topCell();    int pageSize = viewHeight() / cellHeight();    bool partial = delta == pageSize && viewHeight() != pageSize * cellHeight();    int newTopCell = QMAX( topCell() - pageSize, 0 );    if ( pageSize > numLines() ) { // quick fix to handle small texts	newTopCell = 0;	delta = 0;    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99热这里都是精品| 久久成人av少妇免费| 久久久久国产精品麻豆| 在线电影国产精品| 欧美日韩国产免费一区二区| 欧美午夜精品一区二区三区| 欧美视频在线观看一区二区| 色综合天天做天天爱| 色综合久久久久| 精品污污网站免费看| 在线观看免费一区| 欧美日韩国产电影| 欧美一级日韩不卡播放免费| 日韩午夜中文字幕| 久久亚洲精精品中文字幕早川悠里| 亚洲精品一区二区三区蜜桃下载| 欧美一区二区成人| 久久久久久日产精品| 久久久久久久久久久久久久久99| 精品国产一区二区精华| 国产视频一区在线观看 | 久久久久久久综合日本| 欧美精品一区二区三区四区| 精品国产乱码91久久久久久网站| 欧美国产视频在线| 国产精品久久久久久一区二区三区 | 亚洲综合色区另类av| 亚洲国产精品久久艾草纯爱| 亚洲成人av资源| 国产综合色在线| 国产激情视频一区二区在线观看| 日本韩国一区二区三区视频| 日韩欧美一区二区三区在线| 中文字幕亚洲一区二区va在线| 亚洲国产精品一区二区尤物区| 麻豆国产欧美日韩综合精品二区| 福利电影一区二区| 91精品福利视频| 欧美精品一区二区三区蜜臀| 亚洲欧美综合另类在线卡通| 久久国产精品无码网站| 91日韩一区二区三区| 精品国产伦一区二区三区观看体验 | 亚洲高清三级视频| 国产精品一区免费在线观看| 欧美乱妇15p| 综合久久久久久| 国产资源在线一区| 91精品国产综合久久国产大片 | 99免费精品视频| 欧美va亚洲va在线观看蝴蝶网| 国产午夜精品久久久久久免费视 | 555夜色666亚洲国产免| 中文字幕日韩av资源站| 国产在线乱码一区二区三区| 欧美日韩午夜在线视频| 自拍视频在线观看一区二区| 国产自产2019最新不卡| 日韩三级av在线播放| 丝袜亚洲另类欧美| 欧美色涩在线第一页| 亚洲视频免费观看| 国产成人av电影免费在线观看| 精品久久久久久亚洲综合网| 免费欧美在线视频| 日韩女优av电影在线观看| 亚洲高清一区二区三区| 欧美无乱码久久久免费午夜一区| 亚洲啪啪综合av一区二区三区| 国产91精品一区二区麻豆网站| 久久久久久免费网| 国产成人综合自拍| 中文字幕av一区二区三区| 国产精品123| 国产精品丝袜黑色高跟| 国产不卡视频在线播放| 亚洲国产精品精华液2区45| 国产99久久久精品| 国产精品美女视频| 99精品在线观看视频| 亚洲久本草在线中文字幕| 日本韩国精品在线| 午夜国产精品一区| 91精品国产综合久久蜜臀| 美国精品在线观看| 欧美精品一区二区在线观看| 国产真实乱子伦精品视频| 国产精品丝袜一区| 成人激情综合网站| 亚洲免费色视频| 欧美高清视频不卡网| 紧缚捆绑精品一区二区| 久久理论电影网| 国产成人综合在线| 亚洲精品中文在线| 欧美一级片在线看| 9i在线看片成人免费| 一区二区三区高清| 精品久久久久久久久久久久包黑料| 免费日本视频一区| 国产精品国产三级国产普通话99 | 无码av中文一区二区三区桃花岛| 91精品在线观看入口| 国产成人在线视频网址| 亚洲你懂的在线视频| 日韩欧美资源站| 成人黄色在线视频| 日本vs亚洲vs韩国一区三区二区 | 日本麻豆一区二区三区视频| 日韩精品一区国产麻豆| 91亚洲男人天堂| 日韩激情一二三区| 亚洲欧洲av另类| 精品久久久久香蕉网| 色婷婷综合久久久久中文一区二区 | 国产亚洲精品免费| 欧美性猛片aaaaaaa做受| 国内久久婷婷综合| 亚洲妇女屁股眼交7| 欧美激情一区二区| 日韩精品一区二区三区三区免费| 99久久精品情趣| 韩国视频一区二区| 午夜a成v人精品| 亚洲丝袜自拍清纯另类| 精品成人一区二区三区四区| 欧美在线免费播放| 99在线精品免费| 国产真实精品久久二三区| 亚洲成人福利片| 亚洲精品菠萝久久久久久久| 国产日韩亚洲欧美综合| 欧美一区二区三区在线| 91黄色免费版| 91网站黄www| 不卡视频一二三| 国产ts人妖一区二区| 男人的天堂久久精品| 午夜私人影院久久久久| 亚洲色图欧美在线| 亚洲国产成人午夜在线一区| 久久色在线视频| 精品少妇一区二区三区在线视频| 欧美区视频在线观看| 色偷偷久久人人79超碰人人澡| av成人免费在线观看| 丁香网亚洲国际| 高清在线不卡av| 成人网在线播放| 成年人午夜久久久| 99在线热播精品免费| 成人免费av网站| k8久久久一区二区三区| 波多野结衣一区二区三区| 成人a区在线观看| av电影天堂一区二区在线| 91亚洲国产成人精品一区二三| 成人av高清在线| 色综合久久久久综合体| 欧美综合天天夜夜久久| 欧美午夜一区二区三区免费大片| 日本va欧美va瓶| 午夜影院在线观看欧美| 日韩高清一区在线| 麻豆国产精品777777在线| 激情六月婷婷久久| 懂色av一区二区在线播放| 99国产精品久久| 国产91丝袜在线18| 亚洲男同1069视频| 无码av中文一区二区三区桃花岛| 日本aⅴ精品一区二区三区| 国内精品免费在线观看| 成人在线视频一区| 欧美性xxxxxxxx| 精品国产在天天线2019| 亚洲成人精品一区二区| 欧美激情在线看| 亚洲最新在线观看| 日韩二区在线观看| 高清日韩电视剧大全免费| 在线视频中文字幕一区二区| 欧美日韩在线观看一区二区| 欧美成人精品1314www| 国产精品久久久久久久久图文区 | 亚洲观看高清完整版在线观看| 欧美a级理论片| 激情丁香综合五月| 成人sese在线| 亚洲男人电影天堂| 麻豆一区二区99久久久久| 99久久精品情趣| 欧美日韩一区二区欧美激情 | 国产91在线观看丝袜| 色欧美乱欧美15图片| 亚洲精品在线网站| 亚洲影视在线观看| 成人性生交大片免费看视频在线 | 亚洲资源中文字幕| 国产一区欧美二区|