diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:02:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:02:43 -0600 |
commit | aea627236e4de24599c3e30617cf264c3c1b7d40 (patch) | |
tree | 467e13ca5a7eb0ab292259289ecc3572f53c5eae /kspread/dialogs | |
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')
-rw-r--r-- | kspread/dialogs/SheetSelectWidget.ui | 4 | ||||
-rw-r--r-- | kspread/dialogs/kspread_dlg_database.cc | 4 | ||||
-rw-r--r-- | kspread/dialogs/kspread_dlg_database.h | 6 | ||||
-rw-r--r-- | kspread/dialogs/kspread_dlg_styles.cc | 28 | ||||
-rw-r--r-- | kspread/dialogs/kspread_dlg_styles.h | 4 | ||||
-rw-r--r-- | kspread/dialogs/link.cc | 2 |
6 files changed, 24 insertions, 24 deletions
diff --git a/kspread/dialogs/SheetSelectWidget.ui b/kspread/dialogs/SheetSelectWidget.ui index 6e0b3c0d..9e6dfc84 100644 --- a/kspread/dialogs/SheetSelectWidget.ui +++ b/kspread/dialogs/SheetSelectWidget.ui @@ -83,7 +83,7 @@ <string>Remove sheets.</string> </property> </widget> - <widget class="KListView" row="0" column="0" rowspan="4" colspan="1"> + <widget class="TDEListView" row="0" column="0" rowspan="4" colspan="1"> <column> <property name="text"> <string>Available Sheets</string> @@ -175,7 +175,7 @@ You can insert a sheet as often as you like, this way it will be printed multipl <string>Move selected sheet to the bottom.</string> </property> </widget> - <widget class="KListView" row="0" column="2" rowspan="4" colspan="1"> + <widget class="TDEListView" row="0" column="2" rowspan="4" colspan="1"> <column> <property name="text"> <string>Selected Sheets</string> diff --git a/kspread/dialogs/kspread_dlg_database.cc b/kspread/dialogs/kspread_dlg_database.cc index 0130e863..946ee3c5 100644 --- a/kspread/dialogs/kspread_dlg_database.cc +++ b/kspread/dialogs/kspread_dlg_database.cc @@ -189,7 +189,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char * m_SelectSheetLabel->setText( i18n( "Select tables:" ) ); Frame5_2Layout->addWidget( m_SelectSheetLabel, 1, 0 ); - m_sheetView = new KListView( Frame5_2, "m_tableView" ); + m_sheetView = new TDEListView( Frame5_2, "m_tableView" ); m_sheetView->addColumn( i18n( "Sheet" ) ); m_sheetView->setRootIsDecorated( FALSE ); @@ -219,7 +219,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char * Frame5_2_2Layout->addWidget( TextLabel11_2, 0, 0 ); - m_columnView = new KListView( Frame5_2_2, "m_columnView" ); + m_columnView = new TDEListView( Frame5_2_2, "m_columnView" ); m_columnView->addColumn( i18n( "Column" ) ); m_columnView->addColumn( i18n( "Sheet" ) ); m_columnView->addColumn( i18n( "Data Type" ) ); diff --git a/kspread/dialogs/kspread_dlg_database.h b/kspread/dialogs/kspread_dlg_database.h index 9dec13fc..2604bf41 100644 --- a/kspread/dialogs/kspread_dlg_database.h +++ b/kspread/dialogs/kspread_dlg_database.h @@ -41,7 +41,7 @@ class TQTextEdit; class TQVBoxLayout; class TQWidget; -class KListView; +class TDEListView; class KPushButton; namespace KSpread { @@ -101,9 +101,9 @@ class DatabaseDialog : public KWizard KPushButton * m_connectButton; TQLabel * m_sheetStatus; TQLabel * m_SelectSheetLabel; - KListView * m_sheetView; + TDEListView * m_sheetView; TQWidget * m_columns; - KListView * m_columnView; + TDEListView * m_columnView; TQLabel * m_columnsStatus; TQWidget * m_options; TQComboBox * m_columns_1; 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; diff --git a/kspread/dialogs/kspread_dlg_styles.h b/kspread/dialogs/kspread_dlg_styles.h index b6a1f7c7..fda66536 100644 --- a/kspread/dialogs/kspread_dlg_styles.h +++ b/kspread/dialogs/kspread_dlg_styles.h @@ -25,7 +25,7 @@ #include <tqwidget.h> class KComboBox; -class KListView; +class TDEListView; class TQListViewItem; @@ -43,7 +43,7 @@ class StyleWidget : public TQWidget StyleWidget( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~StyleWidget(); - KListView * m_styleList; + TDEListView * m_styleList; KComboBox * m_displayBox; signals: void modifyStyle(); diff --git a/kspread/dialogs/link.cc b/kspread/dialogs/link.cc index 23cf3317..9523cf83 100644 --- a/kspread/dialogs/link.cc +++ b/kspread/dialogs/link.cc @@ -115,7 +115,7 @@ LinkDialog::LinkDialog( TQWidget*, const char* ) // populate recent files - TQStringList fileList = KRecentDocument::recentDocuments(); + TQStringList fileList = TDERecentDocument::recentDocuments(); for( TQStringList::ConstIterator it = fileList.begin();it != fileList.end(); ++it ) { KDesktopFile f(*it, true /* read only */); |