Skip to content

Commit

Permalink
fix: typo for DTabBar::createMimeDataFramTab
Browse files Browse the repository at this point in the history
Change-Id: I50568e0f13242c678fa684a4ab0abcd12174345c
  • Loading branch information
zccrs committed Jan 29, 2018
1 parent 3030f49 commit 4bb6f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/widgets/dtabbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/dtabbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4bb6f1e

Please sign in to comment.