apply clang-format
This commit is contained in:
@ -138,8 +138,7 @@ void ChartWindow::quit()
|
|||||||
void ChartWindow::reset_zoom()
|
void ChartWindow::reset_zoom()
|
||||||
{
|
{
|
||||||
int choice = columns->currentData().toInt();
|
int choice = columns->currentData().toInt();
|
||||||
if ((choice >= 0) && (choice < charts.size()))
|
if ((choice >= 0) && (choice < charts.size())) charts[choice]->reset_zoom();
|
||||||
charts[choice]->reset_zoom();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChartWindow::stop_run()
|
void ChartWindow::stop_run()
|
||||||
|
|||||||
@ -885,8 +885,9 @@ void LammpsGui::logupdate()
|
|||||||
else
|
else
|
||||||
slideshow->hide();
|
slideshow->hide();
|
||||||
} else {
|
} else {
|
||||||
slideshow->setWindowTitle(
|
slideshow->setWindowTitle(QString("LAMMPS-GUI - Slide Show - %1 - Run %2")
|
||||||
QString("LAMMPS-GUI - Slide Show - %1 - Run %2").arg(current_file).arg(run_counter));
|
.arg(current_file)
|
||||||
|
.arg(run_counter));
|
||||||
if (QSettings().value("viewslide", true).toBool()) slideshow->show();
|
if (QSettings().value("viewslide", true).toBool()) slideshow->show();
|
||||||
}
|
}
|
||||||
slideshow->add_image(imagefile);
|
slideshow->add_image(imagefile);
|
||||||
@ -1254,7 +1255,8 @@ void LammpsGui::help()
|
|||||||
msg.setWindowTitle("LAMMPS-GUI Quick Help");
|
msg.setWindowTitle("LAMMPS-GUI Quick Help");
|
||||||
msg.setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
msg.setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
msg.setText("<div>This is LAMMPS-GUI version " LAMMPS_GUI_VERSION "</div>");
|
msg.setText("<div>This is LAMMPS-GUI version " LAMMPS_GUI_VERSION "</div>");
|
||||||
msg.setInformativeText("<p>LAMMPS-GUI is a graphical text editor that is customized for "
|
msg.setInformativeText(
|
||||||
|
"<p>LAMMPS-GUI is a graphical text editor that is customized for "
|
||||||
"editing LAMMPS input files and linked to the LAMMPS "
|
"editing LAMMPS input files and linked to the LAMMPS "
|
||||||
"library and thus can run LAMMPS directly using the contents of the "
|
"library and thus can run LAMMPS directly using the contents of the "
|
||||||
"text buffer as input. It can retrieve and display information from "
|
"text buffer as input. It can retrieve and display information from "
|
||||||
|
|||||||
@ -30,7 +30,8 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
|
||||||
const QString LogWindow::yaml_regex = QStringLiteral("^(keywords:.*$|data:$|---$|\\.\\.\\.$| - \\[.*\\]$)");
|
const QString LogWindow::yaml_regex =
|
||||||
|
QStringLiteral("^(keywords:.*$|data:$|---$|\\.\\.\\.$| - \\[.*\\]$)");
|
||||||
|
|
||||||
LogWindow::LogWindow(const QString &_filename, QWidget *parent) :
|
LogWindow::LogWindow(const QString &_filename, QWidget *parent) :
|
||||||
QPlainTextEdit(parent), filename(_filename)
|
QPlainTextEdit(parent), filename(_filename)
|
||||||
|
|||||||
@ -94,7 +94,8 @@ bool StdCapture::EndCapture()
|
|||||||
buf[bytesRead] = 0;
|
buf[bytesRead] = 0;
|
||||||
m_captured += buf;
|
m_captured += buf;
|
||||||
} else if (bytesRead < 0) {
|
} else if (bytesRead < 0) {
|
||||||
fd_blocked = ((errno == EAGAIN) || (errno == EWOULDBLOCK) || (errno == EINTR)) && (maxwait > 0);
|
fd_blocked =
|
||||||
|
((errno == EAGAIN) || (errno == EWOULDBLOCK) || (errno == EINTR)) && (maxwait > 0);
|
||||||
|
|
||||||
if (fd_blocked) std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
if (fd_blocked) std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||||
--maxwait;
|
--maxwait;
|
||||||
|
|||||||
Reference in New Issue
Block a user