1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

GCS/uavobjectbrowser: Increase row height in tree view.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@437 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
ephy 2010-04-07 19:50:02 +00:00 committed by ephy
parent 85aef7c757
commit 25e9e31584
3 changed files with 14 additions and 0 deletions

View File

@ -54,4 +54,10 @@ plugin_modelview.subdir = modelview
plugin_scope.depends = plugin_coreplugin
SUBDIRS += plugin_modelview
# UAVObject Browser Gadget
plugin_uavobjectbrowser.subdir = uavobjectbrowser
plugin_uavobjectbrowser.depends = plugin_coreplugin
plugin_uavobjectbrowser.depends = plugin_uavobjects
SUBDIRS += plugin_uavobjectbrowser

View File

@ -98,3 +98,8 @@ void BrowserItemDelegate::updateEditorGeometry(QWidget *editor,
{
editor->setGeometry(option.rect);
}
QSize BrowserItemDelegate::sizeHint(const QStyleOptionViewItem & option, const QModelIndex &index) const
{
return QSpinBox().sizeHint();
}

View File

@ -45,6 +45,9 @@ public:
void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option, const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem & option,
const QModelIndex &index) const;
signals: