Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8ff5cf8

Browse files
FE/Qt: bugref:10681: QITableView: Small cleanup for private slots.
svn:sync-xref-src-repo-rev: r171249
1 parent abbd336 commit 8ff5cf8

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

‎src/VBox/Frontends/VirtualBox/src/extensions/QITableView.cpp‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: QITableView.cpp 110684 2025-08-11 17:18:47Z klaus.espenlaub@oracle.com $ */
1+
/* $Id: QITableView.cpp 111657 2025-11-12 11:20:13Z sergey.dubov@oracle.com $ */
22
/** @file
33
* VBox Qt GUI - Qt extensions: QITableView class implementation.
44
*/
@@ -454,6 +454,14 @@ void QITableView::makeSureEditorDataCommitted()
454454
}
455455
}
456456

457+
void QITableView::currentChanged(const QModelIndex &current, const QModelIndex &previous)
458+
{
459+
/* Notify listeners about index changed: */
460+
emit sigCurrentChanged(current, previous);
461+
/* Call to base-class: */
462+
QTableView::currentChanged(current, previous);
463+
}
464+
457465
void QITableView::sltEditorCreated(QWidget *pEditor, const QModelIndex &index)
458466
{
459467
/* Connect created editor to the table and store it: */
@@ -469,14 +477,6 @@ void QITableView::sltEditorDestroyed(QObject *pEditor)
469477
m_editors.remove(index);
470478
}
471479

472-
void QITableView::currentChanged(const QModelIndex &current, const QModelIndex &previous)
473-
{
474-
/* Notify listeners about index changed: */
475-
emit sigCurrentChanged(current, previous);
476-
/* Call to base-class: */
477-
QTableView::currentChanged(current, previous);
478-
}
479-
480480
void QITableView::prepare()
481481
{
482482
/* Install QITableViewCell accessibility interface factory: */

‎src/VBox/Frontends/VirtualBox/src/extensions/QITableView.h‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: QITableView.h 110684 2025-08-11 17:18:47Z klaus.espenlaub@oracle.com $ */
1+
/* $Id: QITableView.h 111657 2025-11-12 11:20:13Z sergey.dubov@oracle.com $ */
22
/** @file
33
* VBox Qt GUI - Qt extensions: QITableView class declaration.
44
*/
@@ -119,18 +119,18 @@ class SHARED_LIBRARY_STUFF QITableView : public QTableView
119119
/** Makes sure current editor data committed. */
120120
void makeSureEditorDataCommitted();
121121

122-
protected slots:
123-
124-
/** Stores the created @a pEditor for passed @a index in the map. */
125-
virtual void sltEditorCreated(QWidget *pEditor, const QModelIndex &index);
126-
/** Clears the destoyed @a pEditor from the map. */
127-
virtual void sltEditorDestroyed(QObject *pEditor);
128-
129122
protected:
130123

131124
/** Handles index change from @a previous to @a current. */
132125
virtual void currentChanged(const QModelIndex &current, const QModelIndex &previous) RT_OVERRIDE;
133126

127+
private slots:
128+
129+
/** Stores the created @a pEditor for passed @a index in the map. */
130+
void sltEditorCreated(QWidget *pEditor, const QModelIndex &index);
131+
/** Clears the destoyed @a pEditor from the map. */
132+
void sltEditorDestroyed(QObject *pEditor);
133+
134134
private:
135135

136136
/** Prepares all. */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /