#include "build_info.h"
#define SDK_NAME "Tizen SDK"
+#define SDK_VERSION_FILE_PATH "../../../../../sdk.version"
+#define SDK_VERSION_FILE_KEY "TIZEN_SDK_VERSION"
#define URL_TIZEN_ORG "<a href=\"https://developer.tizen.org\">https://developer.tizen.org</a>";
AboutDialog::AboutDialog(QWidget *parent) :
imageLabel->setPixmap(QPixmap(":/images/tizen_sdk.png"));
upsideLayout->addWidget(imageLabel);
- QSettings sdkVersion("../../../sdk.version", QSettings::IniFormat);
- QString version = sdkVersion.value("TIZEN_SDK_VERSION").toString();
+ QSettings sdkVersion(SDK_VERSION_FILE_PATH, QSettings::IniFormat);
+ QString version = sdkVersion.value(SDK_VERSION_FILE_KEY).toString();
if (version.isEmpty() == true) {
qWarning("failed to load SDK version");
version = "Undefined";
}
+ /*
QString SnapshotName = "Undefined";
QFile file("../../../install-manager/installmanager.conf");
if (file.open(QIODevice::ReadOnly | QIODevice::Text) == true) {
} else {
qWarning("failed to load snapshot name");
}
+ */
QString aboutText = QString(SDK_NAME) + "<p>"
+ "Version : " + version + "<br>"
- + "Snapshot : " + SnapshotName + "<br>"
+ /* + "Snapshot : " + SnapshotName + "<br>" */
+ "Build Date : " + QString(build_date) + "<p><br>"
+ "Visit " + URL_TIZEN_ORG;
baseLayout->addLayout(downsideLayout);
}
+/* override */
void AboutDialog::showEvent(QShowEvent *event)
{
Q_UNUSED(event)