summaryrefslogtreecommitdiff
path: root/doc/pluginhowto/examples/preferencepane/preferencepaneplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/pluginhowto/examples/preferencepane/preferencepaneplugin.cpp')
-rw-r--r--doc/pluginhowto/examples/preferencepane/preferencepaneplugin.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/pluginhowto/examples/preferencepane/preferencepaneplugin.cpp b/doc/pluginhowto/examples/preferencepane/preferencepaneplugin.cpp
new file mode 100644
index 0000000000..d1cc8929fb
--- /dev/null
+++ b/doc/pluginhowto/examples/preferencepane/preferencepaneplugin.cpp
@@ -0,0 +1,36 @@
+#include "preferencepaneplugin.h"
+#include "modifiedfilelister.h"
+
+#include <QtPlugin>
+#include <QStringList>
+
+PreferencePanePlugin::PreferencePanePlugin()
+{
+ // Do nothing
+}
+
+PreferencePanePlugin::~PreferencePanePlugin()
+{
+ // Do notning
+}
+
+void PreferencePanePlugin::extensionsInitialized()
+{
+ // Do nothing
+}
+
+bool PreferencePanePlugin::initialize(const QStringList& args, QString *errMsg)
+{
+ Q_UNUSED(args);
+ Q_UNUSED(errMsg);
+
+ addAutoReleasedObject(new ModifiedFileLister);
+ return true;
+}
+
+void PreferencePanePlugin::shutdown()
+{
+ // Do nothing
+}
+
+Q_EXPORT_PLUGIN(PreferencePanePlugin)