Changeset 561 for trunk/tools/assistant/lib/qhelpsearchresultwidget.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/tools/assistant/lib/qhelpsearchresultwidget.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the Qt Assistant of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 68 68 { 69 69 header()->hide(); 70 connect(this, SIGNAL(itemActivated(QTreeWidgetItem*, 71 this, SLOT(itemActivated(QTreeWidgetItem*, 70 connect(this, SIGNAL(itemActivated(QTreeWidgetItem*,int)), 71 this, SLOT(itemActivated(QTreeWidgetItem*,int))); 72 72 } 73 73 … … 100 100 : QTextBrowser(parent) 101 101 { 102 connect(this, SIGNAL(anchorClicked( const QUrl&)),103 this, SIGNAL(requestShowLink( const QUrl&)));102 connect(this, SIGNAL(anchorClicked()), 103 this, SIGNAL(requestShowLink())); 104 104 setContextMenuPolicy(Qt::NoContextMenu); 105 105 } … … 170 170 { 171 171 if (!searchEngine.isNull() 172 && resultLastToShow < searchEngine->hit sCount()) {172 && resultLastToShow < searchEngine->hitCount()) { 173 173 resultLastToShow += 20; 174 174 resultFirstToShow += 20; … … 176 176 resultTextBrowser->showResultPage(searchEngine->hits(resultFirstToShow, 177 177 resultLastToShow), isIndexing); 178 if (resultLastToShow >= searchEngine->hit sCount())178 if (resultLastToShow >= searchEngine->hitCount()) 179 179 updateNextButtonState(false); 180 180 } … … 185 185 { 186 186 if (!searchEngine.isNull()) { 187 resultLastToShow = searchEngine->hit sCount();187 resultLastToShow = searchEngine->hitCount(); 188 188 resultFirstToShow = resultLastToShow - (resultLastToShow % 20); 189 189 … … 215 215 if (!searchEngine.isNull()) { 216 216 int count = resultLastToShow % 20; 217 if (count == 0 || resultLastToShow != searchEngine->hit sCount())217 if (count == 0 || resultLastToShow != searchEngine->hitCount()) 218 218 count = 20; 219 219 … … 299 299 300 300 if (!searchEngine.isNull()) { 301 count = searchEngine->hit sCount();301 count = searchEngine->hitCount(); 302 302 if (count > 0) { 303 303 first = resultFirstToShow +1; … … 386 386 vLayout->addWidget(d->resultTextBrowser); 387 387 388 connect(d->resultTextBrowser, SIGNAL(requestShowLink( const QUrl&)), this,389 SIGNAL(requestShowLink( const QUrl&)));388 connect(d->resultTextBrowser, SIGNAL(requestShowLink()), this, 389 SIGNAL(requestShowLink())); 390 390 391 391 connect(d->nextResultPage, SIGNAL(clicked()), d, SLOT(showNextResultPage())); … … 402 402 d->resultTreeWidget = new QDefaultResultWidget(this); 403 403 vLayout->addWidget(d->resultTreeWidget); 404 connect(d->resultTreeWidget, SIGNAL(requestShowLink( const QUrl&)), this,405 SIGNAL(requestShowLink( const QUrl&)));404 connect(d->resultTreeWidget, SIGNAL(requestShowLink()), this, 405 SIGNAL(requestShowLink())); 406 406 #endif 407 407
Note:
See TracChangeset
for help on using the changeset viewer.