diff options
Diffstat (limited to 'kspread/dialogs/kspread_dlg_styles.cc')
-rw-r--r-- | kspread/dialogs/kspread_dlg_styles.cc | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kspread/dialogs/kspread_dlg_styles.cc b/kspread/dialogs/kspread_dlg_styles.cc index 088c82f3..818581f6 100644 --- a/kspread/dialogs/kspread_dlg_styles.cc +++ b/kspread/dialogs/kspread_dlg_styles.cc @@ -18,9 +18,9 @@ * Boston, MA 02110-1301, USA. */ -#include <qheader.h> -#include <qlayout.h> -#include <qmap.h> +#include <tqheader.h> +#include <tqlayout.h> +#include <tqmap.h> #include <kcombobox.h> #include <kdebug.h> @@ -39,18 +39,18 @@ using namespace KSpread; -StyleWidget::StyleWidget( QWidget * parent, const char * name, WFlags fl ) - : QWidget( parent, name, fl ) +StyleWidget::StyleWidget( TQWidget * tqparent, const char * name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { - QVBoxLayout * layout = new QVBoxLayout( this, 11, 6, "layout"); + TQVBoxLayout * tqlayout = new TQVBoxLayout( this, 11, 6, "tqlayout"); m_styleList = new KListView( this, "m_styleList" ); m_styleList->addColumn( i18n( "Styles" ) ); m_styleList->setResizeMode( KListView::AllColumns ); - layout->addWidget( m_styleList ); + tqlayout->addWidget( m_styleList ); m_displayBox = new KComboBox( FALSE, this, "m_displayBox" ); - layout->addWidget( m_displayBox ); + tqlayout->addWidget( m_displayBox ); m_styleList->header()->setLabel( 0, i18n( "Styles" ) ); m_displayBox->clear(); @@ -58,8 +58,8 @@ StyleWidget::StyleWidget( QWidget * parent, const char * name, WFlags fl ) m_displayBox->insertItem( i18n( "Applied Styles" ) ); m_displayBox->insertItem( i18n( "Custom Styles" ) ); m_displayBox->insertItem( i18n( "Hierarchical" ) ); - connect( m_styleList, SIGNAL(doubleClicked ( QListViewItem *)),this, SIGNAL( modifyStyle())); - resize( QSize(446, 384).expandedTo(minimumSizeHint()) ); + connect( m_styleList, TQT_SIGNAL(doubleClicked ( TQListViewItem *)),this, TQT_SIGNAL( modifyStyle())); + resize( TQSize(446, 384).expandedTo(tqminimumSizeHint()) ); } StyleWidget::~StyleWidget() @@ -68,17 +68,17 @@ StyleWidget::~StyleWidget() -StyleDlg::StyleDlg( View * parent, StyleManager * manager, +StyleDlg::StyleDlg( View * tqparent, StyleManager * manager, const char * name ) - : KDialogBase( parent, name, true, "", + : KDialogBase( tqparent, name, true, "", KDialogBase::Ok | KDialogBase::User1 | KDialogBase::User2 | KDialogBase::User3 | KDialogBase::Close, KDialogBase::Ok, false, KGuiItem( i18n( "&New..." ) ), KGuiItem( i18n( "&Modify..." ) ), KGuiItem( i18n( "&Delete" ) ) ), - m_view( parent ), + m_view( tqparent ), m_styleManager( manager ), m_dlg( new StyleWidget( this ) ) { setCaption( i18n( "Style Manager" ) ); - setButtonBoxOrientation( Vertical ); + setButtonBoxOrientation(Qt::Vertical ); setMainWidget( m_dlg ); slotDisplayMode( 0 ); @@ -86,11 +86,11 @@ StyleDlg::StyleDlg( View * parent, StyleManager * manager, enableButton( KDialogBase::User2, true ); enableButton( KDialogBase::User3, false ); - connect( m_dlg->m_styleList, SIGNAL( selectionChanged( QListViewItem * ) ), - this, SLOT( slotSelectionChanged( QListViewItem * ) ) ); - connect( m_dlg->m_displayBox, SIGNAL( activated( int ) ), this, SLOT( slotDisplayMode( int ) ) ); - connect( this, SIGNAL( user3Clicked() ), this, SLOT( slotUser3() ) ); - connect( m_dlg, SIGNAL( modifyStyle() ), this, SLOT( slotUser2())); + connect( m_dlg->m_styleList, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), + this, TQT_SLOT( slotSelectionChanged( TQListViewItem * ) ) ); + connect( m_dlg->m_displayBox, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotDisplayMode( int ) ) ); + connect( this, TQT_SIGNAL( user3Clicked() ), this, TQT_SLOT( slotUser3() ) ); + connect( m_dlg, TQT_SIGNAL( modifyStyle() ), this, TQT_SLOT( slotUser2())); } StyleDlg::~StyleDlg() @@ -99,7 +99,7 @@ StyleDlg::~StyleDlg() void StyleDlg::fillComboBox() { - class Map : public QMap<CustomStyle *, KListViewItem *> {}; + class Map : public TQMap<CustomStyle *, KListViewItem *> {}; Map entries; entries.clear(); @@ -111,13 +111,13 @@ void StyleDlg::fillComboBox() while ( entries.count() != count ) { - if ( entries.find( iter.data() ) == entries.end() ) + if ( entries.tqfind( iter.data() ) == entries.end() ) { - if ( iter.data()->parent() == 0 ) + if ( iter.data()->tqparent() == 0 ) entries[iter.data()] = new KListViewItem( m_dlg->m_styleList, iter.data()->name() ); else { - Map::const_iterator i = entries.find( iter.data()->parent() ); + Map::const_iterator i = entries.tqfind( iter.data()->tqparent() ); if ( i != entries.end() ) entries[iter.data()] = new KListViewItem( i.data(), iter.data()->name() ); } @@ -187,7 +187,7 @@ void StyleDlg::slotOk() CustomStyle * s = 0; - QString name( item->text( 0 ) ); + TQString name( item->text( 0 ) ); if ( name == i18n( "Default" ) ) s = m_styleManager->defaultStyle(); else @@ -222,7 +222,7 @@ void StyleDlg::slotUser1() if ( item ) { - QString name( item->text( 0 ) ); + TQString name( item->text( 0 ) ); if ( name == i18n( "Default" ) ) s = m_styleManager->defaultStyle(); else @@ -232,11 +232,11 @@ void StyleDlg::slotUser1() s = m_styleManager->defaultStyle(); int i = 1; - QString newName( i18n( "style%1" ).arg( m_styleManager->count() + i ) ); + TQString newName( i18n( "style%1" ).tqarg( m_styleManager->count() + i ) ); while ( m_styleManager->style( newName ) != 0 ) { ++i; - newName = i18n( "style%1" ).arg( m_styleManager->count() + i ); + newName = i18n( "style%1" ).tqarg( m_styleManager->count() + i ); } CustomStyle * style = new CustomStyle( newName, s ); @@ -264,7 +264,7 @@ void StyleDlg::slotUser2() CustomStyle * s = 0; - QString name( item->text( 0 ) ); + TQString name( item->text( 0 ) ); if ( name == i18n( "Default" ) ) s = m_styleManager->defaultStyle(); else @@ -286,7 +286,7 @@ void StyleDlg::slotUser3() CustomStyle * s = 0; - QString name( item->text( 0 ) ); + TQString name( item->text( 0 ) ); if ( name == i18n( "Default" ) ) s = m_styleManager->defaultStyle(); else @@ -304,13 +304,13 @@ void StyleDlg::slotUser3() slotDisplayMode( m_dlg->m_displayBox->currentItem() ); } -void StyleDlg::slotSelectionChanged( QListViewItem * item ) +void StyleDlg::slotSelectionChanged( TQListViewItem * item ) { if ( !item ) return; CustomStyle* style = 0; - QString name( item->text( 0 ) ); + TQString name( item->text( 0 ) ); if ( name == i18n( "Default" ) ) style = m_styleManager->defaultStyle(); else |