first version of a help sub-layer for musredit added

This commit is contained in:
nemu
2010-03-09 09:12:17 +00:00
parent fe55074160
commit 78d0469993
49 changed files with 381 additions and 199 deletions

View File

@ -37,13 +37,14 @@
#include <QPushButton>
#include <QEvent>
#include "PHelp.h"
#include "PGetParameterBlockDialog.h"
//----------------------------------------------------------------------------------------------------
/**
* <p>
*/
PGetParameterBlockDialog::PGetParameterBlockDialog()
PGetParameterBlockDialog::PGetParameterBlockDialog(const QString helpUrl) : fHelpUrl(helpUrl)
{
setupUi(this);
@ -212,7 +213,12 @@ void PGetParameterBlockDialog::paramAdd()
*/
void PGetParameterBlockDialog::helpContent()
{
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
if (fHelpUrl.isEmpty()) {
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
} else {
PHelp *help = new PHelp(fHelpUrl);
help->show();
}
}
//----------------------------------------------------------------------------------------------------