Skip to content

Commit

Permalink
Merge pull request #5037 from tuffnatty/fix/qt5_warning
Browse files Browse the repository at this point in the history
Fix a warning with Qt5 after the recent Qt6 addition
  • Loading branch information
pawelsalawa authored Aug 10, 2024
2 parents 49a7934 + a668914 commit 25fa29a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SQLiteStudio3/guiSQLiteStudio/dataview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ void DataView::setActionIcon(QAction *action, const QIcon &icon, QToolBar *toolb
// In Qt 6, setting the action icon is not enough, use brute force
QToolButton* button = dynamic_cast<QToolButton*>(toolbar->widgetForAction(action));
button->setIcon(icon);
#else
Q_UNUSED(toolbar);
#endif
}

Expand Down

0 comments on commit 25fa29a

Please sign in to comment.