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

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

?? qlabel.cpp

?? qt-x11-opensource-src-4.1.4.tar.gz源碼
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
/******************************************************************************** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.**** This file is part of the QtGui module of the Qt Toolkit.**** This file may be used under the terms of the GNU General Public** License version 2.0 as published by the Free Software Foundation** and appearing in the file LICENSE.GPL included in the packaging of** this file.  Please review the following information to ensure GNU** General Public Licensing requirements will be met:** http://www.trolltech.com/products/qt/opensource.html**** If you are unsure which license is appropriate for your use, please** review the following information:** http://www.trolltech.com/products/qt/licensing.html or contact the** sales department at sales@trolltech.com.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************/#include "qlabel.h"#include "qpainter.h"#include "qevent.h"#include "qdrawutil.h"#include "qmovie.h"#include "qimage.h"#include "qbitmap.h"#include "qpicture.h"#include "qapplication.h"#include "qtextdocument.h"#include "qabstractbutton.h"#include "qstyle.h"#include "qstyleoption.h"#include "qframe_p.h"#include <limits.h>#include "../text/qtextdocumentlayout_p.h"class QLabelPrivate : public QFramePrivate{    Q_DECLARE_PUBLIC(QLabel)public:    QLabelPrivate()        : img(0), pix(0), valid_hints(false), margin(0)    {}    void init();    void clearContents();    void updateLabel();    QSize sizeForWidth(int w) const;    QImage* img; // for scaled contents    QPixmap* pix; // for scaled contents    mutable QSize sh;    mutable QSize msh;    mutable bool valid_hints;    int margin;    QString ltext;    QPixmap *lpixmap;#ifndef QT_NO_PICTURE    QPicture *lpicture;#endif#ifndef QT_NO_MOVIE    QMovie *lmovie;    void _q_movieUpdated(const QRect&);    void _q_movieResized(const QSize&);#endif    QPointer<QWidget> lbuddy;    int shortcutId;    ushort align;    short extraMargin;    uint scaledcontents :1;    Qt::TextFormat textformat;    QTextDocument* doc;};/*!    \class QLabel    \brief The QLabel widget provides a text or image display.    \ingroup basic    \ingroup text    \mainclass    QLabel is used for displaying text or an image. No user    interaction functionality is provided. The visual appearance of    the label can be configured in various ways, and it can be used    for specifying a focus mnemonic key for another widget.    A QLabel can contain any of the following content types:    \table    \header \o Content \o Setting    \row \o Plain text         \o Pass a QString to setText().    \row \o Rich text         \o Pass a QString that contains rich text to setText().    \row \o A pixmap         \o Pass a QPixmap to setPixmap().    \row \o A movie         \o Pass a QMovie to setMovie().    \row \o A number         \o Pass an \e int or a \e double to setNum(), which converts            the number to plain text.    \row \o Nothing         \o The same as an empty plain text. This is the default. Set            by clear().    \endtable    When the content is changed using any of these functions, any    previous content is cleared.    The look of a QLabel can be tuned in several ways. All the    settings of QFrame are available for specifying a widget frame.    The positioning of the content within the QLabel widget area can    be tuned with setAlignment() and setIndent(). Text content can    also wrap lines along word bounderies with setWordWrap(). For    example, this code sets up a sunken panel with a two-line text in    the bottom right corner (both lines being flush with the right    side of the label):    \code    QLabel *label = new QLabel(this);    label->setFrameStyle(QFrame::Panel | QFrame::Sunken);    label->setText("first line\nsecond line");    label->setAlignment(Qt::AlignBottom | Qt::AlignRight);    \endcode    A QLabel is often used as a label for an interactive widget. For    this use QLabel provides a useful mechanism for adding an    mnemonic (see QKeysequence) that will set the keyboard focus to    the other widget (called the QLabel's "buddy"). For example:    \code    QLineEdit* phoneEdit = new QLineEdit(this);    QLabel* phoneLabel = new QLabel("&Phone:", this);    phoneLabel->setBuddy(phoneEdit);    \endcode    In this example, keyboard focus is transferred to the label's    buddy (the QLineEdit) when the user presses Alt+P. If the buddy    was a button (inheriting from QAbstractButton), triggering the    mnemonic would emulate a button click.    \table 100%    \row    \o \inlineimage macintosh-label.png Screenshot of a Macintosh style label    \o A label shown in the \l{Macintosh Style Widget Gallery}{Macintosh widget style}.    \row    \o \inlineimage plastique-label.png Screenshot of a Plastique style label    \o A label shown in the \l{Plastique Style Widget Gallery}{Plastique widget style}.    \row    \o \inlineimage windowsxp-label.png Screenshot of a Windows XP style label    \o A label shown in the \l{Windows XP Style Widget Gallery}{Windows XP widget style}.    \endtable    \sa QLineEdit, QTextEdit, QPixmap, QMovie,        {fowler}{GUI Design Handbook: Label}*/#ifndef QT_NO_PICTURE/*!    Returns the label's picture or 0 if the label doesn't have a    picture.*/const QPicture *QLabel::picture() const{    Q_D(const QLabel);    return d->lpicture;}#endif/*!    Constructs an empty label.    The \a parent and widget flag \a f, arguments are passed    to the QFrame constructor.    \sa setAlignment(), setFrameStyle(), setIndent()*/QLabel::QLabel(QWidget *parent, Qt::WFlags f)    : QFrame(*new QLabelPrivate(), parent, f){    Q_D(QLabel);    d->init();}/*!    Constructs a label that displays the text, \a text.    The \a parent and widget flag \a f, arguments are passed    to the QFrame constructor.    \sa setText(), setAlignment(), setFrameStyle(), setIndent()*/QLabel::QLabel(const QString &text, QWidget *parent, Qt::WFlags f)        : QFrame(*new QLabelPrivate(), parent, f){    Q_D(QLabel);    d->init();    setText(text);}#ifdef QT3_SUPPORT/*! \obsolete    Constructs an empty label.    The \a parent, \a name and widget flag \a f, arguments are passed    to the QFrame constructor.    \sa setAlignment(), setFrameStyle(), setIndent()*/QLabel::QLabel(QWidget *parent, const char *name, Qt::WFlags f)    : QFrame(*new QLabelPrivate(), parent, f){    Q_D(QLabel);    if (name)        setObjectName(QString::fromAscii(name));    d->init();}/*! \obsolete    Constructs a label that displays the text, \a text.    The \a parent, \a name and widget flag \a f, arguments are passed    to the QFrame constructor.    \sa setText(), setAlignment(), setFrameStyle(), setIndent()*/QLabel::QLabel(const QString &text, QWidget *parent, const char *name,                Qt::WFlags f)        : QFrame(*new QLabelPrivate(), parent, f){    Q_D(QLabel);    if (name)        setObjectName(QString::fromAscii(name));    d->init();    setText(text);}/*! \obsolete    Constructs a label that displays the text \a text. The label has a    buddy widget, \a buddy.    If the \a text contains an underlined letter (a letter preceded by    an ampersand, \&), and the text is in plain text format, when the    user presses Alt+ the underlined letter, focus is passed to the    buddy widget.    The \a parent, \a name and widget flag, \a f, arguments are passed    to the QFrame constructor.    \sa setText(), setBuddy(), setAlignment(), setFrameStyle(),    setIndent()*/QLabel::QLabel(QWidget *buddy, const QString &text,                QWidget *parent, const char *name, Qt::WFlags f)    : QFrame(*new QLabelPrivate(), parent, f){    Q_D(QLabel);    if (name)        setObjectName(QString::fromAscii(name));    d->init();    setBuddy(buddy);    setText(text);}#endif //QT3_SUPPORT/*!    Destroys the label.*/QLabel::~QLabel(){    Q_D(QLabel);    d->clearContents();}void QLabelPrivate::init(){    Q_Q(QLabel);    lpixmap = 0;#ifndef QT_NO_MOVIE    lmovie = 0;#endif    shortcutId = 0;    lpixmap = 0;#ifndef QT_NO_PICTURE    lpicture = 0;#endif    align = Qt::AlignLeft | Qt::AlignVCenter | Qt::TextExpandTabs;    extraMargin = -1;    scaledcontents = false;    textformat = Qt::AutoText;    doc = 0;    q->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred));}/*!    \property QLabel::text    \brief the label's text    If no text has been set this will return an empty string. Setting    the text clears any previous content.    The text will be interpreted either as plain text or as rich    text, depending on the text format setting; see setTextFormat().    The default setting is Qt::AutoText; i.e. QLabel will try to    auto-detect the format of the text set.    If the text is interpreted as a plain text and a buddy has been    set, the buddy mnemonic key is updated from the new text.    The label resizes itself if auto-resizing is enabled.    Note that QLabel is well-suited to display small rich text    documents, such as small documents that get their document    specific settings (font, text color, link color) from the label's    palette and font properties. For large documents, use QTextEdit    in read-only mode instead. QTextEdit can also provide a scrollbar    when necessary.    \sa setTextFormat(), setBuddy(), alignment*/void QLabel::setText(const QString &text){    Q_D(QLabel);    if (d->ltext == text)        return;    d->clearContents();    d->ltext = text;    if (d->textformat == Qt::RichText        || ((d->textformat == Qt::AutoText) && Qt::mightBeRichText(d->ltext))) {        if (!d->doc)            d->doc = new QTextDocument();        d->doc->setUndoRedoEnabled(false);        d->doc->setDefaultFont(font());        d->doc->setHtml(d->ltext);    }    d->updateLabel();}QString QLabel::text() const{    Q_D(const QLabel);    return d->ltext;}/*!    Clears any label contents.*/void QLabel::clear(){    Q_D(QLabel);    d->clearContents();    d->updateLabel();}/*!    \property QLabel::pixmap    \brief the label's pixmap    If no pixmap has been set this will return an invalid pixmap.    Setting the pixmap clears any previous content. The buddy    shortcut, if any, is disabled.*/void QLabel::setPixmap(const QPixmap &pixmap){    Q_D(QLabel);    if (!d->lpixmap || d->lpixmap->serialNumber() != pixmap.serialNumber()) {        d->clearContents();        d->lpixmap = new QPixmap(pixmap);    }    if (d->lpixmap->depth() == 1 && !d->lpixmap->mask())        d->lpixmap->setMask(*((QBitmap *)d->lpixmap));    d->updateLabel();}const QPixmap *QLabel::pixmap() const{    Q_D(const QLabel);    return d->lpixmap;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美视频在线观看| 色噜噜狠狠色综合中国| 欧美精品一区二区蜜臀亚洲| 免费在线观看日韩欧美| 7878成人国产在线观看| 日韩激情在线观看| 欧美大片免费久久精品三p| 久久福利视频一区二区| 久久久噜噜噜久久中文字幕色伊伊| 免费成人美女在线观看| www久久精品| 岛国av在线一区| 中文字幕在线观看一区| 一本一本大道香蕉久在线精品| 亚洲女与黑人做爰| 欧美日韩中字一区| 捆绑紧缚一区二区三区视频| 久久综合久久综合亚洲| 成人福利视频在线看| 亚洲一区二区三区在线看| 91麻豆精品国产无毒不卡在线观看| 久久精品国产亚洲5555| 欧美韩日一区二区三区四区| 一本久道中文字幕精品亚洲嫩| 亚洲国产成人精品视频| 精品国产一区久久| 一本色道久久综合狠狠躁的推荐 | 久久99国产乱子伦精品免费| 中文字幕+乱码+中文字幕一区| 日本韩国精品在线| 蜜桃免费网站一区二区三区| 国产精品人人做人人爽人人添| 欧美在线视频不卡| 国产一区二区在线视频| 亚洲精品久久嫩草网站秘色| 日韩精品影音先锋| 91色.com| 国产一区二区三区观看| 一区二区三区欧美日| 久久这里只有精品6| 91啪亚洲精品| 黄网站免费久久| 一区二区三区四区不卡在线 | 亚洲国产精品自拍| 欧美国产日本韩| 欧美日本在线观看| 北条麻妃国产九九精品视频| 偷窥少妇高潮呻吟av久久免费| 欧美国产日韩精品免费观看| 欧美一区二视频| 97成人超碰视| 亚洲高清在线精品| 亚洲一区二区三区在线| 国产亚洲一二三区| 在线不卡中文字幕| 色天使久久综合网天天| 国产精品自拍一区| 麻豆一区二区三| 亚洲综合免费观看高清完整版| 国产午夜精品久久久久久久| 91精品免费在线| 91福利在线免费观看| 高清不卡一区二区在线| 久草在线在线精品观看| 香蕉成人啪国产精品视频综合网| 国产精品三级视频| 久久久久久久久久久99999| 欧美一级日韩免费不卡| 欧美色图在线观看| 91在线国产福利| 成人免费看的视频| 国产成人免费视频| 国产在线视频一区二区三区| 日本不卡一二三| 丝瓜av网站精品一区二区| 一区二区三区欧美| 亚洲曰韩产成在线| 亚洲男女毛片无遮挡| 亚洲视频一区在线观看| 亚洲日穴在线视频| 中文字幕色av一区二区三区| 国产精品久久久久婷婷| 国产精品丝袜一区| 国产精品欧美经典| 亚洲人成在线播放网站岛国| 中文字幕视频一区| 亚洲男人的天堂一区二区| 亚洲综合色噜噜狠狠| 洋洋成人永久网站入口| 一区二区三区在线观看视频| 亚洲国产欧美日韩另类综合 | 69堂成人精品免费视频| 欧美一区二区视频在线观看2020 | 国产日韩欧美不卡| 国产精品黄色在线观看| 亚洲日本一区二区| 亚洲国产毛片aaaaa无费看| 日韩精品每日更新| 琪琪久久久久日韩精品| 国产另类ts人妖一区二区| 成人av资源下载| 91久久精品一区二区| 宅男在线国产精品| 久久理论电影网| 国产精品婷婷午夜在线观看| 中文字幕日韩一区二区| 樱花草国产18久久久久| av男人天堂一区| 亚洲mv在线观看| 免费成人在线观看视频| 亚洲综合成人在线视频| 日韩av二区在线播放| 久久精品国产免费| 韩国理伦片一区二区三区在线播放| 国产尤物一区二区在线| 国产精品一二三| 91美女在线视频| 欧美日韩日本视频| 91精品国产综合久久久久久久久久 | 美女视频黄a大片欧美| 久久99国产精品免费| 国产东北露脸精品视频| 91视频.com| 欧美在线不卡视频| 欧美一区二区三区在线观看视频| 91精品国产综合久久久久| 国产喷白浆一区二区三区| 亚洲欧美精品午睡沙发| 午夜影院久久久| 韩国成人福利片在线播放| 成人中文字幕电影| 一本色道久久综合亚洲91| 6080国产精品一区二区| 久久精品水蜜桃av综合天堂| 亚洲久本草在线中文字幕| 日韩av高清在线观看| 粉嫩高潮美女一区二区三区| 日本韩国一区二区三区视频| 91精品福利在线一区二区三区 | 亚洲日本在线a| 精品伊人久久久久7777人| 成人综合激情网| 欧美日本在线视频| 国产精品久久精品日日| 亚洲成a人片在线不卡一二三区| 国产一级精品在线| 欧洲激情一区二区| 26uuu久久综合| 国产精品美女久久久久久2018| 美国毛片一区二区| 日本丶国产丶欧美色综合| 久久久一区二区三区捆绑**| 亚洲图片自拍偷拍| 国产suv一区二区三区88区| 欧美三级电影一区| 中文乱码免费一区二区| 色美美综合视频| 欧美在线播放高清精品| 国产日韩欧美高清| 久久99热99| 91在线视频官网| 国产精品高潮呻吟| 国产一区二区三区日韩| 欧美色区777第一页| ...中文天堂在线一区| 丝袜美腿高跟呻吟高潮一区| 欧美日韩国产首页| 国产精品短视频| 国产电影一区在线| 日韩精品一区二区三区四区视频| 亚洲欧美激情一区二区| www.在线欧美| 亚洲国产精品成人综合| 国产在线观看免费一区| 91麻豆精品国产91久久久久久久久 | 波波电影院一区二区三区| 久久先锋影音av| 午夜影院久久久| 日韩欧美中文一区二区| 午夜激情一区二区| 欧美日韩综合在线| 亚洲尤物视频在线| 色欧美88888久久久久久影院| 国产精品久久久久久久久果冻传媒 | 免费成人在线视频观看| 欧美久久久一区| 日韩国产精品91| 欧美久久久久久蜜桃| 婷婷亚洲久悠悠色悠在线播放 | 亚洲电影一区二区| 欧美中文字幕一区二区三区亚洲 | 亚洲成人精品在线观看| 精品视频免费在线| 日本视频免费一区| 欧美一区二区三区四区久久 | 久久亚洲免费视频| 国产又黄又大久久| 亚洲人成网站影音先锋播放| 色综合久久综合网欧美综合网| 一区二区三区加勒比av|