git-svn-id: svn://db.shs.com.ru/libs@925 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
</color>
|
||||
</brush>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap>:/icons/splash.png</pixmap>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
||||
Reference in New Issue
Block a user