Mercurial > hg > orthanc-stone
changeset 286:6b3d91857b96 am-2
fix button titles
author | am@osimis.io |
---|---|
date | Tue, 28 Aug 2018 15:34:20 +0200 |
parents | 3c190e2bb3af |
children | 2038d76bf13f |
files | Applications/Samples/Qt/SampleMainWindow.cpp |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/Samples/Qt/SampleMainWindow.cpp Tue Aug 28 15:26:46 2018 +0200 +++ b/Applications/Samples/Qt/SampleMainWindow.cpp Tue Aug 28 15:34:20 2018 +0200 @@ -44,6 +44,17 @@ connect(ui_->toolButton2, &QToolButton::clicked, this, &SampleMainWindow::tool2Clicked); connect(ui_->pushButton1, &QPushButton::clicked, this, &SampleMainWindow::pushButton1Clicked); connect(ui_->pushButton1, &QPushButton::clicked, this, &SampleMainWindow::pushButton2Clicked); + + std::string pushButton1Name; + std::string pushButton2Name; + std::string tool1Name; + std::string tool2Name; + stoneSampleApplication_.GetButtonNames(pushButton1Name, pushButton2Name, tool1Name, tool2Name); + + ui_->toolButton1->setText(QString::fromStdString(tool1Name)); + ui_->toolButton2->setText(QString::fromStdString(tool2Name)); + ui_->pushButton1->setText(QString::fromStdString(pushButton1Name)); + ui_->pushButton2->setText(QString::fromStdString(pushButton2Name)); } SampleMainWindow::~SampleMainWindow()