From 033d01bd6e2aef740ad1408a04d3ca0ae3b9ba9b Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 8 Apr 2020 13:19:37 +0200 Subject: QApplication: remove obsolete globalStrut functionality Change-Id: If56873f86f5291264cac720f8db7dbd4db756f49 Reviewed-by: Qt CI Bot Reviewed-by: Shawn Rutledge --- examples/network/torrent/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/network/torrent/mainwindow.cpp') diff --git a/examples/network/torrent/mainwindow.cpp b/examples/network/torrent/mainwindow.cpp index c343ee81b9..9a322e53fc 100644 --- a/examples/network/torrent/mainwindow.cpp +++ b/examples/network/torrent/mainwindow.cpp @@ -224,8 +224,7 @@ QSize MainWindow::sizeHint() const for (int i = 0; i < header->count() - 1; ++i) width += header->sectionSize(i); - return QSize(width, QMainWindow::sizeHint().height()) - .expandedTo(QApplication::globalStrut()); + return QSize(width, QMainWindow::sizeHint().height()); } const TorrentClient *MainWindow::clientForRow(int row) const -- cgit v1.2.3