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

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

?? qlabel.cpp

?? qt-x11-opensource-src-4.1.4.tar.gz源碼
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
#ifndef QT_NO_PICTURE/*!    Sets the label contents to \a picture. Any previous content is    cleared.    The buddy shortcut, if any, is disabled.    \sa picture(), setBuddy()*/void QLabel::setPicture(const QPicture &picture){    Q_D(QLabel);    d->clearContents();    d->lpicture = new QPicture(picture);    d->updateLabel();}#endif // QT_NO_PICTURE/*!    Sets the label contents to plain text containing the textual    representation of integer \a num. Any previous content is cleared.    Does nothing if the integer's string representation is the same as    the current contents of the label.    The buddy shortcut, if any, is disabled.    The label resizes itself if auto-resizing is enabled.    \sa setText(), QString::setNum(), setBuddy()*/void QLabel::setNum(int num){    QString str;    str.setNum(num);        setText(str);}/*!    \overload    Sets the label contents to plain text containing the textual    representation of double \a num. Any previous content is cleared.    Does nothing if the double's string representation is the same as    the current contents of the label.    The buddy shortcut, if any, is disabled.    The label resizes itself if auto-resizing is enabled.    \sa setText(), QString::setNum(), setBuddy()*/void QLabel::setNum(double num){    QString str;    str.setNum(num);        setText(str);}/*!    \property QLabel::alignment    \brief the alignment of the label's contents    \sa text*/void QLabel::setAlignment(Qt::Alignment alignment){    Q_D(QLabel);    if (alignment == (d->align & (Qt::AlignVertical_Mask|Qt::AlignHorizontal_Mask)))        return;    d->align = (d->align & ~(Qt::AlignVertical_Mask|Qt::AlignHorizontal_Mask))               | (alignment & (Qt::AlignVertical_Mask|Qt::AlignHorizontal_Mask));    d->updateLabel();}#ifdef QT3_SUPPORT/*!    Use setAlignment(Qt::Alignment) instead.    If \a alignment specifies text flags as well, use setTextFormat()    to set those.*/void QLabel::setAlignment(int alignment){    Q_D(QLabel);    d->align = alignment & ~(Qt::AlignVertical_Mask|Qt::AlignHorizontal_Mask|Qt::TextWordWrap);#ifndef QT_NO_SHORTCUT    if (d->lbuddy)        d->align |= Qt::TextShowMnemonic;#endif    setAlignment(Qt::Alignment(QFlag(alignment)));}#endifQt::Alignment QLabel::alignment() const{    Q_D(const QLabel);    return QFlag(d->align & (Qt::AlignVertical_Mask|Qt::AlignHorizontal_Mask));}/*!    \property QLabel::wordWrap    \brief the label's word-wrapping policy    If this property is true then label text is wrapped where    necessary at word-breaks; otherwise it is not wrapped at all.*/void QLabel::setWordWrap(bool on){    Q_D(QLabel);    if (on)        d->align |= Qt::TextWordWrap;    else        d->align &= ~Qt::TextWordWrap;    d->updateLabel();}bool QLabel::wordWrap() const{    Q_D(const QLabel);    return d->align & Qt::TextWordWrap;}/*!    \property QLabel::indent    \brief the label's text indent in pixels    If a label displays text, the indent applies to the left edge if    alignment() is Qt::AlignLeft, to the right edge if alignment() is    Qt::AlignRight, to the top edge if alignment() is Qt::AlignTop, and    to to the bottom edge if alignment() is Qt::AlignBottom.    If indent is negative, or if no indent has been set, the label    computes the effective indent as follows: If frameWidth() is 0,    the effective indent becomes 0. If frameWidth() is greater than 0,    the effective indent becomes half the width of the "x" character    of the widget's current font().    \sa alignment, margin, frameWidth(), font()*/void QLabel::setIndent(int indent){    Q_D(QLabel);    d->extraMargin = indent;    d->updateLabel();}int QLabel::indent() const{    Q_D(const QLabel);    return d->extraMargin;}/*!    \property QLabel::margin    \brief the width of the margin    The margin is the distance between the innermost pixel of the    frame and the outermost pixel of contents.    The default margin is 0.    \sa indent*/int QLabel::margin() const{    Q_D(const QLabel);    return d->margin;}void QLabel::setMargin(int margin){    Q_D(QLabel);    if (d->margin == margin)        return;    d->margin = margin;    d->updateLabel();}/*!    Returns the size that will be used if the width of the label is \a    w. If \a w is -1, the sizeHint() is returned.*/QSize QLabelPrivate::sizeForWidth(int w) const{    Q_Q(const QLabel);    QSize contentsMargin(leftmargin + rightmargin, topmargin + bottommargin);    w -= contentsMargin.width();    QRect br;    QPixmap *pix = lpixmap;#ifndef QT_NO_PICTURE    QPicture *pic = lpicture;#else    const int pic = 0;#endif#ifndef QT_NO_MOVIE    QMovie *mov = lmovie;#else    const int mov = 0;#endif    int hextra = 2 * margin;    int vextra = hextra;    QFontMetrics fm(q->fontMetrics());    int xw = fm.width('x');    if (!mov && !pix && !pic) {        int m = extraMargin;        if (m < 0 && frameWidth) // no indent, but we do have a frame            m = (xw / 2 - margin) * 2;        if (m >= 0) {            int align = QStyle::visualAlignment(q->layoutDirection(), QFlag(this->align));            if ((align & Qt::AlignLeft) || (align & Qt::AlignRight))                hextra += m;            if ((align & Qt::AlignTop) || (align & Qt::AlignBottom))                vextra += m;        }    }    if (pix)        br = pix->rect();#ifndef QT_NO_PICTURE    else if (pic)        br = pic->boundingRect();#endif#ifndef QT_NO_MOVIE    else if (mov)        br = mov->currentPixmap().rect();#endif    else if (doc) {        QTextDocumentLayout *layout = qobject_cast<QTextDocumentLayout *>(doc->documentLayout());        Q_ASSERT(layout);        if (align & Qt::TextWordWrap) {            if (w > 0)                doc->setPageSize(QSize(w-hextra, INT_MAX));            else                layout->adjustSize();        } else {            doc->setPageSize(QSize(0, 100000));        }        br = QRect(QPoint(0, 0), layout->documentSize().toSize());    }    else {        bool tryWidth = (w < 0) && (align & Qt::TextWordWrap);        if (tryWidth)            w = xw * 80;        else if (w < 0)            w = 2000;        w -= hextra;        QString text = q->text();        br = fm.boundingRect(0, 0, w ,2000, align, text);        if (tryWidth && br.height() < 4*fm.lineSpacing() && br.width() > w/2)            br = fm.boundingRect(0, 0, w/2, 2000, align, text);        if (tryWidth && br.height() < 2*fm.lineSpacing() && br.width() > w/4)            br = fm.boundingRect(0, 0, w/4, 2000, align, text);    }    int wid = br.width() + hextra;    int hei = br.height() + vextra;    return QSize(wid, hei) + contentsMargin;}/*!  \reimp*/int QLabel::heightForWidth(int w) const{    Q_D(const QLabel);    if (        d->doc ||        (d->align & Qt::TextWordWrap))        return d->sizeForWidth(w).height();    return QWidget::heightForWidth(w);}/*!\reimp*/QSize QLabel::sizeHint() const{    Q_D(const QLabel);    if (!d->valid_hints)        (void) QLabel::minimumSizeHint();    return d->sh;}/*!  \reimp*/QSize QLabel::minimumSizeHint() const{    Q_D(const QLabel);    if (d->valid_hints)        return d->msh;    ensurePolished();    d->valid_hints = true;    d->sh = d->sizeForWidth(-1);    QSize sz(-1, -1);    if (         !d->doc &&         (d->align & Qt::TextWordWrap) == 0) {        sz = d->sh;    } else {        // think about caching these for performance        sz.rwidth() = d->sizeForWidth(0).width();        sz.rheight() = d->sizeForWidth(QWIDGETSIZE_MAX).height();        if (d->sh.height() < sz.height())            sz.rheight() = d->sh.height();    }    if (sizePolicy().horizontalPolicy() == QSizePolicy::Ignored)        sz.rwidth() = -1;    if (sizePolicy().verticalPolicy() == QSizePolicy::Ignored)        sz.rheight() = -1;    d->msh = sz;    return sz;}/*!\reimp*/bool QLabel::event(QEvent *e){    Q_D(QLabel);    if (e->type() == QEvent::Shortcut) {        QShortcutEvent *se = static_cast<QShortcutEvent *>(e);        if (se->shortcutId() == d->shortcutId) {            QWidget * w = d->lbuddy;            QAbstractButton *button = qobject_cast<QAbstractButton *>(w);            if (w->focusPolicy() != Qt::NoFocus)                w->setFocus(Qt::ShortcutFocusReason);            if (button && !se->isAmbiguous())                button->animateClick();            else                window()->setAttribute(Qt::WA_KeyboardFocusChange);            return true;        }    }    return QFrame::event(e);}/*!\reimp*/void QLabel::paintEvent(QPaintEvent *){    Q_D(QLabel);    QStyle *style = QWidget::style();    QPainter paint(this);    drawFrame(&paint);    QRect cr = contentsRect();    cr.adjust(d->margin, d->margin, -d->margin, -d->margin);    QPixmap pix;    if (pixmap())        pix = *pixmap();#ifndef QT_NO_PICTURE    const QPicture *pic = picture();#else    const int pic = 0;#endif#ifndef QT_NO_MOVIE    const QMovie *mov = movie();#else    const int mov = 0;#endif    int align = QStyle::visualAlignment(layoutDirection(), QFlag(d->align));    if (!mov && !pix && !pic) {        int m = indent();        if (m < 0 && frameWidth()) // no indent, but we do have a frame            m = fontMetrics().width('x') / 2 - d->margin;        if (m > 0) {            if (align & Qt::AlignLeft)                cr.setLeft(cr.left() + m);            if (align & Qt::AlignRight)                cr.setRight(cr.right() - m);            if (align & Qt::AlignTop)                cr.setTop(cr.top() + m);            if (align & Qt::AlignBottom)                cr.setBottom(cr.bottom() - m);        }    }#ifndef QT_NO_MOVIE    if (mov) {        QRect r = style->itemPixmapRect(cr, align, mov->currentPixmap());        if (d->scaledcontents) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91亚洲精华国产精华精华液| 884aa四虎影成人精品一区| 91蜜桃视频在线| 欧美性淫爽ww久久久久无| 欧美日韩精品一区二区三区 | 一级女性全黄久久生活片免费| 亚洲综合无码一区二区| 奇米亚洲午夜久久精品| 国模冰冰炮一区二区| 91猫先生在线| 欧美精品一区二区精品网| 亚洲欧洲成人自拍| 麻豆国产欧美日韩综合精品二区| 成人性生交大片免费看在线播放| 在线免费一区三区| 久久你懂得1024| 亚洲成人av中文| 成人网男人的天堂| 日韩一级二级三级| 亚洲综合激情小说| 国产aⅴ综合色| 精品日韩一区二区| 亚洲蜜臀av乱码久久精品蜜桃| 国产精品白丝jk白祙喷水网站| 欧美卡1卡2卡| 一区av在线播放| 色综合久久久网| 久久久久99精品一区| 亚洲嫩草精品久久| 99在线视频精品| 国产人妖乱国产精品人妖| 麻豆一区二区99久久久久| 欧美三片在线视频观看| 亚洲图片激情小说| 成人a免费在线看| 国产视频一区在线观看| 日本特黄久久久高潮| 91精品在线免费| 婷婷国产在线综合| 日韩欧美综合在线| 成人激情开心网| 中文字幕第一区综合| 国产·精品毛片| 亚洲欧美日韩系列| 日本韩国精品在线| 亚洲成人一区二区| 欧美一区在线视频| 国产高清精品久久久久| 国产嫩草影院久久久久| 色婷婷综合久久久| 亚洲r级在线视频| 日韩精品一区二区三区四区视频 | 亚洲婷婷国产精品电影人久久| av午夜一区麻豆| 亚洲国产精品欧美一二99| 欧美少妇一区二区| 理论电影国产精品| 欧美精品一区二区三区高清aⅴ | www.66久久| 一区二区三国产精华液| 日韩一区二区在线看| 26uuu久久综合| 99re成人在线| 老司机午夜精品99久久| 最新日韩在线视频| 欧美日韩欧美一区二区| 国产在线精品一区二区不卡了| 亚洲国产高清在线| 欧美日韩精品欧美日韩精品一综合| 精品一区二区免费| 一区二区三区在线免费| 2017欧美狠狠色| 欧美午夜免费电影| 国产乱人伦精品一区二区在线观看 | 韩国在线一区二区| 一区二区激情视频| 欧美精品一区二区三区蜜桃| 欧美在线啊v一区| 国产成人在线视频免费播放| 免费成人在线播放| 亚洲一区二区偷拍精品| 亚洲日本va在线观看| 国产欧美精品国产国产专区| 欧美精品一卡二卡| 97国产一区二区| 成人av在线网| 国产福利91精品一区| 麻豆91免费观看| 奇米精品一区二区三区在线观看| 国产日韩三级在线| 日韩午夜激情av| 91精品国产高清一区二区三区蜜臀| 91国产福利在线| 在线亚洲免费视频| 91色视频在线| 91电影在线观看| 欧美日韩在线播放| 欧美精品黑人性xxxx| 欧美精选在线播放| 欧美一级精品大片| 日韩欧美在线网站| 久久九九国产精品| 欧美国产精品专区| 中文无字幕一区二区三区 | 欧美精彩视频一区二区三区| 国产日韩精品一区二区三区在线| 国产日韩欧美一区二区三区综合| 久久久久久久一区| 亚洲欧美综合网| 亚洲影院久久精品| 麻豆精品视频在线| 国产精品一区在线观看乱码| 国产iv一区二区三区| 在线观看精品一区| 777亚洲妇女| 欧美激情综合五月色丁香| 亚洲精品国产一区二区精华液 | 国产在线看一区| 成人av网址在线| 欧美日本在线播放| 欧美国产一区在线| 天天做天天摸天天爽国产一区| 激情久久五月天| 欧美性色综合网| 国产性色一区二区| 日韩av在线发布| 成人av综合一区| 欧美一区二区日韩一区二区| 中文字幕日韩一区| 久久精品99国产精品| 在线观看亚洲a| 欧美国产激情一区二区三区蜜月 | 国产午夜亚洲精品理论片色戒| 亚洲视频综合在线| 国产凹凸在线观看一区二区| 欧美日韩国产天堂| 亚洲线精品一区二区三区| 国产精一区二区三区| 91精品国产高清一区二区三区 | 色久综合一二码| 久久天天做天天爱综合色| 午夜精品一区二区三区免费视频| www.亚洲免费av| 国产精品三级av| 粉嫩aⅴ一区二区三区四区五区 | 91麻豆精品在线观看| 久久精品一区二区| 韩国午夜理伦三级不卡影院| 欧美福利电影网| 日精品一区二区三区| 欧美日韩你懂的| 秋霞成人午夜伦在线观看| 欧美电影一区二区| 亚洲成人动漫精品| 777久久久精品| 久久99精品国产麻豆婷婷洗澡| 欧美电影免费观看高清完整版在| 日本不卡视频一二三区| 欧美亚洲高清一区| 日本成人超碰在线观看| 日韩午夜av电影| 国产69精品一区二区亚洲孕妇| 国产日韩精品一区二区三区在线| 成人a区在线观看| 亚洲福利电影网| 日韩视频123| 不卡av在线网| 日韩精品国产欧美| 国产日韩亚洲欧美综合| 91国产成人在线| 久久精品国产99国产| 国产精品日产欧美久久久久| 欧洲av在线精品| 国产麻豆精品theporn| 亚洲欧美日韩国产成人精品影院 | 国产精品私人影院| 欧美色图第一页| 国产精品亚洲视频| 亚洲国产一区二区三区| 欧美精品一区在线观看| 在线观看免费成人| 国产精品88av| 日产精品久久久久久久性色| 中文字幕精品综合| 在线成人午夜影院| 欧美精品自拍偷拍| 成人激情免费网站| 久久成人18免费观看| 亚洲国产精品一区二区久久| 日本一区二区三区在线不卡| 欧美日本在线播放| 99久久婷婷国产综合精品电影 | 国产欧美日韩在线看| 欧美日韩电影在线| 色哟哟一区二区在线观看| 懂色av中文字幕一区二区三区 | 欧美色国产精品| 一本色道久久综合亚洲精品按摩| 国产剧情一区二区三区| 美国一区二区三区在线播放|