aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2013-04-12 21:05:13 -0400
committerJake Petroules <jake.petroules@petroules.com>2013-04-15 14:50:57 +0200
commit5f3ce05b45f31e1175e5c9874965785a9f670bda (patch)
treec9461aa1b327a9a6c4f58911946ff7c4396567fd /examples
parent94d81270509dbb438bf21790f9932123a77a8c3c (diff)
Rename and namespace setUnifiedTitleAndToolBarOnMac.
Change-Id: I30babc76d5b35f7834752d88b40c7f8af8ba6a2d Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/macunifiedtoolbar/preferenceswindow.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/macunifiedtoolbar/preferenceswindow.cpp b/examples/macunifiedtoolbar/preferenceswindow.cpp
index 28bd7d0..a3cc04a 100644
--- a/examples/macunifiedtoolbar/preferenceswindow.cpp
+++ b/examples/macunifiedtoolbar/preferenceswindow.cpp
@@ -55,10 +55,8 @@ PreferencesWindow::PreferencesWindow(QWidget *parent) :
foreach (QAction *action, ui->toolBar->actions())
items->addAction(action);
- // This single line of code is all that's needed to transform a QToolBar into
- // a QMacUnifiedToolBar. It is available on all platforms and is simply a no-op
- // on platforms other than OS X.
- ::setUnifiedTitleAndToolBarOnMac(ui->toolBar, ui->useNativeToolbarCheckBox->isChecked());
+ // This single line of code is all that's needed to transform a QToolBar into a native toolbar!
+ QtMacExtras::setNativeToolBar(ui->toolBar, ui->useNativeToolbarCheckBox->isChecked());
QTimer::singleShot(0, this, SLOT(pack()));
}
@@ -94,7 +92,7 @@ void PreferencesWindow::toolbarItemTriggered()
void PreferencesWindow::useNativeToolBarToggled(bool on)
{
- ::setUnifiedTitleAndToolBarOnMac(ui->toolBar, on);
+ QtMacExtras::setNativeToolBar(ui->toolBar, on);
QTimer::singleShot(0, this, SLOT(pack()));
}