summaryrefslogtreecommitdiffstats
path: root/kspread/dialogs/kspread_dlg_area.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/dialogs/kspread_dlg_area.cc')
-rw-r--r--kspread/dialogs/kspread_dlg_area.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/kspread/dialogs/kspread_dlg_area.cc b/kspread/dialogs/kspread_dlg_area.cc
index 7932ad13..880b357b 100644
--- a/kspread/dialogs/kspread_dlg_area.cc
+++ b/kspread/dialogs/kspread_dlg_area.cc
@@ -21,9 +21,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qlineedit.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
#include <kmessagebox.h>
@@ -37,46 +37,46 @@
using namespace KSpread;
-AreaDialog::AreaDialog( View * parent, const char * name, const QPoint & _marker )
- : KDialogBase( parent, name, TRUE, i18n("Area Name"), Ok | Cancel )
+AreaDialog::AreaDialog( View * tqparent, const char * name, const TQPoint & _marker )
+ : KDialogBase( tqparent, name, TRUE, i18n("Area Name"), Ok | Cancel )
{
- m_pView = parent;
+ m_pView = tqparent;
m_marker = _marker;
- QWidget * page = new QWidget( this );
+ TQWidget * page = new TQWidget( this );
setMainWidget(page);
- QVBoxLayout * lay1 = new QVBoxLayout( page, 0, spacingHint() );
+ TQVBoxLayout * lay1 = new TQVBoxLayout( page, 0, spacingHint() );
- QLabel * label = new QLabel( i18n("Enter the area name:"), page );
+ TQLabel * label = new TQLabel( i18n("Enter the area name:"), page );
lay1->addWidget( label );
- m_areaName = new QLineEdit(page);
- m_areaName->setMinimumWidth( m_areaName->sizeHint().width() * 3 );
+ m_areaName = new TQLineEdit(page);
+ m_areaName->setMinimumWidth( m_areaName->tqsizeHint().width() * 3 );
lay1->addWidget( m_areaName );
m_areaName->setFocus();
- connect ( m_areaName, SIGNAL(textChanged ( const QString & )), this, SLOT(slotAreaNamechanged( const QString &)));
- connect( this, SIGNAL( okClicked() ), this, SLOT( slotOk() ) );
+ connect ( m_areaName, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(slotAreaNamechanged( const TQString &)));
+ connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOk() ) );
enableButtonOK(!m_areaName->text().isEmpty());
}
-void AreaDialog::slotAreaNamechanged( const QString & text)
+void AreaDialog::slotAreaNamechanged( const TQString & text)
{
enableButtonOK(!text.isEmpty());
}
void AreaDialog::slotOk()
{
- QString tmp(m_areaName->text());
+ TQString tmp(m_areaName->text());
if( !tmp.isEmpty() )
{
tmp = tmp.lower();
- QRect rect( m_pView->selectionInfo()->selection() );
+ TQRect rect( m_pView->selectionInfo()->selection() );
bool newName = true;
- QValueList<Reference>::Iterator it;
- QValueList<Reference> area = m_pView->doc()->listArea();
+ TQValueList<Reference>::Iterator it;
+ TQValueList<Reference> area = m_pView->doc()->listArea();
for ( it = area.begin(); it != area.end(); ++it )
{
if(tmp == (*it).ref_name)