diff --git a/src/widgets/dtabbar.cpp b/src/widgets/dtabbar.cpp index 9fae6f3dd..c35334535 100644 --- a/src/widgets/dtabbar.cpp +++ b/src/widgets/dtabbar.cpp @@ -360,7 +360,7 @@ void DTabBarPrivate::setupDragableTab() drag = new QDrag(this); QPoint hotspot = drag->hotSpot(); - const QPixmap &grabImage = q->createDragPixmapFramTab(d->pressedIndex, opt, &hotspot); + const QPixmap &grabImage = q->createDragPixmapFromTab(d->pressedIndex, opt, &hotspot); drag->setPixmap(grabImage); drag->setMimeData(mime_data); @@ -1424,7 +1424,7 @@ void DTabBar::paintTab(QPainter *painter, int index, const QStyleOptionTab &opti style()->drawControl(QStyle::CE_TabBarTab, &option, painter, this); } -QPixmap DTabBar::createDragPixmapFramTab(int index, const QStyleOptionTab &option, QPoint *hotspot) const +QPixmap DTabBar::createDragPixmapFromTab(int index, const QStyleOptionTab &option, QPoint *hotspot) const { Q_UNUSED(hotspot) diff --git a/src/widgets/dtabbar.h b/src/widgets/dtabbar.h index 15dd04dfc..3576c9ab1 100644 --- a/src/widgets/dtabbar.h +++ b/src/widgets/dtabbar.h @@ -182,7 +182,7 @@ public Q_SLOTS: virtual void paintTab(QPainter *painter, int index, const QStyleOptionTab &option) const; - virtual QPixmap createDragPixmapFramTab(int index, const QStyleOptionTab &option, QPoint *hotspot) const; + virtual QPixmap createDragPixmapFromTab(int index, const QStyleOptionTab &option, QPoint *hotspot) const; virtual QMimeData *createMimeDataFromTab(int index, const QStyleOptionTab &option) const; virtual bool canInsertFromMimeData(int index, const QMimeData *source) const; virtual void insertFromMimeData(int index, const QMimeData *source);