forked from qt-creator/qt-creator
Fix showing/hiding context lines spinbox in diff editor
Widgets which were added to a toolbar can only be shown or hidden by calling setVisible() on their respective action, which was created while addWidget() was called. Change-Id: If09257abf5a7a054513fe01b2a1c69d584865dfa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QComboBox;
|
||||
class QLabel;
|
||||
class QSpinBox;
|
||||
class QToolBar;
|
||||
class QToolButton;
|
||||
@@ -95,11 +94,12 @@ private:
|
||||
QToolBar *m_toolBar;
|
||||
QComboBox *m_entriesComboBox;
|
||||
QSpinBox *m_contextSpinBox;
|
||||
QAction *m_contextSpinBoxAction = nullptr;
|
||||
QAction *m_toggleSyncAction;
|
||||
QAction *m_whitespaceButtonAction;
|
||||
QAction *m_toggleDescriptionAction;
|
||||
QAction *m_reloadAction;
|
||||
QLabel *m_contextLabel;
|
||||
QAction *m_contextLabelAction = nullptr;
|
||||
QAction *m_viewSwitcherAction;
|
||||
QPair<QString, QString> m_currentFileChunk;
|
||||
int m_currentViewIndex;
|
||||
|
||||
Reference in New Issue
Block a user