diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:02:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:02:43 -0600 |
commit | aea627236e4de24599c3e30617cf264c3c1b7d40 (patch) | |
tree | 467e13ca5a7eb0ab292259289ecc3572f53c5eae /kspread/dialogs/kspread_dlg_styles.cc | |
parent | 786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff) | |
download | koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kspread/dialogs/kspread_dlg_styles.cc')
-rw-r--r-- | kspread/dialogs/kspread_dlg_styles.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kspread/dialogs/kspread_dlg_styles.cc b/kspread/dialogs/kspread_dlg_styles.cc index 26ec4580..2821f5e2 100644 --- a/kspread/dialogs/kspread_dlg_styles.cc +++ b/kspread/dialogs/kspread_dlg_styles.cc @@ -44,9 +44,9 @@ StyleWidget::StyleWidget( TQWidget * parent, const char * name, WFlags fl ) { TQVBoxLayout * layout = new TQVBoxLayout( this, 11, 6, "layout"); - m_styleList = new KListView( this, "m_styleList" ); + m_styleList = new TDEListView( this, "m_styleList" ); m_styleList->addColumn( i18n( "Styles" ) ); - m_styleList->setResizeMode( KListView::AllColumns ); + m_styleList->setResizeMode( TDEListView::AllColumns ); layout->addWidget( m_styleList ); m_displayBox = new KComboBox( FALSE, this, "m_displayBox" ); @@ -99,11 +99,11 @@ StyleDlg::~StyleDlg() void StyleDlg::fillComboBox() { - class Map : public TQMap<CustomStyle *, KListViewItem *> {}; + class Map : public TQMap<CustomStyle *, TDEListViewItem *> {}; Map entries; entries.clear(); - entries[m_styleManager->defaultStyle()] = new KListViewItem( m_dlg->m_styleList, i18n( "Default" ) ); + entries[m_styleManager->defaultStyle()] = new TDEListViewItem( m_dlg->m_styleList, i18n( "Default" ) ); StyleManager::Styles::const_iterator iter = m_styleManager->m_styles.begin(); StyleManager::Styles::const_iterator end = m_styleManager->m_styles.end(); @@ -114,12 +114,12 @@ void StyleDlg::fillComboBox() if ( entries.find( iter.data() ) == entries.end() ) { if ( iter.data()->parent() == 0 ) - entries[iter.data()] = new KListViewItem( m_dlg->m_styleList, iter.data()->name() ); + entries[iter.data()] = new TDEListViewItem( m_dlg->m_styleList, iter.data()->name() ); else { Map::const_iterator i = entries.find( iter.data()->parent() ); if ( i != entries.end() ) - entries[iter.data()] = new KListViewItem( i.data(), iter.data()->name() ); + entries[iter.data()] = new TDEListViewItem( i.data(), iter.data()->name() ); } } @@ -144,7 +144,7 @@ void StyleDlg::slotDisplayMode( int mode ) } if ( mode != 2 ) - new KListViewItem( m_dlg->m_styleList, i18n( "Default" ) ); + new TDEListViewItem( m_dlg->m_styleList, i18n( "Default" ) ); StyleManager::Styles::iterator iter = m_styleManager->m_styles.begin(); StyleManager::Styles::iterator end = m_styleManager->m_styles.end(); @@ -161,15 +161,15 @@ void StyleDlg::slotDisplayMode( int mode ) if ( mode == 2 ) { if ( styleData->type() == Style::CUSTOM ) - new KListViewItem( m_dlg->m_styleList, styleData->name() ); + new TDEListViewItem( m_dlg->m_styleList, styleData->name() ); } else if ( mode == 1 ) { if ( styleData->usage() > 0 ) - new KListViewItem( m_dlg->m_styleList, styleData->name() ); + new TDEListViewItem( m_dlg->m_styleList, styleData->name() ); } else - new KListViewItem( m_dlg->m_styleList, styleData->name() ); + new TDEListViewItem( m_dlg->m_styleList, styleData->name() ); ++iter; } @@ -177,7 +177,7 @@ void StyleDlg::slotDisplayMode( int mode ) void StyleDlg::slotOk() { - KListViewItem * item = (KListViewItem *) m_dlg->m_styleList->currentItem(); + TDEListViewItem * item = (TDEListViewItem *) m_dlg->m_styleList->currentItem(); if ( !item ) { @@ -218,7 +218,7 @@ void StyleDlg::slotUser1() { CustomStyle * s = 0; - KListViewItem * item = (KListViewItem *) m_dlg->m_styleList->currentItem(); + TDEListViewItem * item = (TDEListViewItem *) m_dlg->m_styleList->currentItem(); if ( item ) { @@ -257,7 +257,7 @@ void StyleDlg::slotUser1() void StyleDlg::slotUser2() { - KListViewItem * item = (KListViewItem *) m_dlg->m_styleList->currentItem(); + TDEListViewItem * item = (TDEListViewItem *) m_dlg->m_styleList->currentItem(); if ( !item ) return; @@ -279,7 +279,7 @@ void StyleDlg::slotUser2() void StyleDlg::slotUser3() { - KListViewItem * item = (KListViewItem *) m_dlg->m_styleList->currentItem(); + TDEListViewItem * item = (TDEListViewItem *) m_dlg->m_styleList->currentItem(); if ( !item ) return; |