mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #745, made modify form a CForm
* disable exclude mode when not admin * set min. sizes for UI (better layout)
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0d70e87d11
commit
02e8d4a4cb
@@ -12,6 +12,7 @@
|
||||
#ifndef BLACKGUI_EDITORS_MODELMAPPINGMODIFYFORM_H
|
||||
#define BLACKGUI_EDITORS_MODELMAPPINGMODIFYFORM_H
|
||||
|
||||
#include "form.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h"
|
||||
|
||||
@@ -32,7 +33,7 @@ namespace BlackGui
|
||||
/*!
|
||||
* Allows to modify individual fields of the model form
|
||||
*/
|
||||
class BLACKGUI_EXPORT CModelMappingModifyForm : public QFrame
|
||||
class BLACKGUI_EXPORT CModelMappingModifyForm : public CForm
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -49,6 +50,13 @@ namespace BlackGui
|
||||
//! Set value
|
||||
void setValue(const BlackMisc::Simulation::CAircraftModel &model);
|
||||
|
||||
//! \copydoc CForm::setReadOnly
|
||||
virtual void setReadOnly(bool readOnly) override;
|
||||
|
||||
protected slots:
|
||||
//! \copydoc CForm::ps_userChanged
|
||||
virtual void ps_userChanged() override;
|
||||
|
||||
private slots:
|
||||
//! Return pressed
|
||||
void ps_returnPressed();
|
||||
|
||||
Reference in New Issue
Block a user