Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/assistant/lib/qhelpsearchquerywidget.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    119119    {
    120120        // nothing todo
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
    121137    }
    122138
     
    361377
    362378    bool simpleSearch;
     379
     380
     381
     382
     383
     384
     385
    363386    QPushButton *searchButton;
    364387    QWidget* advancedSearchWidget;
     
    409432
    410433    QHBoxLayout* hBoxLayout = new QHBoxLayout();
    411     QLabel *label = new QLabel(tr("Search for:"), this);
     434    this);
    412435    d->defaultQuery = new QLineEdit(this);
    413436    d->defaultQuery->setCompleter(&d->searchCompleter);
    414437    d->prevQueryButton = new QToolButton(this);
    415438    d->prevQueryButton->setArrowType(Qt::LeftArrow);
    416     d->prevQueryButton->setToolTip(tr("Previous search"));
    417439    d->prevQueryButton->setEnabled(false);
    418440    d->nextQueryButton = new QToolButton(this);
    419441    d->nextQueryButton->setArrowType(Qt::RightArrow);
    420     d->nextQueryButton->setToolTip(tr("Next search"));
    421442    d->nextQueryButton->setEnabled(false);
    422     d->searchButton = new QPushButton(tr("Search"), this);
    423     hBoxLayout->addWidget(label);
     443    d->searchButton = new QPushButton(this);
     444    hBoxLayout->addWidget(abel);
    424445    hBoxLayout->addWidget(d->defaultQuery);
    425446    hBoxLayout->addWidget(d->prevQueryButton);
     
    440461    d->showHideAdvancedSearchButton->setMinimumSize(25, 20);
    441462
    442     label = new QLabel(tr("Advanced search"), this);
     463    this);
    443464    QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
    444     sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
    445     label->setSizePolicy(sizePolicy);
     465    sizePolicy.setHeightForWidth(abel->sizePolicy().hasHeightForWidth());
     466    abel->setSizePolicy(sizePolicy);
    446467
    447468    QFrame* hLine = new QFrame(this);
    448469    hLine->setFrameStyle(QFrame::HLine);
    449470    hBoxLayout->addWidget(d->showHideAdvancedSearchButton);
    450     hBoxLayout->addWidget(label);
     471    hBoxLayout->addWidget(abel);
    451472    hBoxLayout->addWidget(hLine);
    452473
     
    458479    gLayout->setMargin(0);
    459480
    460     label = new QLabel(tr("words <B>similar</B> to:"), this);
    461     gLayout->addWidget(label, 0, 0);
     481    this);
     482    gLayout->addWidget(abel, 0, 0);
    462483    d->similarQuery = new QLineEdit(this);
    463484    d->similarQuery->setCompleter(&d->searchCompleter);
    464485    gLayout->addWidget(d->similarQuery, 0, 1);
    465486
    466     label = new QLabel(tr("<B>without</B> the words:"), this);
    467     gLayout->addWidget(label, 1, 0);
     487    this);
     488    gLayout->addWidget(abel, 1, 0);
    468489    d->withoutQuery = new QLineEdit(this);
    469490    d->withoutQuery->setCompleter(&d->searchCompleter);
    470491    gLayout->addWidget(d->withoutQuery, 1, 1);
    471492
    472     label = new QLabel(tr("with <B>exact phrase</B>:"), this);
    473     gLayout->addWidget(label, 2, 0);
     493    this);
     494    gLayout->addWidget(abel, 2, 0);
    474495    d->exactQuery = new QLineEdit(this);
    475496    d->exactQuery->setCompleter(&d->searchCompleter);
    476497    gLayout->addWidget(d->exactQuery, 2, 1);
    477498
    478     label = new QLabel(tr("with <B>all</B> of the words:"), this);
    479     gLayout->addWidget(label, 3, 0);
     499    this);
     500    gLayout->addWidget(abel, 3, 0);
    480501    d->allQuery = new QLineEdit(this);
    481502    d->allQuery->setCompleter(&d->searchCompleter);
    482503    gLayout->addWidget(d->allQuery, 3, 1);
    483504
    484     label = new QLabel(tr("with <B>at least one</B> of the words:"), this);
    485     gLayout->addWidget(label, 4, 0);
     505    this);
     506    gLayout->addWidget(abel, 4, 0);
    486507    d->atLeastQuery = new QLineEdit(this);
    487508    d->atLeastQuery->setCompleter(&d->searchCompleter);
     
    490511    vLayout->addWidget(d->advancedSearchWidget);
    491512    d->advancedSearchWidget->hide();
     513
     514
    492515
    493516    connect(d->exactQuery, SIGNAL(returnPressed()), this, SIGNAL(search()));
     
    532555}
    533556
     557
     558
     559
     560
     561
     562
     563
     564
     565
     566
    534567QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.