aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/helpwindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2008-09-26 11:52:12 +0000
committerGravatar Fabio Bas2008-09-26 11:52:12 +0000
commit2299e240fd82e6d9724aff7dc6e0a4f43602c7d4 (patch)
tree75fd798dae366309a6f5ad81110ae589584ec813 /src/modules/help/helpwindow.cpp
parentWin VS projects cleanup. (diff)
downloadKVIrc-2299e240fd82e6d9724aff7dc6e0a4f43602c7d4.tar.gz
KVIrc-2299e240fd82e6d9724aff7dc6e0a4f43602c7d4.tar.bz2
KVIrc-2299e240fd82e6d9724aff7dc6e0a4f43602c7d4.zip
finished help module; still a small problem on window focus after search indexing
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2576 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/help/helpwindow.cpp')
-rw-r--r--src/modules/help/helpwindow.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp
index dfcebeeb1..33ac9f351 100644
--- a/src/modules/help/helpwindow.cpp
+++ b/src/modules/help/helpwindow.cpp
@@ -59,12 +59,9 @@ KviHelpWindow::KviHelpWindow(KviFrame * lpFrm,const char * name)
if ( QFileInfo( szDoclist ).exists() && QFileInfo( szDict ).exists() ) {
g_pDocIndex->readDict();
} else {
- QProgressDialog* pProgressDialog = new QProgressDialog( __tr2qs("Indexing help files"), __tr2qs("Cancel"), 0,100 );
- connect(g_pDocIndex,SIGNAL(indexingProgress(int)), pProgressDialog, SLOT(setValue(int)) );
g_pDocIndex->makeIndex();
g_pDocIndex->writeDict();
g_pDocIndex->writeDocumentList();
- delete pProgressDialog;
}
g_bIndexingDone=TRUE;
}
@@ -103,8 +100,7 @@ KviHelpWindow::KviHelpWindow(KviFrame * lpFrm,const char * name)
m_pTabWidget->addTab(m_pSearchTab,__tr2qs("Search"));
m_pTermsEdit = new QLineEdit(m_pSearchTab);
-/* connect( m_pTermsEdit, SIGNAL( textChanged(const QString&) ),
- this, SLOT( searchInIndex(const QString&) ) );*/
+
connect( m_pTermsEdit, SIGNAL( returnPressed() ),
this, SLOT( startSearch() ) );
@@ -142,12 +138,9 @@ void KviHelpWindow::loadProperties(KviConfig *cfg)
void KviHelpWindow::refreshIndex()
{
m_pIndexListWidget->clear();
- QProgressDialog* pProgressDialog = new QProgressDialog( __tr2qs("Indexing help files"), __tr2qs("Cancel"), 0,100 );
- connect(g_pDocIndex,SIGNAL(indexingProgress(int)), pProgressDialog, SLOT(setValue(int)) );
g_pDocIndex->makeIndex();
g_pDocIndex->writeDict();
g_pDocIndex->writeDocumentList();
- delete pProgressDialog;
g_bIndexingDone=TRUE;
QStringList docList=g_pDocIndex->titlesList();
m_pIndexListWidget->addItems(docList);