From 32742959a29c3340c91eb33b733fc8c2439b53e5 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Mon, 5 May 2014 23:49:21 -0400 Subject: Use the new unified toolbar implementation in examples on OS X. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ica3476d16a4baab1f75e253eb406505f88018d47 Reviewed-by: Morten Johan Sørvig --- examples/network/torrent/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/network/torrent/mainwindow.cpp') diff --git a/examples/network/torrent/mainwindow.cpp b/examples/network/torrent/mainwindow.cpp index 649dbb0a77..3ac7d9dfdd 100644 --- a/examples/network/torrent/mainwindow.cpp +++ b/examples/network/torrent/mainwindow.cpp @@ -173,6 +173,10 @@ MainWindow::MainWindow(QWidget *parent) bottomBar->addWidget((uploadLimitLabel = new QLabel(tr("0 KB/s")))); uploadLimitLabel->setFixedSize(QSize(fm.width(tr("99999 KB/s")), fm.lineSpacing())); +#ifdef Q_OS_OSX + setUnifiedTitleAndToolBarOnMac(true); +#endif + // Set up connections connect(torrentView, SIGNAL(itemSelectionChanged()), this, SLOT(setActionsEnabled())); -- cgit v1.2.3