summaryrefslogtreecommitdiffstats
path: root/src/modules/help/helpwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/help/helpwindow.cpp')
-rw-r--r--src/modules/help/helpwindow.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp
index 1be7f5e8..fbeb1abf 100644
--- a/src/modules/help/helpwindow.cpp
+++ b/src/modules/help/helpwindow.cpp
@@ -61,11 +61,7 @@ KviHelpWindow::KviHelpWindow(KviFrame * lpFrm,const char * name)
if ( TQFileInfo( szDoclist ).exists() && TQFileInfo( szDict ).exists() ) {
g_pDocIndex->readDict();
} else {
-#ifdef COMPILE_USE_QT4
- TQProgressDialog* pProgressDialog = new TQProgressDialog( __tr2qs("Indexing help files"), __tr2qs("Cancel"), 0,100 );
-#else
TQProgressDialog* pProgressDialog = new TQProgressDialog( __tr2qs("Indexing help files"), __tr2qs("Cancel"), 100 );
-#endif
connect(g_pDocIndex,TQT_SIGNAL(indexingProgress(int)), pProgressDialog, TQT_SLOT(setProgress(int)) );
g_pDocIndex->makeIndex();
g_pDocIndex->writeDict();
@@ -148,11 +144,7 @@ void KviHelpWindow::loadProperties(KviConfig *cfg)
void KviHelpWindow::refreshIndex()
{
m_pIndexListBox->clear();
-#ifdef COMPILE_USE_QT4
- TQProgressDialog* pProgressDialog = new TQProgressDialog( __tr2qs("Indexing help files"), __tr2qs("Cancel"), 0,100 );
-#else
TQProgressDialog* pProgressDialog = new TQProgressDialog( __tr2qs("Indexing help files"), __tr2qs("Cancel"), 100 );
-#endif
connect(g_pDocIndex,TQT_SIGNAL(indexingProgress(int)), pProgressDialog, TQT_SLOT(setProgress(int)) );
g_pDocIndex->makeIndex();
g_pDocIndex->writeDict();
@@ -183,11 +175,7 @@ void KviHelpWindow::startSearch()
(*it) = (*it).replace( "\"", "" );
}
if ( str.contains( '\"' ) ) {
-#ifdef COMPILE_USE_QT4
- if ( (str.count( '\"' ))%2 == 0 ) {
-#else
if ( (str.contains( '\"' ))%2 == 0 ) {
-#endif
int beg = 0;
int end = 0;
TQString s;
@@ -213,11 +201,7 @@ void KviHelpWindow::startSearch()
return;
}
}
-#ifdef COMPILE_USE_QT4
- setCursor( TQt::WaitCursor );
-#else
setCursor( waitCursor );
-#endif
m_foundDocs.clear();
m_foundDocs = g_pDocIndex->query( m_terms, termSeq, seqWords );
@@ -246,11 +230,7 @@ void KviHelpWindow::startSearch()
if ( !s.isEmpty() )
m_terms << s;
-#ifdef COMPILE_USE_QT4
- setCursor( TQt::ArrowCursor );
-#else
setCursor( arrowCursor );
-#endif
}
TQTextBrowser * KviHelpWindow::textBrowser()