Qt5: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations]
This commit is contained in:
@@ -720,13 +720,13 @@ void PythonConsole::printPrompt(PythonConsole::Prompt mode)
|
||||
// write normal messages
|
||||
if (!d->output.isEmpty()) {
|
||||
appendOutput(d->output, (int)PythonConsoleP::Message);
|
||||
d->output = QString::null;
|
||||
d->output.clear();
|
||||
}
|
||||
|
||||
// write error messages
|
||||
if (!d->error.isEmpty()) {
|
||||
appendOutput(d->error, (int)PythonConsoleP::Error);
|
||||
d->error = QString::null;
|
||||
d->error.clear();
|
||||
}
|
||||
|
||||
// Append the prompt string
|
||||
@@ -1326,7 +1326,7 @@ void PythonConsole::onSaveHistoryAs()
|
||||
|
||||
void PythonConsole::onInsertFileName()
|
||||
{
|
||||
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), tr("Insert file name"), QString::null,
|
||||
QString fn = Gui::FileDialog::getOpenFileName(Gui::getMainWindow(), tr("Insert file name"), QString(),
|
||||
QString::fromLatin1("%1 (*.*)").arg(tr("All Files")));
|
||||
if ( fn.isEmpty() )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user