forked from qt-creator/qt-creator
Qt Creator Plugin HOWTO documentation first and second cut
Signed-off-by: Abhishek Patil <abhishek.patil@vcreatelogic.com> Merge-request: 145 Reviewed-by: con <qtc-committer@nokia.com>
This commit is contained in:
51
doc/examples/wizard/customproject/customprojectwizard.cpp
Normal file
51
doc/examples/wizard/customproject/customprojectwizard.cpp
Normal file
@@ -0,0 +1,51 @@
|
||||
#include "customprojectwizard.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#include <QApplication>
|
||||
#include <QIcon>
|
||||
|
||||
CustomProjectWizard::CustomProjectWizard()
|
||||
{
|
||||
}
|
||||
|
||||
CustomProjectWizard::~CustomProjectWizard()
|
||||
{
|
||||
}
|
||||
|
||||
Core::IWizard::Kind CustomProjectWizard::kind() const
|
||||
{
|
||||
return IWizard::ProjectWizard;
|
||||
}
|
||||
|
||||
QIcon CustomProjectWizard::icon() const
|
||||
{
|
||||
return qApp->windowIcon();
|
||||
}
|
||||
|
||||
QString CustomProjectWizard::description() const
|
||||
{
|
||||
return "A custom project";
|
||||
}
|
||||
|
||||
QString CustomProjectWizard::name() const
|
||||
{
|
||||
return "CustomProject";
|
||||
}
|
||||
|
||||
QString CustomProjectWizard::category() const
|
||||
{
|
||||
return "FooCompanyInc";
|
||||
}
|
||||
|
||||
QString CustomProjectWizard::trCategory() const
|
||||
{
|
||||
return tr("FooCompanyInc");
|
||||
}
|
||||
|
||||
QStringList CustomProjectWizard::runWizard(const QString &path, QWidget *parent)
|
||||
{
|
||||
Q_UNUSED(path);
|
||||
Q_UNUSED(parent);
|
||||
QMessageBox::information(parent, "Custom Wizard Dialog", "Hi there!");
|
||||
return QStringList();
|
||||
}
|
||||
Reference in New Issue
Block a user