diff options
author | Slávek Banko <[email protected]> | 2013-06-29 16:33:55 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-07-04 03:57:45 +0200 |
commit | f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db (patch) | |
tree | 0414ba9f0823b98d2a159c11513ddcda84b932cc /src/fieldlistview.cpp | |
parent | 5f5e7c5455d52826b0bd50f64fcffb7695ce970d (diff) | |
download | kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.tar.gz kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.zip |
Initial TDE conversion
Diffstat (limited to 'src/fieldlistview.cpp')
-rw-r--r-- | src/fieldlistview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fieldlistview.cpp b/src/fieldlistview.cpp index edb21a4..d132ce8 100644 --- a/src/fieldlistview.cpp +++ b/src/fieldlistview.cpp @@ -27,10 +27,10 @@ #include <ntqpushbutton.h> #include <ntqcheckbox.h> -#include <klistview.h> +#include <tdelistview.h> #include <klineedit.h> #include <kdialog.h> -#include <klocale.h> +#include <tdelocale.h> #include <kdebug.h> #include <kiconloader.h> @@ -201,7 +201,7 @@ namespace KBibTeX { if ( isSimple() ) { - KListViewItem * item = new KListViewItem( m_listViewElements, m_listViewElements->lastItem(), TQString( "%1%2" ).arg( m_prefixNew ).arg( ++m_newValueCounter ) ); + TDEListViewItem * item = new TDEListViewItem( m_listViewElements, m_listViewElements->lastItem(), TQString( "%1%2" ).arg( m_prefixNew ).arg( ++m_newValueCounter ) ); m_listViewElements->setSelected( item, TRUE ); updateGUI(); TQTimer::singleShot( 100, this, SLOT( slotEdit() ) ); @@ -212,7 +212,7 @@ namespace KBibTeX { if ( isSimple() ) { - KListViewItem * item = static_cast<KListViewItem*>( m_listViewElements->selectedItem() ); + TDEListViewItem * item = static_cast<TDEListViewItem*>( m_listViewElements->selectedItem() ); if ( item != NULL ) m_listViewElements->rename( item, 0 ); } @@ -293,10 +293,10 @@ namespace KBibTeX TQGridLayout * layout = new TQGridLayout( this, 8, 2, 0, KDialog::spacingHint() ); layout->setRowStretch( 5, 1 ); - m_listViewElements = new KListView( this ); + m_listViewElements = new TDEListView( this ); layout->addMultiCellWidget( m_listViewElements, 0, 6, 0, 0 ); m_listViewElements->renameLineEdit() ->setCompletionObject( settings->completion( m_fieldType ) ); - m_listViewElements->renameLineEdit() ->setCompletionMode( KGlobalSettings::CompletionPopup ); + m_listViewElements->renameLineEdit() ->setCompletionMode( TDEGlobalSettings::CompletionPopup ); m_listViewElements->renameLineEdit() ->completionObject() ->setIgnoreCase( true ); m_listViewElements->setDefaultRenameAction( TQListView::Accept ); m_listViewElements->addColumn( m_caption ); @@ -304,7 +304,7 @@ namespace KBibTeX m_listViewElements->setItemsRenameable( TRUE ); if ( settings->editing_UseSpecialFont ) m_listViewElements->setFont( settings->editing_SpecialFont ); - m_listViewElements->header() ->setFont( KGlobalSettings::generalFont() ); + m_listViewElements->header() ->setFont( TDEGlobalSettings::generalFont() ); m_listViewElements->header() ->setClickEnabled( FALSE ); m_listViewElements->header() ->setStretchEnabled( TRUE, 0 ); |