set window icon consistently where possible
This commit is contained in:
@ -190,6 +190,7 @@ ImageViewer::ImageViewer(const QString &fileName, LammpsWrapper *_lammps, QWidge
|
||||
mainLayout->addLayout(menuLayout);
|
||||
mainLayout->addWidget(scrollArea);
|
||||
mainLayout->addWidget(buttonBox);
|
||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
||||
setWindowTitle(QString("Image Viewer: ") + QFileInfo(fileName).fileName());
|
||||
createActions();
|
||||
|
||||
|
||||
@ -1111,6 +1111,7 @@ void LammpsGui::about()
|
||||
|
||||
QMessageBox msg;
|
||||
msg.setWindowTitle("About LAMMPS");
|
||||
msg.setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
||||
msg.setText(version.c_str());
|
||||
msg.setInformativeText(info.c_str());
|
||||
msg.setIconPixmap(QPixmap(":/lammps-icon-128x128.png").scaled(64, 64));
|
||||
@ -1130,6 +1131,7 @@ void LammpsGui::help()
|
||||
{
|
||||
QMessageBox msg;
|
||||
msg.setWindowTitle("LAMMPS-GUI Quick Help");
|
||||
msg.setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
||||
msg.setText("<div>This is LAMMPS-GUI version " LAMMPS_GUI_VERSION "</div>");
|
||||
msg.setInformativeText("<p>LAMMPS GUI is a graphical text editor that is linked to the LAMMPS "
|
||||
"library and thus can run LAMMPS directly using the contents of the "
|
||||
|
||||
@ -78,6 +78,7 @@ Preferences::Preferences(LammpsWrapper *_lammps, QWidget *parent) :
|
||||
layout->addWidget(tabWidget);
|
||||
layout->addWidget(buttonBox);
|
||||
setLayout(layout);
|
||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
||||
setWindowTitle("LAMMPS-GUI - Preferences");
|
||||
resize(500, 400);
|
||||
}
|
||||
|
||||
@ -55,6 +55,7 @@ SetVariables::SetVariables(QList<QPair<QString, QString>> &_vars, QWidget *paren
|
||||
|
||||
layout->addWidget(buttonBox);
|
||||
setLayout(layout);
|
||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
||||
setWindowTitle("LAMMPS-GUI - Set Variables");
|
||||
resize(300, 200);
|
||||
}
|
||||
|
||||
@ -104,6 +104,7 @@ SlideShow::SlideShow(const QString &fileName, QWidget *parent) :
|
||||
mainLayout->addWidget(imageLabel);
|
||||
mainLayout->addLayout(navLayout);
|
||||
mainLayout->addWidget(buttonBox);
|
||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
||||
setWindowTitle(QString("LAMMPS-GUI - Slide Show: ") + QFileInfo(fileName).fileName());
|
||||
|
||||
imagefiles.clear();
|
||||
|
||||
Reference in New Issue
Block a user