OSDN Git Service

remove default QTableWidget reimplementation and binary compatibility bits [ci reset]
authorIvailo Monev <xakepa10@gmail.com>
Sun, 1 May 2022 20:53:27 +0000 (23:53 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 1 May 2022 20:53:39 +0000 (23:53 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/itemviews/qtablewidget.cpp
src/gui/itemviews/qtablewidget.h

index 64c77cf..44eb919 100644 (file)
@@ -2169,22 +2169,6 @@ void QTableWidget::sortItems(int column, Qt::SortOrder order)
 }
 
 /*!
-    \internal
-*/
-void QTableWidget::setSortingEnabled(bool enable)
-{
-    QTableView::setSortingEnabled(enable);
-}
-
-/*!
-    \internal
-*/
-bool QTableWidget::isSortingEnabled() const
-{
-    return QTableView::isSortingEnabled();
-}
-
-/*!
   Starts editing the \a item if it is editable.
 */
 
@@ -2618,12 +2602,6 @@ void QTableWidget::setModel(QAbstractItemModel * /*model*/)
     Q_ASSERT(!"QTableWidget::setModel() - Changing the model of the QTableWidget is not allowed.");
 }
 
-/*! \reimp */
-bool QTableWidget::event(QEvent *e)
-{
-    return QTableView::event(e);
-}
-
 #ifndef QT_NO_DRAGANDDROP
 /*! \reimp */
 void QTableWidget::dropEvent(QDropEvent *event) {
index f4e6041..43b044a 100644 (file)
@@ -229,8 +229,6 @@ public:
     void setCurrentCell(int row, int column, QItemSelectionModel::SelectionFlags command);
 
     void sortItems(int column, Qt::SortOrder order = Qt::AscendingOrder);
-    void setSortingEnabled(bool enable);
-    bool isSortingEnabled() const;
 
     void editItem(QTableWidgetItem *item);
     void openPersistentEditor(QTableWidgetItem *item);
@@ -290,7 +288,6 @@ Q_SIGNALS:
     void currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);
 
 protected:
-    bool event(QEvent *e);
     virtual QStringList mimeTypes() const;
     virtual QMimeData *mimeData(const QList<QTableWidgetItem*> items) const;
     virtual bool dropMimeData(int row, int column, const QMimeData *data, Qt::DropAction action);