diff options
Diffstat (limited to 'kspread/dialogs/kspread_dlg_format.cc')
-rw-r--r-- | kspread/dialogs/kspread_dlg_format.cc | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kspread/dialogs/kspread_dlg_format.cc b/kspread/dialogs/kspread_dlg_format.cc index 98c6d02e..6374c102 100644 --- a/kspread/dialogs/kspread_dlg_format.cc +++ b/kspread/dialogs/kspread_dlg_format.cc @@ -23,11 +23,11 @@ * Boston, MA 02110-1301, USA. */ -#include <qcombobox.h> -#include <qfile.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qpushbutton.h> +#include <tqcombobox.h> +#include <tqfile.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqpushbutton.h> #include <kbuttonbox.h> #include <kmessagebox.h> @@ -54,22 +54,22 @@ FormatDialog::FormatDialog( View* view, const char* name ) m_cells[ i ] = 0; m_view = view; - QWidget *page = new QWidget( this ); + TQWidget *page = new TQWidget( this ); setMainWidget(page); - QVBoxLayout *vbox = new QVBoxLayout( page, 0, spacingHint() ); + TQVBoxLayout *vbox = new TQVBoxLayout( page, 0, spacingHint() ); - QLabel *toplabel = new QLabel( i18n("Select the sheet style to apply:"), page ); - m_combo = new QComboBox( page ); - m_label = new QLabel( page ); + TQLabel *toplabel = new TQLabel( i18n("Select the sheet style to apply:"), page ); + m_combo = new TQComboBox( page ); + m_label = new TQLabel( page ); vbox->addWidget( toplabel ); vbox->addWidget( m_combo ); vbox->addWidget( m_label ); - QStringList lst = Factory::global()->dirs()->findAllResources( "sheet-styles", "*.ksts", TRUE ); + TQStringList lst = Factory::global()->dirs()->findAllResources( "sheet-styles", "*.ksts", TRUE ); - QStringList::Iterator it = lst.begin(); + TQStringList::Iterator it = lst.begin(); for( ; it != lst.end(); ++it ) { KSimpleConfig cfg( *it, TRUE ); @@ -88,8 +88,8 @@ FormatDialog::FormatDialog( View* view, const char* name ) slotActivated( 0 ); - connect( this, SIGNAL( okClicked() ), this, SLOT( slotOk() ) ); - connect( m_combo, SIGNAL( activated( int ) ), this, SLOT( slotActivated( int ) ) ); + connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOk() ) ); + connect( m_combo, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotActivated( int ) ) ); } FormatDialog::~FormatDialog() @@ -102,11 +102,11 @@ void FormatDialog::slotActivated( int index ) { enableButtonOK(true); - QString img = Factory::global()->dirs()->findResource( "sheet-styles", m_entries[ index ].image ); + TQString img = Factory::global()->dirs()->findResource( "sheet-styles", m_entries[ index ].image ); if ( img.isEmpty() ) { - QString str( i18n( "Could not find image %1." ) ); - str = str.arg( m_entries[ index ].image ); + TQString str( i18n( "Could not find image %1." ) ); + str = str.tqarg( m_entries[ index ].image ); KMessageBox::error( this, str ); enableButtonOK(false); @@ -114,11 +114,11 @@ void FormatDialog::slotActivated( int index ) return; } - QPixmap pix( img ); + TQPixmap pix( img ); if ( pix.isNull() ) { - QString str( i18n( "Could not load image %1." ) ); - str = str.arg( img ); + TQString str( i18n( "Could not load image %1." ) ); + str = str.tqarg( img ); KMessageBox::error( this,str ); enableButtonOK(false); @@ -134,34 +134,34 @@ void FormatDialog::slotOk() m_view->doc()->emitBeginOperation( false ); - QString xml = Factory::global()->dirs()->findResource( "sheet-styles", m_entries[ m_combo->currentItem() ].xml ); + TQString xml = Factory::global()->dirs()->findResource( "sheet-styles", m_entries[ m_combo->currentItem() ].xml ); if ( xml.isEmpty() ) { - QString str( i18n( "Could not find sheet-style XML file '%1'." ) ); - str = str.arg( m_entries[ m_combo->currentItem() ].xml ); + TQString str( i18n( "Could not find sheet-style XML file '%1'." ) ); + str = str.tqarg( m_entries[ m_combo->currentItem() ].xml ); KMessageBox::error( this, str ); return; } - QFile file( xml ); + TQFile file( xml ); file.open( IO_ReadOnly ); - QDomDocument doc; + TQDomDocument doc; doc.setContent( &file ); file.close(); if ( !parseXML( doc ) ) { - QString str( i18n( "Parsing error in sheet-style XML file %1." ) ); - str = str.arg( m_entries[ m_combo->currentItem() ].xml ); + TQString str( i18n( "Parsing error in sheet-style XML file %1." ) ); + str = str.tqarg( m_entries[ m_combo->currentItem() ].xml ); KMessageBox::error( this, str ); return; } - QRect r = m_view->selectionInfo()->selection(); + TQRect r = m_view->selectionInfo()->selection(); if ( !m_view->doc()->undoLocked() ) { - QString title=i18n("Change Format"); + TQString title=i18n("Change Format"); UndoCellFormat *undo = new UndoCellFormat( m_view->doc(), m_view->activeSheet(), r, title); m_view->doc()->addCommand( undo ); } @@ -317,7 +317,7 @@ void FormatDialog::slotOk() accept(); } -bool FormatDialog::parseXML( const QDomDocument& doc ) +bool FormatDialog::parseXML( const TQDomDocument& doc ) { for( int i = 0; i < 16; ++i ) { @@ -325,7 +325,7 @@ bool FormatDialog::parseXML( const QDomDocument& doc ) m_cells[ i ] = 0; } - QDomElement e = doc.documentElement().firstChild().toElement(); + TQDomElement e = doc.documentElement().firstChild().toElement(); for( ; !e.isNull(); e = e.nextSibling().toElement() ) { if ( e.tagName() == "cell" ) |