2011-11-24 19:11:30 +00:00
|
|
|
/*
|
2014-08-06 13:43:29 +00:00
|
|
|
Copyright (c) 2011-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
|
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
|
|
modification, are permitted provided that the following conditions are met:
|
|
|
|
|
* Redistributions of source code must retain the above copyright
|
|
|
|
|
notice, this list of conditions and the following disclaimer.
|
|
|
|
|
* Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
documentation and/or other materials provided with the distribution.
|
|
|
|
|
* Neither the name of the Universite de Sherbrooke nor the
|
|
|
|
|
names of its contributors may be used to endorse or promote products
|
|
|
|
|
derived from this software without specific prior written permission.
|
|
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
|
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
2014-08-11 15:49:53 +00:00
|
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
|
2014-08-06 13:43:29 +00:00
|
|
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
*/
|
2011-11-24 19:11:30 +00:00
|
|
|
|
|
|
|
|
#include "AboutDialog.h"
|
|
|
|
|
#include "ui_aboutDialog.h"
|
2012-08-28 13:44:57 +00:00
|
|
|
#include <opencv2/core/version.hpp>
|
2014-11-28 21:47:02 +00:00
|
|
|
#include "find_object/Version.h"
|
2011-11-24 19:11:30 +00:00
|
|
|
|
2014-08-06 13:43:29 +00:00
|
|
|
namespace find_object {
|
|
|
|
|
|
2011-11-24 19:11:30 +00:00
|
|
|
AboutDialog::AboutDialog(QWidget * parent) :
|
|
|
|
|
QDialog(parent)
|
|
|
|
|
{
|
2012-04-04 18:15:51 +00:00
|
|
|
ui_ = new Ui_aboutDialog();
|
|
|
|
|
ui_->setupUi(this);
|
|
|
|
|
ui_->label_version->setText(PROJECT_VERSION);
|
2014-11-28 21:47:02 +00:00
|
|
|
|
|
|
|
|
QString cv_version = CV_VERSION;
|
2015-07-10 16:00:34 -04:00
|
|
|
#if FINDOBJECT_NONFREE == 1
|
2014-11-28 21:47:02 +00:00
|
|
|
cv_version.append(" [With nonfree]");
|
|
|
|
|
#else
|
|
|
|
|
cv_version.append(" [Without nonfree]");
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
ui_->label_version_opencv->setText(cv_version);
|
2011-11-24 19:11:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AboutDialog::~AboutDialog()
|
|
|
|
|
{
|
2012-04-04 18:15:51 +00:00
|
|
|
delete ui_;
|
2011-11-24 19:11:30 +00:00
|
|
|
}
|
|
|
|
|
|
2014-08-06 13:43:29 +00:00
|
|
|
}
|