diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp index 377c1b5165..3cf0a53433 100644 --- a/qt/update_dialog.cpp +++ b/qt/update_dialog.cpp @@ -53,8 +53,8 @@ namespace qt { //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))); + QPushButton * m_updateButton = new QPushButton(QObject::tr(CHECK_FOR_UPDATE), this); + connect(m_updateButton, SIGNAL(clicked(bool)), this, SLOT(OnButtonClick(bool))); m_tree = new QTreeWidget(this); m_tree->setColumnCount(KNumberOfColumns); @@ -65,7 +65,7 @@ namespace qt QHBoxLayout * horizontalLayout = new QHBoxLayout(); // horizontalLayout->addWidget(m_label); - horizontalLayout->addWidget(m_button); + horizontalLayout->addWidget(m_updateButton); QVBoxLayout * verticalLayout = new QVBoxLayout(); verticalLayout->addLayout(horizontalLayout); verticalLayout->addWidget(m_tree); @@ -173,8 +173,8 @@ namespace qt void UpdateDialog::OnButtonClick(bool) { - m_button->setText(QObject::tr("Checking for update...")); - m_button->setDisabled(true); + m_updateButton->setText(QObject::tr("Checking for update...")); + m_updateButton->setDisabled(true); m_storage.CheckForUpdate(); } @@ -205,8 +205,8 @@ namespace qt if (QMessageBox::Yes == QMessageBox::question(this, title, text, QMessageBox::Yes, QMessageBox::No)) m_storage.PerformUpdate(); } - m_button->setText(CHECK_FOR_UPDATE); - m_button->setDisabled(false); + m_updateButton->setText(CHECK_FOR_UPDATE); + m_updateButton->setDisabled(false); } void UpdateDialog::UpdateRowWithCountryInfo(TIndex const & index) diff --git a/qt/update_dialog.hpp b/qt/update_dialog.hpp index 03be8a12ce..b372f8c83b 100644 --- a/qt/update_dialog.hpp +++ b/qt/update_dialog.hpp @@ -16,7 +16,7 @@ namespace qt Q_OBJECT public: - UpdateDialog(QWidget * parent, storage::Storage & storage); + explicit UpdateDialog(QWidget * parent, storage::Storage & storage); ~UpdateDialog(); /// @name Called from downloader to notify GUI @@ -40,7 +40,7 @@ namespace qt private: QTreeWidget * m_tree; //QLabel * m_label; - QPushButton * m_button; + QPushButton * m_updateButton; storage::Storage & m_storage; - }; + }; } // namespace qt