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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? qlabel.cpp

?? qt-x11-opensource-src-4.1.4.tar.gz源碼
?? CPP
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/******************************************************************************** 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;}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区免费在线观看| 丝瓜av网站精品一区二区| 国产亚洲欧美日韩在线一区| 一区二区三区 在线观看视频| 欧美电视剧在线观看完整版| 精品日韩成人av| 亚洲高清三级视频| 国产suv精品一区二区三区| 色综合视频在线观看| 精品剧情在线观看| 亚洲永久免费视频| 9色porny自拍视频一区二区| 久久久综合精品| 日本vs亚洲vs韩国一区三区二区 | 国产成a人亚洲| 日韩美女一区二区三区四区| 亚洲综合视频在线| 91免费精品国自产拍在线不卡| 久久精品夜夜夜夜久久| 久久精工是国产品牌吗| 在线不卡免费av| 亚洲午夜成aⅴ人片| 91免费看视频| 综合久久国产九一剧情麻豆| 处破女av一区二区| 国产婷婷色一区二区三区在线| 精品亚洲成a人| 日韩欧美一区电影| 另类小说视频一区二区| 日韩欧美一二三四区| 美女视频一区在线观看| 欧美一区二区三区在线观看| 日韩精品电影一区亚洲| 欧美久久久影院| 免费在线欧美视频| 日韩一卡二卡三卡四卡| 久久99国产精品麻豆| 欧美一区二区三区思思人| 三级一区在线视频先锋| 欧美三级资源在线| 亚洲成人综合在线| 欧美美女直播网站| 奇米影视一区二区三区小说| 精品国产亚洲在线| 国产成人99久久亚洲综合精品| 国产精品免费网站在线观看| 91啪亚洲精品| 亚洲成人资源网| 欧美一二三四区在线| 国产乱对白刺激视频不卡| 中文字幕国产精品一区二区| 91亚洲精品久久久蜜桃| 亚洲一区电影777| 日韩精品最新网址| 国产成人免费9x9x人网站视频| 中文字幕亚洲在| 欧美日韩在线亚洲一区蜜芽| 蓝色福利精品导航| 国产欧美一区二区精品性| 91天堂素人约啪| 日本中文字幕一区二区有限公司| 日韩精品资源二区在线| 国产露脸91国语对白| 国产精品久久久久aaaa樱花| 精品1区2区3区| 国产精品亚洲一区二区三区妖精| 亚洲激情自拍偷拍| 日韩免费看网站| 91视频在线观看| 久久国产日韩欧美精品| 亚洲天天做日日做天天谢日日欢| 欧美日韩不卡视频| 国产综合久久久久影院| 亚洲视频一区二区在线| 日韩一区二区影院| 在线欧美一区二区| 国产精品一品视频| 亚洲18色成人| 中文字幕日韩欧美一区二区三区| 欧美日韩一卡二卡| 成人免费毛片aaaaa**| 丝袜美腿亚洲一区| 亚洲美女在线国产| 日本一区二区免费在线观看视频| 欧美性videosxxxxx| 国产传媒一区在线| 美女网站色91| 偷拍与自拍一区| 亚洲精品中文在线影院| 国产亚洲欧美中文| 日韩视频在线你懂得| 在线观看网站黄不卡| yourporn久久国产精品| 精品一区在线看| 亚洲综合偷拍欧美一区色| 26uuu亚洲综合色欧美| 欧美久久久一区| 欧美亚洲尤物久久| 99久久久无码国产精品| 国产成人激情av| 国产麻豆午夜三级精品| 精品国产乱码久久久久久蜜臀| 欧美性做爰猛烈叫床潮| 91色porny蝌蚪| 国产福利精品一区| 国产呦萝稀缺另类资源| 九色综合狠狠综合久久| 麻豆精品新av中文字幕| 日本vs亚洲vs韩国一区三区 | 亚洲电影一区二区三区| 亚洲图片欧美激情| 国产欧美一区二区精品性| 久久九九影视网| 国产欧美综合色| 中文av一区特黄| 国产精品久久精品日日| 国产精品狼人久久影院观看方式| 亚洲国产精品成人综合| 国产夜色精品一区二区av| 久久久久久亚洲综合| 国产午夜精品美女毛片视频| 久久亚洲综合av| 国产精品丝袜一区| 欧美精品一区二区不卡| 久久久高清一区二区三区| 26uuu久久天堂性欧美| www国产精品av| 国产三级三级三级精品8ⅰ区| 久久视频一区二区| 亚洲综合免费观看高清完整版在线| 91一区二区三区在线观看| 成人午夜av在线| www.亚洲激情.com| 国产成人在线视频网址| 国产精品1区2区3区在线观看| 国产精品911| 99国产精品一区| 在线播放视频一区| 久久精品综合网| 亚洲精品亚洲人成人网| 亚洲午夜精品在线| 日本成人在线网站| 麻豆视频观看网址久久| 亚洲国产综合色| 黄网站免费久久| 91美女福利视频| 日韩视频中午一区| 国产欧美日韩卡一| 一区二区三区四区蜜桃| 免费成人在线影院| 国产精品一区在线| 欧美日韩一区二区三区不卡| 精品国内二区三区| 99久久综合狠狠综合久久| 久久久久国产一区二区三区四区| 亚洲成人激情自拍| 日本伊人精品一区二区三区观看方式| 国产精品 日产精品 欧美精品| www.欧美色图| 日韩一区二区精品在线观看| 国产欧美日韩视频在线观看| 亚洲一区二区av在线| 国产成人综合自拍| 91精品国产91久久久久久最新毛片 | 久久99精品久久久| 色呦呦一区二区三区| 日韩一卡二卡三卡| 亚洲免费在线播放| 韩国女主播一区| 91免费版在线| 国产婷婷色一区二区三区在线| 亚洲18影院在线观看| 成人免费毛片高清视频| 亚洲精品一区二区三区影院| 一区二区三区中文免费| 国产传媒日韩欧美成人| 91精品国产高清一区二区三区 | 黄页网站大全一区二区| 欧美偷拍一区二区| 国产精品国产三级国产aⅴ原创 | 欧美日韩日日摸| 中文欧美字幕免费| 国产成人精品网址| 精品久久久久久久人人人人传媒| 亚洲国产成人91porn| 91麻豆自制传媒国产之光| 欧美国产一区二区| 国产在线国偷精品产拍免费yy| 91精品国产综合久久久久久久| 亚洲愉拍自拍另类高清精品| 成人黄色电影在线| 国产欧美在线观看一区| 国内精品伊人久久久久影院对白| 91精品欧美一区二区三区综合在| 一区二区三区日韩在线观看| 99久久综合国产精品| 中文av字幕一区| 91丝袜国产在线播放| 中文字幕亚洲视频| 成人三级伦理片|