forked from qt-creator/qt-creator
Welcome: Derive Core::Button from QAbstractButton
Enable a hover effect on macOS and remove the need for the setFlat hack. Change-Id: Iea77ccaddcff0e9ad9299ffda8584160dca6413a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
#include <QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAbstractButton;
|
||||
class QItemSelectionModel;
|
||||
class QLineEdit;
|
||||
class QListView;
|
||||
class QPushButton;
|
||||
class QSortFilterProxyModel;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
@@ -58,7 +58,7 @@ private:
|
||||
|
||||
QScopedPointer<QStandardItemModel> m_model;
|
||||
QLineEdit *m_searchBox;
|
||||
QPushButton *m_updateButton;
|
||||
QAbstractButton *m_updateButton;
|
||||
QListView *m_extensionsView;
|
||||
QItemSelectionModel *m_selectionModel = nullptr;
|
||||
QSortFilterProxyModel *m_filterProxyModel;
|
||||
|
||||
Reference in New Issue
Block a user