mirror of
https://github.com/leozide/leocad
synced 2024-11-16 07:47:27 +01:00
Made the properties part picker wider.
This commit is contained in:
parent
019ba4f443
commit
de738bd259
1 changed files with 9 additions and 7 deletions
|
@ -174,7 +174,12 @@ lcPieceIdPickerPopup::lcPieceIdPickerPopup(lcModel* Model, PieceInfo* Current, Q
|
|||
: QWidget(Parent)
|
||||
{
|
||||
QVBoxLayout* Layout = new QVBoxLayout(this);
|
||||
Layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
mFilterEdit = new QLineEdit(this);
|
||||
mFilterEdit->setPlaceholderText(tr("Filter"));
|
||||
Layout->addWidget(mFilterEdit);
|
||||
|
||||
connect(mFilterEdit, &QLineEdit::textEdited, this, &lcPieceIdPickerPopup::FilterEdited);
|
||||
|
||||
mListView = new QListView(this);
|
||||
mListView->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
|
@ -188,18 +193,15 @@ lcPieceIdPickerPopup::lcPieceIdPickerPopup(lcModel* Model, PieceInfo* Current, Q
|
|||
lcPieceIdStringModel* StringModel = new lcPieceIdStringModel(Model, mListView);
|
||||
mListView->setModel(StringModel);
|
||||
|
||||
mListView->setMinimumWidth(450);
|
||||
mListView->setTextElideMode(Qt::ElideMiddle);
|
||||
|
||||
if (Current)
|
||||
mListView->setCurrentIndex(StringModel->Index(Current));
|
||||
|
||||
Layout->addWidget(mListView);
|
||||
|
||||
connect(mListView, &QListView::doubleClicked, this, &lcPieceIdPickerPopup::ListViewDoubleClicked);
|
||||
|
||||
mFilterEdit = new QLineEdit(this);
|
||||
mFilterEdit->setPlaceholderText(tr("Filter"));
|
||||
Layout->addWidget(mFilterEdit);
|
||||
|
||||
connect(mFilterEdit, &QLineEdit::textEdited, this, &lcPieceIdPickerPopup::FilterEdited);
|
||||
}
|
||||
|
||||
bool lcPieceIdPickerPopup::eventFilter(QObject* Object, QEvent* Event)
|
||||
|
|
Loading…
Reference in a new issue