/* Drumstick MIDI monitor based on the ALSA Sequencer Copyright (C) 2006-2024, Pedro Lopez-Cabanillas This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include #include "about.h" #include "iconutils.h" About::About(QWidget *parent) : QDialog(parent) { ui.setupUi(this); retranslateUi(); IconUtils::SetLabelIcon(ui.labelIcon, ":/icons/midi/icon128.png"); IconUtils::SetWindowIcon(this); #if defined(SMALL_SCREEN) setWindowState(Qt::WindowActive | Qt::WindowMaximized); #else setMinimumSize(550,580); #endif } void About::retranslateUi() { QString strver(QT_STRINGIFY(VERSION)); #ifdef REVISION strver.append(" r"); strver.append(QT_STRINGIFY(REVISION)); #endif const QString BLD_DATE(__DATE__); const QString BLD_TIME(__TIME__); #if defined(Q_CC_GNU) || defined(Q_CC_GCCE) const QString CMP_VERSION(__VERSION__); #elif defined(Q_CC_MSVC) const QString CMP_VERSION(QString::number(_MSC_VER/100.0,'g',2)); #else const QString CMP_VERSION(QString()); #endif ui.retranslateUi(this); ui.labelVersion->setText(tr("" "" "" "" "" "" "

" "Version: %1
" "Qt version: %5
" "Drumstick version: %6
" "Build date: %2
" "Build time: %3
" "Compiler: %4" "

" "" "").arg(strver, BLD_DATE, BLD_TIME, CMP_VERSION, qVersion(), drumstick::ALSA::getDrumstickLibraryVersion())); }