Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
QtAboutDialog is a Qt dialog
class to display an About.
qtaboutdialog.h
//---------------------------------------------------------------------------
/*
QtAboutDialog, Qt dialog for About
Copyright (C) 2011 Richel Bilderbeek
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 3 of the License, or
(at your option) any later version.
This program 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/>.
*/
//---------------------------------------------------------------------------
//From http://www.richelbilderbeek.nl/CppQtAboutDialog.htm
//---------------------------------------------------------------------------
#ifndef QTDIALOGABOUT_H
#define QTDIALOGABOUT_H
//---------------------------------------------------------------------------
#ifdef _WIN32
//See http://www.richelbilderbeek.nl/CppCompileErrorSwprintfHasNotBeenDeclared.htm
#undef __STRICT_ANSI__
#endif
//---------------------------------------------------------------------------
#include <string>
#include <vector>
//---------------------------------------------------------------------------
#include <QDialog>
//---------------------------------------------------------------------------
#include "about.h"
//---------------------------------------------------------------------------
namespace Ui {
class QtAboutDialog;
}
//---------------------------------------------------------------------------
class QtAboutDialog : public QDialog
{
Q_OBJECT
public:
explicit QtAboutDialog(const About& about);
~QtAboutDialog();
static const std::string GetVersion();
static const std::vector<std::string> GetVersionHistory();
protected:
void changeEvent(QEvent *e);
private:
Ui::QtAboutDialog *ui;
};
//---------------------------------------------------------------------------
#endif // QTDIALOGABOUT_H
|
qtaboutdialog.cpp
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.

This page has been created by the tool CodeToHtml