mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: make objects in desktop-widgets/modeldelegates.cpp
A number of objects in this file were global. Yet they weren't used anywhere else. Don't export these symbols by making them of static linkage. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7b83eeadff
commit
154792ffd1
1 changed files with 3 additions and 3 deletions
|
@ -103,7 +103,7 @@ void ComboBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index)
|
||||||
c->lineEdit()->setSelection(0, c->lineEdit()->text().length());
|
c->lineEdit()->setSelection(0, c->lineEdit()->text().length());
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CurrSelected {
|
static struct CurrSelected {
|
||||||
QComboBox *comboEditor;
|
QComboBox *comboEditor;
|
||||||
int currRow;
|
int currRow;
|
||||||
QString activeText;
|
QString activeText;
|
||||||
|
@ -233,7 +233,7 @@ void ComboBoxDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionV
|
||||||
editor->setGeometry(defaultRect);
|
editor->setGeometry(defaultRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct RevertCylinderData {
|
static struct RevertCylinderData {
|
||||||
QString type;
|
QString type;
|
||||||
int pressure;
|
int pressure;
|
||||||
int size;
|
int size;
|
||||||
|
@ -326,7 +326,7 @@ void TankUseDelegate::setModelData(QWidget * editor, QAbstractItemModel * model,
|
||||||
model->setData(index, comboBox->currentIndex());
|
model->setData(index, comboBox->currentIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
struct RevertWeightData {
|
static struct RevertWeightData {
|
||||||
QString type;
|
QString type;
|
||||||
int weight;
|
int weight;
|
||||||
} currWeight;
|
} currWeight;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue