mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
LP-286 Clean-up spelling, headers and uncrustify
This commit is contained in:
parent
f0b3156abe
commit
1c67853bfd
@ -26,17 +26,16 @@
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "uavobjectbrowserwidget.h"
|
||||
#include "browseritemdelegate.h"
|
||||
#include "fieldtreeitem.h"
|
||||
|
||||
BrowserItemDelegate::BrowserItemDelegate(QObject *parent) :
|
||||
BrowserItemDelegate::BrowserItemDelegate(QObject *parent) :
|
||||
QStyledItemDelegate(parent)
|
||||
{}
|
||||
|
||||
QWidget *BrowserItemDelegate::createEditor(QWidget *parent,
|
||||
const QStyleOptionViewItem & option,
|
||||
const QModelIndex & index) const
|
||||
const QModelIndex &index) const
|
||||
{
|
||||
Q_UNUSED(option)
|
||||
FieldTreeItem * item = static_cast<FieldTreeItem *>(index.data(Qt::UserRole).value<void *>());
|
||||
@ -46,7 +45,7 @@ QWidget *BrowserItemDelegate::createEditor(QWidget *parent,
|
||||
}
|
||||
|
||||
void BrowserItemDelegate::setEditorData(QWidget *editor,
|
||||
const QModelIndex & index) const
|
||||
const QModelIndex &index) const
|
||||
{
|
||||
FieldTreeItem *item = static_cast<FieldTreeItem *>(index.data(Qt::UserRole).value<void *>());
|
||||
QVariant value = index.model()->data(index, Qt::EditRole);
|
||||
|
@ -180,7 +180,7 @@ void UAVObjectBrowserWidget::useScientificNotation(bool scientific)
|
||||
|
||||
void UAVObjectBrowserWidget::sendUpdate()
|
||||
{
|
||||
// TODO why steal focys ?
|
||||
// TODO why steal focus ?
|
||||
this->setFocus();
|
||||
|
||||
ObjectTreeItem *objItem = findCurrentObjectTreeItem();
|
||||
@ -233,7 +233,7 @@ QString UAVObjectBrowserWidget::loadFileIntoString(QString fileName)
|
||||
|
||||
void UAVObjectBrowserWidget::saveObject()
|
||||
{
|
||||
// TODO why steal focys ?
|
||||
// TODO why steal focus ?
|
||||
this->setFocus();
|
||||
|
||||
// Send update so that the latest value is saved
|
||||
|
@ -30,7 +30,6 @@
|
||||
|
||||
#include "treeitem.h"
|
||||
#include <QAbstractItemModel>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QList>
|
||||
#include <QColor>
|
||||
|
Loading…
x
Reference in New Issue
Block a user