From f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 16:33:55 +0200 Subject: Initial TDE conversion --- src/fieldlistview.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/fieldlistview.cpp') 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 #include -#include +#include #include #include -#include +#include #include #include @@ -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( m_listViewElements->selectedItem() ); + TDEListViewItem * item = static_cast( 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 ); -- cgit v1.2.1