refactor: switch instance view to QTableView

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2022-09-30 23:37:00 +02:00
parent d0e668e1d8
commit 493a951ecb
18 changed files with 228 additions and 3219 deletions

View File

@ -22,8 +22,6 @@
#include "IconPickerDialog.h"
#include "ui_IconPickerDialog.h"
#include "ui/instanceview/InstanceDelegate.h"
#include "icons/IconList.h"
#include "icons/IconUtils.h"
#include <DesktopServices.h>
@ -48,8 +46,7 @@ IconPickerDialog::IconPickerDialog(QWidget *parent)
contentsWidget->setTextElideMode(Qt::ElideRight);
contentsWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
contentsWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
contentsWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
contentsWidget->setItemDelegate(new ListViewDelegate());
contentsWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
// contentsWidget->setAcceptDrops(true);
contentsWidget->setDropIndicatorShown(true);