mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added a Delegate for editing Cylinders
Now when you edit 'Type', a drop-down list will appear and will enable you to choose from it's contents. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
d6bee060af
commit
fc4243eef0
3 changed files with 33 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "../helpers.h"
|
||||
#include "../statistics.h"
|
||||
#include "divelistview.h"
|
||||
#include "modeldelegates.h"
|
||||
|
||||
#include <QLabel>
|
||||
#include <QDebug>
|
||||
|
@ -81,6 +82,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
|
|||
|
||||
ui->cylinders->setColumnWidth( CylindersModel::REMOVE, 24);
|
||||
ui->cylinders->horizontalHeader()->setResizeMode (CylindersModel::REMOVE , QHeaderView::Fixed);
|
||||
ui->cylinders->setItemDelegateForColumn(CylindersModel::TYPE, new TankInfoDelegate());
|
||||
ui->weights->setColumnWidth( WeightModel::REMOVE, 24);
|
||||
ui->cylinders->horizontalHeader()->setResizeMode (WeightModel::REMOVE , QHeaderView::Fixed);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue