filter panel added

This commit is contained in:
2019-03-18 17:08:38 +01:00
parent d72f7da1ef
commit 95179c2db1
9 changed files with 439 additions and 154 deletions
+9 -1
View File
@@ -13,7 +13,6 @@
#include "ccombopicker.h"
#include "cimage.h"
#include "cimageviewer.h"
#include "ui_cmainwindow.h"
@@ -31,11 +30,13 @@
#include <QPixmap>
#include <QInputDialog>
#include <QFileDialog>
#include <QPushButton>
cMainWindow::cMainWindow(cSplashScreen* lpSplashScreen, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::cMainWindow),
m_lpFilterPanel(nullptr),
m_lpProgressBar(nullptr),
m_lpFolderViewModel(nullptr),
m_lpFolderSortFilterProxyModel(nullptr),
@@ -61,6 +62,9 @@ cMainWindow::cMainWindow(cSplashScreen* lpSplashScreen, QWidget *parent) :
cMainWindow::~cMainWindow()
{
if(m_lpFilterPanel)
delete m_lpFilterPanel;
delete m_lpThumbnailViewModel;
delete m_lpFolderViewModel;
delete m_lpThumbnailSortFilterProxyModel;
@@ -75,6 +79,10 @@ void cMainWindow::initUI()
QIcon::setThemeName("TangoMFK");
ui->m_lpSpoiler->setTitle(tr("Filter"));
m_lpFilterPanel = new cFilterPanel(this);
ui->m_lpSpoiler->setContentWidget(m_lpFilterPanel);
m_lpFolderViewModel = new QStandardItemModel;
m_lpFolderSortFilterProxyModel = new cFolderSortFilterProxyModel(this);
ui->m_lpFolderView->setModel(m_lpFolderSortFilterProxyModel);