- Timestamp:
- Apr 14, 2016 1:56:52 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITableView.cpp
r52730 r60495 5 5 6 6 /* 7 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 21 21 22 /* Local includes*/22 /* GUI includes: */ 23 23 # include "QITableView.h" 24 24 … … 33 33 void QITableView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) 34 34 { 35 /* Notify listeners about index changed: */ 35 36 emit sigCurrentChanged(current, previous); 37 /* Call to base-class: */ 36 38 QTableView::currentChanged(current, previous); 37 39 } -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITableView.h
r55401 r60495 5 5 6 6 /* 7 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 18 #ifndef __ QITableView_h__19 #define __ QITableView_h__18 #ifndef ___QITableView_h___ 19 #define ___QITableView_h___ 20 20 21 /* Global includes*/21 /* Qt includes: */ 22 22 #include <QTableView> 23 23 24 /* QITableView class which extends standard QTableView'sfunctionality. */25 class QITableView : public QTableView24 /** QTableView extension providing GUI with advanced functionality. */ 25 class QITableView : public QTableView 26 26 { 27 27 Q_OBJECT; 28 28 29 signals: 30 31 /** Notifies listeners about index changed from @a previous to @a current. */ 32 void sigCurrentChanged(const QModelIndex ¤t, const QModelIndex &previous); 33 29 34 public: 30 35 36 /** Constructs table-view on the basis of passed @a pParent. */ 31 37 QITableView(QWidget *pParent = 0); 32 38 33 signals:39 protected: 34 40 35 void sigCurrentChanged(const QModelIndex ¤t, const QModelIndex &previous); 36 37 protected slots: 38 39 void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); 41 /** Handles index change from @a previous to @a current. */ 42 virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) /* override */; 40 43 }; 41 44 42 #endif /* __QITableView_h__ */45 #endif /* !___QITableView_h___ */ 43 46
Note:
See TracChangeset
for help on using the changeset viewer.