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(" "); 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), QDialog(parent), menuBar(new QMenuBar), imageLabel(new QLabel), scrollArea(new QScrollArea),
saveAsAct(nullptr), copyAct(nullptr), cmdAct(nullptr), zoomInAct(nullptr), zoomOutAct(nullptr), saveAsAct(nullptr), copyAct(nullptr), cmdAct(nullptr), zoomInAct(nullptr), zoomOutAct(nullptr),
normalSizeAct(nullptr), lammps(_lammps), group("all"), filename(fileName), useelements(false), normalSizeAct(nullptr), lammps(_lammps), group("all"), filename(fileName), useelements(false),

View File

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

View File

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