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