Logo Search packages:      
Sourcecode: abby version File versions  Download package

aboutdlg.cpp

/*
 * abby Copyright (C) 2009 Toni Gundogdu.
 * This file is part of abby.
 *
 * abby 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 3 of the License, or
 * (at your option) any later version.
 *
 * abby 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 <http://www.gnu.org/licenses/>.
 */
#include <QDialog>

#include "aboutdlg.h"

AboutDialog::AboutDialog(
    QWidget *parent,
    const QString& ccliveVersion,
    const bool& isCcliveFlag,
    const QString& libName,
    const QString& libVersion)
    : QDialog(parent)
{
    setupUi(this);

    ccliveGBox->setTitle(isCcliveFlag ? "cclive" : "clive");

    abbyVersionLabel    ->setText(
        QCoreApplication::applicationVersion()); // set in src/main.cpp

    qtVersionLabel      ->setText(qVersion());
    ccliveVersionLabel  ->setText(ccliveVersion);
    libNameLabel        ->setText(libName+":");
    libVersionLabel     ->setText(libVersion);

    // TODO: Improve. Relies on LANG setting only.
    const char *locale = getenv("LANG");
    if (locale)
        localeLabel     ->setText(locale);
}



Generated by  Doxygen 1.6.0   Back to index