From 57f4d38841c40cad3c206abdd16eebaed753aa1c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 18 Mar 2018 18:18:57 +0100 Subject: Update all fiels to adhere to style-guide --- src/filelist.h | 66 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'src/filelist.h') diff --git a/src/filelist.h b/src/filelist.h index 2ca277c..01cf684 100644 --- a/src/filelist.h +++ b/src/filelist.h @@ -24,55 +24,55 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __DRUMGIZMO_FILELIST_H__ -#define __DRUMGIZMO_FILELIST_H__ +#pragma once #include #include #include #include -class FileList : public QListWidget { -Q_OBJECT +class FileList + : public QListWidget +{ + Q_OBJECT public: - FileList(); + FileList(); + + QString path; - QString path; signals: - void masterFileChanged(QString filename); - void fileAdded(QString file, QString name); - void fileRemoved(QString file, QString name); - void allFilesRemoved(); - void nameChanged(QString file, QString name); + void masterFileChanged(QString filename); + void fileAdded(QString file, QString name); + void fileRemoved(QString file, QString name); + void allFilesRemoved(); + void nameChanged(QString file, QString name); public slots: - void addFiles(); - void popupMenu(const QPoint &pos); + void addFiles(); + void popupMenu(const QPoint& pos); private slots: - void selectionChanged(QListWidgetItem *item); - void setMaster(); - void removeFile(); - void removeAllFiles(); - void editName(); - void setItemName(QListWidgetItem *i, QString name); + void selectionChanged(QListWidgetItem* item); + void setMaster(); + void removeFile(); + void removeAllFiles(); + void editName(); + void setItemName(QListWidgetItem* i, QString name); private: - QString itemFile(QListWidgetItem *i); - QString itemName(QListWidgetItem *i); - void setItemFile(QListWidgetItem *i, QString file); - void setItemMaster(QListWidgetItem *i, bool master); + QString itemFile(QListWidgetItem* i); + QString itemName(QListWidgetItem* i); + void setItemFile(QListWidgetItem* i, QString file); + void setItemMaster(QListWidgetItem* i, bool master); - void setMasterFile(QListWidgetItem *i); - void createMenus(); + void setMasterFile(QListWidgetItem* i); + void createMenus(); - QMenu *menu; - QAction *setMasterAction; - QAction *editAction; - QAction *removeAction; - QAction *removeAllAction; + QMenu* menu; + QAction* setMasterAction; + QAction* editAction; + QAction* removeAction; + QAction* removeAllAction; - QListWidgetItem *activeItem; + QListWidgetItem* activeItem; }; - -#endif/*__DRUMGIZMO_FILELIST_H__*/ -- cgit v1.2.3