Set couple of columns hidden.
[emufront] / src / views / filepatheditview.cpp
index 988160f..ccccab7 100644 (file)
@@ -27,7 +27,7 @@
 #include "filesystembrowsedelegate.h"
 #include <QtGui>
 
-FilePathEditView::FilePathEditView(QWidget *parent) :
+FilePathEditView::FilePathEditView(SetupModel *supModel, QWidget *parent) :
     EmuFrontEditView(parent)
 {
     setWindowTitle(tr("Set media image paths"));
@@ -38,9 +38,8 @@ FilePathEditView::FilePathEditView(QWidget *parent) :
 
     model = new FilePathModel(this);
     objectList->setModel(model);
-    SetupModel *stupMdl = new SetupModel(this);
     ComboBoxDelegate *setupDelegate = new ComboBoxDelegate(
-        stupMdl,
+        supModel,
         SetupModel::Setup_Id,
         SetupModel::Setup_Name,
         this
@@ -109,3 +108,9 @@ void FilePathEditView::beginScanFilePath()
     fpo = 0;
 }
 
+void FilePathEditView::setHiddenColumns()
+{
+       hiddenColumns << FilePathModel::FilePath_FileTypeId;
+       hiddenColumns << FilePathModel::FilePath_Id;
+       hiddenColumns << FilePathModel::FilePath_SetupName;
+}