forked from qt-creator/qt-creator
Fixed a typo.
Renamed doockToolBarWidgets
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Core {
|
|||||||
struct NavigationView
|
struct NavigationView
|
||||||
{
|
{
|
||||||
QWidget *widget;
|
QWidget *widget;
|
||||||
QList<QToolButton *> doockToolBarWidgets;
|
QList<QToolButton *> dockToolBarWidgets;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CORE_EXPORT INavigationWidgetFactory : public QObject
|
class CORE_EXPORT INavigationWidgetFactory : public QObject
|
||||||
|
@@ -426,7 +426,7 @@ void NavigationSubWidget::setCurrentIndex(int index)
|
|||||||
layout()->addWidget(m_navigationWidget);
|
layout()->addWidget(m_navigationWidget);
|
||||||
|
|
||||||
// Add Toolbutton
|
// Add Toolbutton
|
||||||
m_additionalToolBarWidgets = n.doockToolBarWidgets;
|
m_additionalToolBarWidgets = n.dockToolBarWidgets;
|
||||||
QHBoxLayout *layout = qobject_cast<QHBoxLayout *>(m_toolBar->layout());
|
QHBoxLayout *layout = qobject_cast<QHBoxLayout *>(m_toolBar->layout());
|
||||||
foreach (QToolButton *w, m_additionalToolBarWidgets) {
|
foreach (QToolButton *w, m_additionalToolBarWidgets) {
|
||||||
layout->insertWidget(layout->count()-2, w);
|
layout->insertWidget(layout->count()-2, w);
|
||||||
|
@@ -210,7 +210,7 @@ Core::NavigationView FolderNavigationWidgetFactory::createWidget()
|
|||||||
toggleSync->setChecked(ptw->autoSynchronization());
|
toggleSync->setChecked(ptw->autoSynchronization());
|
||||||
toggleSync->setToolTip(tr("Synchronize with Editor"));
|
toggleSync->setToolTip(tr("Synchronize with Editor"));
|
||||||
connect(toggleSync, SIGNAL(clicked(bool)), ptw, SLOT(toggleAutoSynchronization()));
|
connect(toggleSync, SIGNAL(clicked(bool)), ptw, SLOT(toggleAutoSynchronization()));
|
||||||
n.doockToolBarWidgets << toggleSync;
|
n.dockToolBarWidgets << toggleSync;
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -383,7 +383,7 @@ Core::NavigationView ProjectTreeWidgetFactory::createWidget()
|
|||||||
filterMenu->addAction(ptw->m_filterGeneratedFilesAction);
|
filterMenu->addAction(ptw->m_filterGeneratedFilesAction);
|
||||||
filter->setMenu(filterMenu);
|
filter->setMenu(filterMenu);
|
||||||
|
|
||||||
n.doockToolBarWidgets << filter << ptw->toggleSync();
|
n.dockToolBarWidgets << filter << ptw->toggleSync();
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user