diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-01-12 15:34:22 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:09:45 +0300 |
commit | 0674bab340e3d2d6a94f07466499ec4e85aa4d00 (patch) | |
tree | 6a0887bb9c174e81336521583ac4727840b8e9a3 /qt/update_dialog.cpp | |
parent | 10368127c4a1d79bd7f01637440c14506aa1e621 (diff) |
[qt] About dialog
Diffstat (limited to 'qt/update_dialog.cpp')
-rw-r--r-- | qt/update_dialog.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp index 1c67ec3527..984c783085 100644 --- a/qt/update_dialog.cpp +++ b/qt/update_dialog.cpp @@ -2,8 +2,6 @@ #include "../base/assert.hpp" -#include "../version/version.hpp" - #include <boost/bind.hpp> #include <QtGui/QVBoxLayout> @@ -53,7 +51,7 @@ namespace qt UpdateDialog::UpdateDialog(QWidget * parent, Storage & storage) : QDialog(parent), m_storage(storage) { - m_label = new QLabel(QObject::tr("Version: ") + VERSION_STRING, this); + //m_label = new QLabel(QObject::tr("Version: ") + VERSION_STRING, this); m_button = new QPushButton(QObject::tr(CHECK_FOR_UPDATE), this); connect(m_button, SIGNAL(clicked(bool)), this, SLOT(OnButtonClick(bool))); @@ -66,7 +64,7 @@ namespace qt connect(m_tree, SIGNAL(itemClicked(QTreeWidgetItem *, int)), this, SLOT(OnItemClick(QTreeWidgetItem *, int))); QHBoxLayout * horizontalLayout = new QHBoxLayout(); - horizontalLayout->addWidget(m_label); +// horizontalLayout->addWidget(m_label); horizontalLayout->addWidget(m_button); QVBoxLayout * verticalLayout = new QVBoxLayout(); verticalLayout->addLayout(horizontalLayout); @@ -173,7 +171,7 @@ namespace qt void UpdateDialog::OnUpdateCheck(int64_t updateSize, char const * readme) { if (updateSize < 0) - m_label->setText(QObject::tr("No update is available")); + ;//m_label->setText(QObject::tr("No update is available")); else { QString title(QObject::tr("Update is available")); |