From: Mikko Keinänen Date: Wed, 22 Dec 2010 22:58:25 +0000 (+0200) Subject: Set couple of columns hidden. X-Git-Url: http://vcs.maemo.org/git/?p=emufront;a=commitdiff_plain;h=50b8e61bbf0f7e1ddee1d9e20e6ac03c1a6033fb Set couple of columns hidden. --- diff --git a/src/views/externalexecutableeditview.cpp b/src/views/externalexecutableeditview.cpp index 66b9e95..64580bf 100644 --- a/src/views/externalexecutableeditview.cpp +++ b/src/views/externalexecutableeditview.cpp @@ -40,3 +40,10 @@ ExternalExecutableEditView::ExternalExecutableEditView(SetupModel *supModel, Ext objectList->setItemDelegateForColumn(ExternalExecutableModel::Executable_SetupId, setupDelegate); postInit(); } + +void ExternalExecutableEditView::setHiddenColumns() +{ + hiddenColumns << ExternalExecutableModel::Executable_Id; + hiddenColumns << ExternalExecutableModel::Executable_SetupName; + hiddenColumns << ExternalExecutableModel::Executable_TypeId; +} diff --git a/src/views/externalexecutableeditview.h b/src/views/externalexecutableeditview.h index 00d26eb..d5f8494 100644 --- a/src/views/externalexecutableeditview.h +++ b/src/views/externalexecutableeditview.h @@ -32,6 +32,8 @@ class ExternalExecutableEditView : public EmuFrontEditView Q_OBJECT public: ExternalExecutableEditView(SetupModel *supModel, ExternalExecutableModel *emuModel, QWidget *parent = 0); +private: + virtual void setHiddenColumns(); }; #endif // EXTERNALEXECUTABLEEDITVIEW_H diff --git a/src/views/filepatheditview.cpp b/src/views/filepatheditview.cpp index b502eac..ccccab7 100644 --- a/src/views/filepatheditview.cpp +++ b/src/views/filepatheditview.cpp @@ -108,3 +108,9 @@ void FilePathEditView::beginScanFilePath() fpo = 0; } +void FilePathEditView::setHiddenColumns() +{ + hiddenColumns << FilePathModel::FilePath_FileTypeId; + hiddenColumns << FilePathModel::FilePath_Id; + hiddenColumns << FilePathModel::FilePath_SetupName; +} diff --git a/src/views/filepatheditview.h b/src/views/filepatheditview.h index 439848d..111dc70 100644 --- a/src/views/filepatheditview.h +++ b/src/views/filepatheditview.h @@ -46,6 +46,7 @@ private: QProgressDialog *progressDialog; void scanFilePath(const QString path, const QStringList filters); void initProgressDialog(); + virtual void setHiddenColumns(); }; #endif // FILEPATHEDITVIEW_H diff --git a/src/views/setupeditview.cpp b/src/views/setupeditview.cpp index fc461ab..8c607bb 100644 --- a/src/views/setupeditview.cpp +++ b/src/views/setupeditview.cpp @@ -52,3 +52,11 @@ SetupEditView::SetupEditView(PlatformModel *plfModel, MediaTypeModel *mdtModel, objectList->setItemDelegateForColumn(SetupModel::Setup_FileTypeExtensions, fileTypeDelegate); postInit(); } + +void SetupEditView::setHiddenColumns() +{ + hiddenColumns << SetupModel::Setup_Id; + hiddenColumns << SetupModel::Setup_Name; +} + + diff --git a/src/views/setupeditview.h b/src/views/setupeditview.h index b12d128..7629fa7 100644 --- a/src/views/setupeditview.h +++ b/src/views/setupeditview.h @@ -17,7 +17,9 @@ ** ** You should have received a copy of the GNU General Public License ** along with EmuFront. If not, see . -*/#ifndef SETUPMAINVIEW_H +*/ + +#ifndef SETUPMAINVIEW_H #define SETUPMAINVIEW_H #include "emufronteditview.h" @@ -32,11 +34,8 @@ class SetupEditView : public EmuFrontEditView public: SetupEditView(PlatformModel *plfModel, MediaTypeModel *mdtModel, SetupModel *supModel, QWidget *parent = 0); -signals: - -public slots: - private: + virtual void setHiddenColumns(); PlatformModel *plfModel; MediaTypeModel *mdtModel; };