Commit 3def9589 authored by Laurent Montel's avatar Laurent Montel 😁

QString::null->QString()

.clear()
Etc.

svn path=/trunk/KDE/kdeedu/kmplot/; revision=493787
parent 3c022490
......@@ -212,7 +212,7 @@ bool MainDlg::checkModified()
if( m_modified )
{
int saveit = KMessageBox::warningYesNoCancel( m_parent, i18n( "The plot has been modified.\n"
"Do you want to save it?" ), QString::null, KStdGuiItem::save(), KStdGuiItem::discard() );
"Do you want to save it?" ), QString(), KStdGuiItem::save(), KStdGuiItem::discard() );
switch( saveit )
{
case KMessageBox::Yes:
......@@ -249,7 +249,7 @@ void MainDlg::slotSave()
if ( oldfileversion)
{
if ( KMessageBox::warningContinueCancel( m_parent, i18n( "This file is saved with an old file format; if you save it, you cannot open the file with older versions of Kmplot. Are you sure you want to continue?" ), QString::null, i18n("Save New Format") ) == KMessageBox::Cancel)
if ( KMessageBox::warningContinueCancel( m_parent, i18n( "This file is saved with an old file format; if you save it, you cannot open the file with older versions of Kmplot. Are you sure you want to continue?" ), QString(), i18n("Save New Format") ) == KMessageBox::Cancel)
return;
}
kmplotio->save( m_url.url() );
......
......@@ -1876,7 +1876,7 @@ void View::mnuRemove_clicked()
if ( csmode == -1 )
return;
if ( KMessageBox::warningContinueCancel(this,i18n("Are you sure you want to remove this function?"), QString::null, KStdGuiItem::del()) == KMessageBox::Continue )
if ( KMessageBox::warningContinueCancel(this,i18n("Are you sure you want to remove this function?"), QString(), KStdGuiItem::del()) == KMessageBox::Continue )
{
Ufkt *ufkt = &m_parser->ufkt[m_parser->ixValue(csmode)];
char const function_type = ufkt->fstr[0].latin1();
......
......@@ -135,7 +135,7 @@ void KParameterEditor::cmdDelete_clicked()
void KParameterEditor::cmdImport_clicked()
{
KURL url = KFileDialog::getOpenURL( QString::null,i18n("*.txt|Plain Text File "));
KURL url = KFileDialog::getOpenURL( QString(),i18n("*.txt|Plain Text File "));
if ( url.isEmpty() )
return;
......@@ -186,7 +186,7 @@ void KParameterEditor::cmdImport_clicked()
KIO::NetAccess::removeTempFile( tmpfile );
return;
}
else if (KMessageBox::warningYesNo(this,i18n("Would you like to be informed about other lines that cannot be read?"), QString::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?"), QString(), i18n("Get Informed"), i18n("Ignore Information") ) == KMessageBox::No)
verbose = true;
}
}
......@@ -203,7 +203,7 @@ void KParameterEditor::cmdExport_clicked()
{
if ( !list->count() )
return;
KURL url = KFileDialog::getSaveURL( QString::null,i18n("*.txt|Plain Text File "));
KURL url = KFileDialog::getSaveURL( QString(),i18n("*.txt|Plain Text File "));
if ( url.isEmpty() )
return;
......
......@@ -64,9 +64,9 @@ KSliderWindow::KSliderWindow(QWidget* parent, int num ) :
installEventFilter(this);
m_popupmenu = new KMenu(this);
KAction *mnuMinValue = new KAction(i18n("&Change Minimum Value") ,0,this, SLOT( mnuMinValue_clicked() ),0);
KAction *mnuMinValue = new KAction(i18n("&Change Minimum Value") ,0,this, SLOT( mnuMinValue_clicked() ),actionCollection());
mnuMinValue->plug(m_popupmenu);
KAction *mnuMaxValue = new KAction(i18n("&Change Maximum Value") ,0,this, SLOT( mnuMaxValue_clicked() ),0 );
KAction *mnuMaxValue = new KAction(i18n("&Change Maximum Value") ,0,this, SLOT( mnuMaxValue_clicked() ),actionCollection() );
mnuMaxValue->plug(m_popupmenu);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment