summaryrefslogtreecommitdiffstats
path: root/src/settingskeyword.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-06-29 16:33:55 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-04 03:57:45 +0200
commitf2d4b48ad7f6ce4f23c6cbba3e85c67486f922db (patch)
tree0414ba9f0823b98d2a159c11513ddcda84b932cc /src/settingskeyword.cpp
parent5f5e7c5455d52826b0bd50f64fcffb7695ce970d (diff)
downloadkbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.tar.gz
kbibtex-f2d4b48ad7f6ce4f23c6cbba3e85c67486f922db.zip
Initial TDE conversion
Diffstat (limited to 'src/settingskeyword.cpp')
-rw-r--r--src/settingskeyword.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/settingskeyword.cpp b/src/settingskeyword.cpp
index 3e446d6..c883895 100644
--- a/src/settingskeyword.cpp
+++ b/src/settingskeyword.cpp
@@ -23,11 +23,11 @@
#include <ntqtimer.h>
#include <ntqtooltip.h>
-#include <klistview.h>
+#include <tdelistview.h>
#include <kdialog.h>
#include <kiconloader.h>
-#include <kmessagebox.h>
-#include <klocale.h>
+#include <tdemessagebox.h>
+#include <tdelocale.h>
#include <file.h>
#include <entryfield.h>
@@ -64,7 +64,7 @@ namespace KBibTeX
m_listKeywords->clear();
for ( TQStringList::Iterator it = settings->keyword_GlobalList.begin(); it != settings->keyword_GlobalList.end(); ++it )
{
- KListViewItem *item = new KListViewItem( m_listKeywords, *it );
+ TDEListViewItem *item = new TDEListViewItem( m_listKeywords, *it );
item->setPixmap( 0, SmallIcon( "package" ) );
}
@@ -80,7 +80,7 @@ namespace KBibTeX
void SettingsKeyword::slotNewKeyword()
{
- KListViewItem * item = new KListViewItem( m_listKeywords, i18n( "New Keyword" ) );
+ TDEListViewItem * item = new TDEListViewItem( m_listKeywords, i18n( "New Keyword" ) );
item->setPixmap( 0, SmallIcon( "package" ) );
m_listKeywords->setSelected( item, TRUE );
m_listKeywords->ensureItemVisible( item );
@@ -89,7 +89,7 @@ namespace KBibTeX
void SettingsKeyword::slotEditKeyword()
{
- KListViewItem * item = static_cast<KListViewItem*>( m_listKeywords->selectedItem() );
+ TDEListViewItem * item = static_cast<TDEListViewItem*>( m_listKeywords->selectedItem() );
if ( item != NULL )
{
m_oldText = item->text( 0 );
@@ -99,7 +99,7 @@ namespace KBibTeX
void SettingsKeyword::slotDeleteKeyword()
{
- KListViewItem * item = static_cast<KListViewItem*>( m_listKeywords->selectedItem() );
+ TDEListViewItem * item = static_cast<TDEListViewItem*>( m_listKeywords->selectedItem() );
if ( item != NULL )
{
delete item;
@@ -124,7 +124,7 @@ namespace KBibTeX
m_listKeywords->clear();
for ( TQStringList::Iterator it = m_keywordsFromFile.begin(); it != m_keywordsFromFile.end(); ++it )
{
- KListViewItem *item = new KListViewItem( m_listKeywords, *it );
+ TDEListViewItem *item = new TDEListViewItem( m_listKeywords, *it );
item->setPixmap( 0, SmallIcon( "package" ) );
}
@@ -157,7 +157,7 @@ namespace KBibTeX
{
TQGridLayout * gridLayout = new TQGridLayout( this, 5, 2, 0, KDialog::spacingHint(), "gridLayout" );
- m_listKeywords = new KListView( this );
+ m_listKeywords = new TDEListView( this );
m_listKeywords->addColumn( i18n( "Keywords" ) );
m_listKeywords->header()->setClickEnabled( FALSE );
m_listKeywords->setFullWidth( true );