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:
36
doc/examples/loggermode/loggermodePlugin.cpp
Normal file
36
doc/examples/loggermode/loggermodePlugin.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
#include "loggermodePlugin.h"
|
||||
|
||||
#include "loggermode.h"
|
||||
|
||||
#include <QtPlugin>
|
||||
#include <QStringList>
|
||||
|
||||
LoggerModePlugin::LoggerModePlugin()
|
||||
{
|
||||
}
|
||||
|
||||
LoggerModePlugin::~LoggerModePlugin()
|
||||
{
|
||||
}
|
||||
|
||||
void LoggerModePlugin::extensionsInitialized()
|
||||
{
|
||||
}
|
||||
|
||||
bool LoggerModePlugin::initialize(const QStringList& args, QString *errMsg)
|
||||
{
|
||||
Q_UNUSED(args);
|
||||
Q_UNUSED(errMsg);
|
||||
|
||||
loggerMode = new LoggerMode;
|
||||
addAutoReleasedObject(loggerMode);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void LoggerModePlugin::shutdown()
|
||||
{
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
Q_EXPORT_PLUGIN(LoggerModePlugin)
|
||||
Reference in New Issue
Block a user