summaryrefslogtreecommitdiffstats
path: root/kmplot/kmplot/kparametereditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmplot/kmplot/kparametereditor.cpp')
-rw-r--r--kmplot/kmplot/kparametereditor.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kmplot/kmplot/kparametereditor.cpp b/kmplot/kmplot/kparametereditor.cpp
index 325241e9..9e87dda4 100644
--- a/kmplot/kmplot/kparametereditor.cpp
+++ b/kmplot/kmplot/kparametereditor.cpp
@@ -42,8 +42,8 @@
class ParameterValueList;
-KParameterEditor::KParameterEditor(XParser *m, TQValueList<ParameterValueItem> *l, TQWidget *parent, const char *name)
- : QParameterEditor(parent,name, true, Qt::WDestructiveClose), m_parameter(l), m_parser(m)
+KParameterEditor::KParameterEditor(XParser *m, TQValueList<ParameterValueItem> *l, TQWidget *tqparent, const char *name)
+ : QParameterEditor(tqparent,name, true, TQt::WDestructiveClose), m_parameter(l), m_parser(m)
{
for ( TQValueList<ParameterValueItem>::Iterator it = m_parameter->begin(); it != m_parameter->end(); ++it )
list->insertItem( (*it).expression );
@@ -89,7 +89,7 @@ void KParameterEditor::cmdNew_clicked()
}
if ( checkTwoOfIt(result) )
{
- KMessageBox::error(0,i18n("The value %1 already exists and will therefore not be added.").arg(result));
+ KMessageBox::error(0,i18n("The value %1 already exists and will therefore not be added.").tqarg(result));
continue;
}
list->insertItem(result);
@@ -116,7 +116,7 @@ void KParameterEditor::cmdEdit_clicked()
if ( checkTwoOfIt(result) )
{
if( result != list->currentText() )
- KMessageBox::error(0,i18n("The value %1 already exists.").arg(result));
+ KMessageBox::error(0,i18n("The value %1 already exists.").tqarg(result));
continue;
}
list->removeItem( list->currentItem());
@@ -134,7 +134,7 @@ void KParameterEditor::cmdDelete_clicked()
void KParameterEditor::cmdImport_clicked()
{
- KURL url = KFileDialog::getOpenURL( TQString::null,i18n("*.txt|Plain Text File "));
+ KURL url = KFileDialog::getOpenURL( TQString(),i18n("*.txt|Plain Text File "));
if ( url.isEmpty() )
return;
@@ -179,13 +179,13 @@ void KParameterEditor::cmdImport_clicked()
}
else if ( !verbose)
{
- if ( KMessageBox::warningContinueCancel(this,i18n("Line %1 is not a valid parameter value and will therefore not be included. Do you want to continue?").arg(i) ) == KMessageBox::Cancel)
+ if ( KMessageBox::warningContinueCancel(this,i18n("Line %1 is not a valid parameter value and will therefore not be included. Do you want to continue?").tqarg(i) ) == KMessageBox::Cancel)
{
file.close();
KIO::NetAccess::removeTempFile( tmpfile );
return;
}
- else if (KMessageBox::warningYesNo(this,i18n("Would you like to be informed about other lines that cannot be read?"), TQString::null, i18n("Get Informed"), i18n("Ignore Information") ) == KMessageBox::No)
+ else if (KMessageBox::warningYesNo(this,i18n("Would you like to be informed about other lines that cannot be read?"), TQString(), i18n("Get Informed"), i18n("Ignore Information") ) == KMessageBox::No)
verbose = true;
}
}
@@ -202,11 +202,11 @@ void KParameterEditor::cmdExport_clicked()
{
if ( !list->count() )
return;
- KURL url = KFileDialog::getSaveURL( TQString::null,i18n("*.txt|Plain Text File "));
+ KURL url = KFileDialog::getSaveURL( TQString(),i18n("*.txt|Plain Text File "));
if ( url.isEmpty() )
return;
- if( !KIO::NetAccess::exists( url,false,this ) || KMessageBox::warningContinueCancel( this, i18n( "A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?" ).arg( url.url()), i18n( "Overwrite File?" ), KGuiItem( i18n( "&Overwrite" ) ) ) == KMessageBox::Continue )
+ if( !KIO::NetAccess::exists( url,false,this ) || KMessageBox::warningContinueCancel( this, i18n( "A file named \"%1\" already exists. Are you sure you want to continue and overwrite this file?" ).tqarg( url.url()), i18n( "Overwrite File?" ), KGuiItem( i18n( "&Overwrite" ) ) ) == KMessageBox::Continue )
{
TQString tmpfile;
TQFile file;
@@ -289,7 +289,7 @@ void KParameterEditor::varlist_doubleClicked( TQListBoxItem * )
bool KParameterEditor::checkTwoOfIt(const TQString & text)
{
- if ( list->findItem(text,Qt::ExactMatch) == 0)
+ if ( list->tqfindItem(text,TQt::ExactMatch) == 0)
return false;
else
return true;