<table><tr><td style="">kossebau planned changes to this revision.<br />kossebau added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4375" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Example output:<br />
QObject template,<br />
id "KDevelop::Foo"<br />
selected methods to override:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">default constructor</li>
<li class="remarkup-list-item">destructor</li>
<li class="remarkup-list-item">bool event(QEvent* event)</li>
</ul>
<p>member: "Bar bar"</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">/*
* <one line to give the library's name and an idea of what it does.>
* Copyright (C) 2017 Hans Entwickler <email>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef KDEVELOP_FOO_H
#define KDEVELOP_FOO_H
namespace KDevelop {
/**
* @todo write docs
*/
class Foo : public QObject
{
Q_OBJECT
Q_PROPERTY(Bar bar READ bar WRITE setBar)
public:
/**
* Default constructor
*
* @todo write arguments/return docs
* @return TODO
*/
Foo();
/**
* Destructor
*
* @todo write arguments/return docs
* @return TODO
*/
~Foo();
/**
* @todo write docs
*
* @todo write arguments/return docs
* @param event TODO
* @return TODO
*/
virtual bool event(QEvent* event);
/**
* @return the bar
*/
Bar bar() const;
public Q_SLOTS:
/**
* Sets the bar.
*
* @param bar the new bar
*/
void setBar(Bar bar);
private:
Bar m_bar;
};
}
#endif // KDEVELOP_FOO_H</pre></div>
<p>and</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">/*
* <one line to give the library's name and an idea of what it does.>
* Copyright (C) 2017 Hans Entwickler <email>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include "foo.h"
using namespace KDevelop;
Foo::Foo()
{
}
Foo::~Foo()
{
}
bool Foo::event(QEvent* event)
{
}
Bar Foo::bar() const
{
return m_bar;
}
void Foo::setBar(Bar bar)
{
m_bar = bar;
}</pre></div>
<p>Sigh... the constructor/destructor api dox is flawed, seems somewhere in my stashing/branch switching I managed to upload an older version, moment...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4375" rel="noreferrer">https://phabricator.kde.org/D4375</a></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>kossebau, KDevelop<br /><strong>Cc: </strong>kdevelop-devel<br /></div>