summaryrefslogtreecommitdiffstats
path: root/src/webquerycitebase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webquerycitebase.cpp')
-rw-r--r--src/webquerycitebase.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/webquerycitebase.cpp b/src/webquerycitebase.cpp
index a12f400..8015df0 100644
--- a/src/webquerycitebase.cpp
+++ b/src/webquerycitebase.cpp
@@ -17,10 +17,10 @@
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
-#include <qapplication.h>
-#include <qfile.h>
-#include <qstring.h>
-#include <qspinbox.h>
+#include <ntqapplication.h>
+#include <ntqfile.h>
+#include <ntqstring.h>
+#include <ntqspinbox.h>
#include <klineedit.h>
#include <klocale.h>
@@ -34,20 +34,20 @@
namespace KBibTeX
{
- WebQueryCitebaseWidget::WebQueryCitebaseWidget( QWidget *parent, const char *name )
+ WebQueryCitebaseWidget::WebQueryCitebaseWidget( TQWidget *parent, const char *name )
: WebQueryWidget( parent, name )
{
init();
Settings *settings = Settings::self();
- QString value = settings->getWebQueryDefault( "Citebase" );
- value = value == QString::null ? "" : value;
+ TQString value = settings->getWebQueryDefault( "Citebase" );
+ value = value == TQString::null ? "" : value;
lineEditQuery->setText( value );
slotTextChanged( value, true );
}
- WebQueryCitebase::WebQueryCitebase( QWidget* parent ): WebQuery( parent )
+ WebQueryCitebase::WebQueryCitebase( TQWidget* parent ): WebQuery( parent )
{
m_widget = new WebQueryCitebaseWidget( parent );
}
@@ -57,17 +57,17 @@ namespace KBibTeX
delete m_widget;
}
- QString WebQueryCitebase::title()
+ TQString WebQueryCitebase::title()
{
return i18n( "Citebase" );
}
- QString WebQueryCitebase::disclaimer()
+ TQString WebQueryCitebase::disclaimer()
{
return i18n( "Citebase citation index" );
}
- QString WebQueryCitebase::disclaimerURL()
+ TQString WebQueryCitebase::disclaimerURL()
{
return "http://www.citebase.org/";
}
@@ -86,14 +86,14 @@ namespace KBibTeX
setNumStages( 1 );
int numberOfResults = m_widget->spinBoxMaxHits->value();
- QString searchTerm = m_widget->lineEditQuery->text().stripWhiteSpace().replace( '$', "" );
+ TQString searchTerm = m_widget->lineEditQuery->text().stripWhiteSpace().replace( '$', "" );
if ( searchTerm.isEmpty() )
{
setEndSearch( WebQuery::statusInvalidQuery );
return;
}
- KURL url = KURL( QString( "http://www.citebase.org/search?submitted=Search&author=&maxrows=%1&yearfrom=&format=BibTeX&order=DESC&type=metadata&title=%2&publication=&yearuntil=&rank=paperimpact" ).arg( numberOfResults ).arg( searchTerm.replace( "%", "%25" ).replace( "+", "%2B" ).replace( " ", "%20" ).replace( "#", "%23" ).replace( "&", "%26" ).replace( "?", "%3F" ) ) );
+ KURL url = KURL( TQString( "http://www.citebase.org/search?submitted=Search&author=&maxrows=%1&yearfrom=&format=BibTeX&order=DESC&type=metadata&title=%2&publication=&yearuntil=&rank=paperimpact" ).arg( numberOfResults ).arg( searchTerm.replace( "%", "%25" ).replace( "+", "%2B" ).replace( " ", "%20" ).replace( "#", "%23" ).replace( "&", "%26" ).replace( "?", "%3F" ) ) );
BibTeX::File *tmpBibFile = downloadBibTeXFile( url );
if ( tmpBibFile != NULL && !m_aborted )
{
@@ -112,10 +112,10 @@ namespace KBibTeX
}
else if ( !m_aborted )
{
- QString message = KIO::NetAccess::lastErrorString();
+ TQString message = KIO::NetAccess::lastErrorString();
if ( message.isEmpty() )
message.prepend( '\n' );
- message.prepend( QString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
+ message.prepend( TQString( i18n( "Querying database '%1' failed." ) ).arg( title() ) );
KMessageBox::error( m_parent, message );
setEndSearch( WebQuery::statusError );
}