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