mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
Reduce code duplication
This commit is contained in:
parent
874348fb46
commit
50e4600b16
1 changed files with 1 additions and 7 deletions
|
@ -261,16 +261,10 @@ QWidget *CSVWorld::CommandDelegate::createEditor (QWidget *parent, const QStyleO
|
|||
return dsb;
|
||||
}
|
||||
|
||||
/// \todo implement size limit. QPlainTextEdit does not support a size limit.
|
||||
case CSMWorld::ColumnBase::Display_LongString:
|
||||
{
|
||||
QPlainTextEdit *edit = new QPlainTextEdit(parent);
|
||||
edit->setUndoRedoEnabled (false);
|
||||
return edit;
|
||||
}
|
||||
|
||||
case CSMWorld::ColumnBase::Display_LongString256:
|
||||
{
|
||||
/// \todo implement size limit. QPlainTextEdit does not support a size limit.
|
||||
QPlainTextEdit *edit = new QPlainTextEdit(parent);
|
||||
edit->setUndoRedoEnabled (false);
|
||||
return edit;
|
||||
|
|
Loading…
Reference in a new issue