forked from qt-creator/qt-creator
Move the plugin examples to subdir of pluginhowto.
This commit is contained in:
36
doc/pluginhowto/examples/loggermode/loggermodePlugin.cpp
Normal file
36
doc/pluginhowto/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