diff options
| author | 2016-04-29 23:57:30 +0100 | |
|---|---|---|
| committer | 2016-04-29 23:57:48 +0100 | |
| commit | 690dd7a33ddc90678367d73adf313533536e10f2 (patch) | |
| tree | 2276fe7c384ebbc222b40a19c536d5c3c5606ce8 /src/modules/objects/KvsObject_treeWidget.h | |
| parent | Add config for clang-format. (diff) | |
| download | KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.tar.gz KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.tar.bz2 KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.zip | |
Apply clang-format
Diffstat (limited to 'src/modules/objects/KvsObject_treeWidget.h')
| -rw-r--r-- | src/modules/objects/KvsObject_treeWidget.h | 80 |
1 files changed, 41 insertions, 39 deletions
diff --git a/src/modules/objects/KvsObject_treeWidget.h b/src/modules/objects/KvsObject_treeWidget.h index cdd5a75bd..db277c107 100644 --- a/src/modules/objects/KvsObject_treeWidget.h +++ b/src/modules/objects/KvsObject_treeWidget.h @@ -39,50 +39,50 @@ public: public: QWidget * widget() { return (QWidget *)object(); }; - void fileDropped(QString &,QTreeWidgetItem *); -protected: - virtual bool init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams); + void fileDropped(QString &, QTreeWidgetItem *); +protected: + virtual bool init(KviKvsRunTimeContext * pContext, KviKvsVariantList * pParams); - bool setBackgroundImage(KviKvsObjectFunctionCall *c); - bool addColumn(KviKvsObjectFunctionCall *c); - bool setColumnText(KviKvsObjectFunctionCall *c); - bool takeItem(KviKvsObjectFunctionCall *c); - bool setSorting(KviKvsObjectFunctionCall *c); - bool setSortingEnabled(KviKvsObjectFunctionCall *c); - bool setRootIsDecorated(KviKvsObjectFunctionCall *c); - bool clear(KviKvsObjectFunctionCall *c); - bool setAllColumnsShowFocus(KviKvsObjectFunctionCall *c); - bool itemClickedEvent(KviKvsObjectFunctionCall *c); - bool selectionChangedEvent(KviKvsObjectFunctionCall *c); - bool currentChangedEvent(KviKvsObjectFunctionCall *c); - bool itemActivatedEvent(KviKvsObjectFunctionCall *c); - bool onItemEvent(KviKvsObjectFunctionCall *c); - bool itemExpandedEvent(KviKvsObjectFunctionCall *c); - bool itemCollapsedEvent(KviKvsObjectFunctionCall *c); - bool itemChangedEvent(KviKvsObjectFunctionCall *c); - bool selectedItems(KviKvsObjectFunctionCall *c); - bool currentItem(KviKvsObjectFunctionCall *c); - bool setSelectionMode(KviKvsObjectFunctionCall *c); - bool firstChild(KviKvsObjectFunctionCall *c); - bool listViewHeaderIsVisible(KviKvsObjectFunctionCall *c); - bool showListViewHeader(KviKvsObjectFunctionCall *c); - bool hideListViewHeader(KviKvsObjectFunctionCall *c); - bool setAcceptDrops(KviKvsObjectFunctionCall *c); - bool setHeaderLabels(KviKvsObjectFunctionCall *c); - bool setColumnCount(KviKvsObjectFunctionCall *c); - bool topLevelItem(KviKvsObjectFunctionCall *c); - bool topLevelItemCount(KviKvsObjectFunctionCall *c); - bool itemAt(KviKvsObjectFunctionCall *c); + bool setBackgroundImage(KviKvsObjectFunctionCall * c); + bool addColumn(KviKvsObjectFunctionCall * c); + bool setColumnText(KviKvsObjectFunctionCall * c); + bool takeItem(KviKvsObjectFunctionCall * c); + bool setSorting(KviKvsObjectFunctionCall * c); + bool setSortingEnabled(KviKvsObjectFunctionCall * c); + bool setRootIsDecorated(KviKvsObjectFunctionCall * c); + bool clear(KviKvsObjectFunctionCall * c); + bool setAllColumnsShowFocus(KviKvsObjectFunctionCall * c); + bool itemClickedEvent(KviKvsObjectFunctionCall * c); + bool selectionChangedEvent(KviKvsObjectFunctionCall * c); + bool currentChangedEvent(KviKvsObjectFunctionCall * c); + bool itemActivatedEvent(KviKvsObjectFunctionCall * c); + bool onItemEvent(KviKvsObjectFunctionCall * c); + bool itemExpandedEvent(KviKvsObjectFunctionCall * c); + bool itemCollapsedEvent(KviKvsObjectFunctionCall * c); + bool itemChangedEvent(KviKvsObjectFunctionCall * c); + bool selectedItems(KviKvsObjectFunctionCall * c); + bool currentItem(KviKvsObjectFunctionCall * c); + bool setSelectionMode(KviKvsObjectFunctionCall * c); + bool firstChild(KviKvsObjectFunctionCall * c); + bool listViewHeaderIsVisible(KviKvsObjectFunctionCall * c); + bool showListViewHeader(KviKvsObjectFunctionCall * c); + bool hideListViewHeader(KviKvsObjectFunctionCall * c); + bool setAcceptDrops(KviKvsObjectFunctionCall * c); + bool setHeaderLabels(KviKvsObjectFunctionCall * c); + bool setColumnCount(KviKvsObjectFunctionCall * c); + bool topLevelItem(KviKvsObjectFunctionCall * c); + bool topLevelItemCount(KviKvsObjectFunctionCall * c); + bool itemAt(KviKvsObjectFunctionCall * c); protected slots: - void slotClicked(QTreeWidgetItem *,int); + void slotClicked(QTreeWidgetItem *, int); void slotSelectionChanged(); - void slotCurrentChanged(QTreeWidgetItem *,QTreeWidgetItem *); - void slotItemActivated(QTreeWidgetItem *,int col); - void slotOnItemEntered(QTreeWidgetItem *,int col); + void slotCurrentChanged(QTreeWidgetItem *, QTreeWidgetItem *); + void slotItemActivated(QTreeWidgetItem *, int col); + void slotOnItemEntered(QTreeWidgetItem *, int col); void slotItemExpanded(QTreeWidgetItem *); void slotItemCollapsed(QTreeWidgetItem *); - void slotItemChanged(QTreeWidgetItem *,int); + void slotItemChanged(QTreeWidgetItem *, int); }; class KviKvsTreeWidget : public QTreeWidget @@ -91,12 +91,14 @@ class KviKvsTreeWidget : public QTreeWidget public: KviKvsTreeWidget(QWidget * par, const char * name, KvsObject_treeWidget *); virtual ~KviKvsTreeWidget(); + protected: KvsObject_treeWidget * m_pParentScript; + protected: void dropEvent(QDropEvent * e); void dragEnterEvent(QDragEnterEvent * e); - void dragMoveEvent( QDragMoveEvent * e ); + void dragMoveEvent(QDragMoveEvent * e); }; #endif // _CLASS_TREEWIDGET_H_ |
