remove unused argument

This commit is contained in:
Axel Kohlmeyer
2024-08-20 23:55:35 -04:00
parent b65c92e2bb
commit 2746ec609f
3 changed files with 3 additions and 5 deletions

View File

@ -133,7 +133,7 @@ static int get_pte_from_mass(double mass)
static const QString blank(" ");
ImageViewer::ImageViewer(const QString &fileName, LammpsWrapper *_lammps, QString title, QWidget *parent) :
ImageViewer::ImageViewer(const QString &fileName, LammpsWrapper *_lammps, QWidget *parent) :
QDialog(parent), menuBar(new QMenuBar), imageLabel(new QLabel), scrollArea(new QScrollArea),
saveAsAct(nullptr), copyAct(nullptr), cmdAct(nullptr), zoomInAct(nullptr), zoomOutAct(nullptr),
normalSizeAct(nullptr), lammps(_lammps), group("all"), filename(fileName), useelements(false),

View File

@ -34,8 +34,7 @@ class ImageViewer : public QDialog {
Q_OBJECT
public:
explicit ImageViewer(const QString &fileName, LammpsWrapper *_lammps, QString title = "",
QWidget *parent = nullptr);
explicit ImageViewer(const QString &fileName, LammpsWrapper *_lammps, QWidget *parent = nullptr);
private slots:
void saveAs();

View File

@ -823,8 +823,7 @@ void LammpsGui::inspect_file(const QString &fileName)
dataviewer->show();
ilist->data = dataviewer;
QFile(infodata).remove();
auto *inspect_image = new ImageViewer(
fileName, &lammps, QString("LAMMPS-GUI: Image for %1").arg(shortName));
auto *inspect_image = new ImageViewer(fileName, &lammps);
inspect_image->setFont(font());
inspect_image->show();
ilist->image = inspect_image;