remove unused argument
This commit is contained in:
@ -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),
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user