git-svn-id: svn://db.shs.com.ru/libs@925 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2020-04-01 17:11:32 +00:00
parent 51e3fa45d6
commit e3a51eef6d
3 changed files with 7 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ AboutWindow::AboutWindow(QWidget * parent): QDialog(parent), ui(new Ui::AboutWin
foreach (SSPair p, builds) {
lay->addRow(p.first, new QLabel(p.second));
}
ui->imageView->setPixmap(QPixmap::fromImage(logo_im));
ui->labelComment->setText(comment);
ui->labelComment->setHidden(comment.isEmpty());
//ui->labelArch->setText(QSysInfo::currentCpuArchitecture());
@@ -81,6 +82,11 @@ void AboutWindow::setLogo(QImage im) {
}
void AboutWindow::setLogo(QString path) {
logo = QImage(path);
}
void AboutWindow::addVersion(QString name, QString version) {
if (!name.endsWith(":")) name.append(":");
foreach (const SSPair & p, versions) {

View File

@@ -24,6 +24,7 @@ class QAD_EXPORT AboutWindow: public QDialog
public:
static void setLogo(QImage im);
static void setLogo(QString path);
static void addVersion(QString name, QString version);
static void addBuildInfo(QString name, QString value);
static void setComment(QString text);

View File

@@ -28,9 +28,6 @@
</color>
</brush>
</property>
<property name="pixmap">
<pixmap>:/icons/splash.png</pixmap>
</property>
</widget>
</item>
<item>