mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-07 13:52:43 -04:00
Add a static and a build time version information
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1409 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
774476f4d3
commit
a36475a167
5 changed files with 112 additions and 76 deletions
|
@ -17,10 +17,10 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
|
||||
#include "HelpDialog.h"
|
||||
****************************************************************/
|
||||
|
||||
|
||||
#include "HelpDialog.h"
|
||||
#include "rsiface/rsiface.h"
|
||||
|
||||
#include <iostream>
|
||||
|
@ -37,13 +37,13 @@
|
|||
#include <QPixmap>
|
||||
|
||||
/* Images for context menu icons */
|
||||
#define IMAGE_DOWNLOAD ":/images/start.png"
|
||||
|
||||
/** Constructor */
|
||||
HelpDialog::HelpDialog(QWidget *parent)
|
||||
:QDialog(parent)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
#define IMAGE_DOWNLOAD ":/images/start.png"
|
||||
|
||||
/** Constructor */
|
||||
HelpDialog::HelpDialog(QWidget *parent)
|
||||
:QDialog(parent)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
//QFile licenseFile(QLatin1String(":/images/COPYING"));
|
||||
|
@ -60,16 +60,22 @@ HelpDialog::HelpDialog(QWidget *parent)
|
|||
QFile thanksFile(QLatin1String(":/help/thanks.html"));
|
||||
if (thanksFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
QTextStream in(&thanksFile);
|
||||
ui.thanks->setText(in.readAll());
|
||||
ui.thanks->setText(in.readAll());
|
||||
}
|
||||
|
||||
|
||||
QFile versionFile(QLatin1String(":/help/version.html"));
|
||||
if (versionFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
QTextStream in(&versionFile);
|
||||
ui.version->setText(in.readAll());
|
||||
}
|
||||
|
||||
ui.label_2->setMinimumWidth(20);
|
||||
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifdef Q_WS_WIN
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
/* Hide platform specific features */
|
||||
#ifdef Q_WS_WIN
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue