summaryrefslogtreecommitdiffstats
path: root/src/settingsidsuggestions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settingsidsuggestions.cpp')
-rw-r--r--src/settingsidsuggestions.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/settingsidsuggestions.cpp b/src/settingsidsuggestions.cpp
index af41919..ebc094b 100644
--- a/src/settingsidsuggestions.cpp
+++ b/src/settingsidsuggestions.cpp
@@ -25,10 +25,10 @@
#include <ntqlabel.h>
#include <kinputdialog.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <kiconloader.h>
#include <kpushbutton.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <kdialog.h>
#include <klineedit.h>
@@ -43,24 +43,24 @@ namespace KBibTeX
{
TQString SettingsIdSuggestions::exampleBibTeXEntry = "@Article{ dijkstra1983terminationdetect,\nauthor = {Edsger W. Dijkstra and W. H. J. Feijen and A. J. M. {van Gasteren}},\ntitle = {{Derivation of a Termination Detection Algorithm for Distributed Computations}},\njournal = {Information Processing Letters},\nvolume = 16,\nnumber = 5,\npages = {217--219},\nmonth = jun,\nyear = 1983\n}";
- IdSuggestionsListViewItem::IdSuggestionsListViewItem( KListView *list, const TQString& plainText, BibTeX::Entry *example ): KListViewItem( list ), m_original( plainText ), m_example( example )
+ IdSuggestionsListViewItem::IdSuggestionsListViewItem( TDEListView *list, const TQString& plainText, BibTeX::Entry *example ): TDEListViewItem( list ), m_original( plainText ), m_example( example )
{
- KListViewItem::setText( 0, parse( plainText ) );
- KListViewItem::setMultiLinesEnabled( TRUE );
+ TDEListViewItem::setText( 0, parse( plainText ) );
+ TDEListViewItem::setMultiLinesEnabled( TRUE );
}
- IdSuggestionsListViewItem::IdSuggestionsListViewItem( KListView *list, KListViewItem *prev, const TQString& plainText, BibTeX::Entry *example ): KListViewItem( list, prev ), m_original( plainText ), m_example( example )
+ IdSuggestionsListViewItem::IdSuggestionsListViewItem( TDEListView *list, TDEListViewItem *prev, const TQString& plainText, BibTeX::Entry *example ): TDEListViewItem( list, prev ), m_original( plainText ), m_example( example )
{
- KListViewItem::setText( 0, parse( plainText ) );
- KListViewItem::setMultiLinesEnabled( TRUE );
+ TDEListViewItem::setText( 0, parse( plainText ) );
+ TDEListViewItem::setMultiLinesEnabled( TRUE );
}
void IdSuggestionsListViewItem::setText( int col, const TQString& text )
{
if ( col == 0 )
- KListViewItem::setText( 0, parse( text ) );
+ TDEListViewItem::setText( 0, parse( text ) );
else
- KListViewItem::setText( col, text );
+ TDEListViewItem::setText( col, text );
}
int IdSuggestionsListViewItem::width( const TQFontMetrics & fm, const TQListView *, int c ) const
@@ -154,7 +154,7 @@ namespace KBibTeX
m_listSmallWords->clear();
for ( TQStringList::ConstIterator it = settings->idSuggestions_smallWords.begin(); it != settings->idSuggestions_smallWords.end(); ++it )
- new KListViewItem( m_listSmallWords, *it );
+ new TDEListViewItem( m_listSmallWords, *it );
m_lineEditSmallWords->setText( "" );
slotListSmallWordsChanged();
@@ -286,7 +286,7 @@ namespace KBibTeX
void SettingsIdSuggestions::slotAddSmallWord()
{
- new KListViewItem( m_listSmallWords, m_lineEditSmallWords->text() );
+ new TDEListViewItem( m_listSmallWords, m_lineEditSmallWords->text() );
m_lineEditSmallWords->setText( "" );
emit configChanged();
}
@@ -332,7 +332,7 @@ namespace KBibTeX
gridLayout->setRowStretch( 12, 1 );
gridLayout->setColStretch( 0, 1 );
- m_listIdSuggestions = new KListView( this );
+ m_listIdSuggestions = new TDEListView( this );
m_listIdSuggestions->setSorting( -1, FALSE );
m_listIdSuggestions->addColumn( i18n( "Id Suggestions" ) );
m_listIdSuggestions->header()->setClickEnabled( FALSE );
@@ -382,7 +382,7 @@ namespace KBibTeX
gridLayout->addWidget( m_buttonAddSmallWord, 10, 1 );
connect( m_buttonAddSmallWord, SIGNAL( clicked() ), this, SLOT( slotAddSmallWord() ) );
- m_listSmallWords = new KListView( this );
+ m_listSmallWords = new TDEListView( this );
m_listSmallWords->addColumn( i18n( "Small Words" ) );
m_listSmallWords->header()->setClickEnabled( true );
m_listSmallWords->setFullWidth( true );