aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/HelpWindow.cpp
diff options
context:
space:
mode:
authorGravatar un1versal2016-06-05 09:30:15 +0100
committerGravatar un1versal2016-06-09 01:48:06 +0100
commitbfb5ff869ae902b382acfd6fa9a545c2c49e2a60 (patch)
tree01854bdca73d66b3f932a8951702d31eb982fa9f /src/modules/help/HelpWindow.cpp
parentKviMenuBar: help menu entries; have one help entry only (diff)
downloadKVIrc-bfb5ff869ae902b382acfd6fa9a545c2c49e2a60.tar.gz
KVIrc-bfb5ff869ae902b382acfd6fa9a545c2c49e2a60.tar.bz2
KVIrc-bfb5ff869ae902b382acfd6fa9a545c2c49e2a60.zip
HelpWidget/Window: cleanup source
* change tr to __tr2qs as indicated in ancient todo list * remove unneed brackets * cleanup source formatting
Diffstat (limited to 'src/modules/help/HelpWindow.cpp')
-rw-r--r--src/modules/help/HelpWindow.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/modules/help/HelpWindow.cpp b/src/modules/help/HelpWindow.cpp
index 155815c50..8ae68e57b 100644
--- a/src/modules/help/HelpWindow.cpp
+++ b/src/modules/help/HelpWindow.cpp
@@ -73,10 +73,8 @@ HelpWindow::HelpWindow(const char * name)
KviTalHBox * pSearchBox = new KviTalHBox(m_pIndexTab);
m_pIndexSearch = new QLineEdit(pSearchBox);
- connect(m_pIndexSearch, SIGNAL(textChanged(const QString &)),
- this, SLOT(searchInIndex(const QString &)));
- connect(m_pIndexSearch, SIGNAL(returnPressed()),
- this, SLOT(showIndexTopic()));
+ connect(m_pIndexSearch, SIGNAL(textChanged(const QString &)), this, SLOT(searchInIndex(const QString &)));
+ connect(m_pIndexSearch, SIGNAL(returnPressed()), this, SLOT(showIndexTopic()));
m_pBtnRefreshIndex = new QPushButton(pSearchBox);
m_pBtnRefreshIndex->setIcon(*g_pIconManager->getBigIcon(KVI_REFRESH_IMAGE_NAME));
@@ -91,8 +89,7 @@ HelpWindow::HelpWindow(const char * name)
m_pTermsEdit = new QLineEdit(m_pSearchTab);
- connect(m_pTermsEdit, SIGNAL(returnPressed()),
- this, SLOT(startSearch()));
+ connect(m_pTermsEdit, SIGNAL(returnPressed()), this, SLOT(startSearch()));
m_pResultBox = new KviTalListWidget(m_pSearchTab);
connect(m_pResultBox, SIGNAL(itemActivated(QListWidgetItem *)), this, SLOT(searchSelected(QListWidgetItem *)));
@@ -133,10 +130,7 @@ void HelpWindow::initialSetup()
m_pBtnRefreshIndex->setEnabled(true);
}
else
- {
g_pDocIndex->makeIndex();
- }
- //}
}
void HelpWindow::indexingStart(int iNum)
@@ -146,6 +140,7 @@ void HelpWindow::indexingStart(int iNum)
m_pProgressBar->setRange(0, iNum);
m_pProgressBar->setValue(0);
}
+
void HelpWindow::indexingProgress(int iNum)
{
m_pProgressBar->setValue(iNum);
@@ -219,8 +214,8 @@ void HelpWindow::startSearch()
s = s.simplified();
if(s.contains('*'))
{
- QMessageBox::warning(this, tr("Full Text Search - KVIrc"),
- tr("Using a wildcard within phrases is not allowed."));
+ QMessageBox::warning(this, __tr2qs("Full Text Search - KVIrc"),
+ __tr2qs("Using a wildcard within phrases is not allowed."));
return;
}
seqWords += s.split(' ', QString::SkipEmptyParts);
@@ -230,8 +225,8 @@ void HelpWindow::startSearch()
}
else
{
- QMessageBox::warning(this, tr("Full Text Search - KVIrc"),
- tr("The closing quotation mark is missing."));
+ QMessageBox::warning(this, __tr2qs("Full Text Search - KVIrc"),
+ __tr2qs("The closing quotation mark is missing."));
return;
}
}