tools/shared/qttoolbardialog/qttoolbardialog.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
  1805     connect(d_ptr->ui.buttonBox->button(QDialogButtonBox::RestoreDefaults), SIGNAL(clicked()), this, SLOT(defaultClicked()));
  1805     connect(d_ptr->ui.buttonBox->button(QDialogButtonBox::RestoreDefaults), SIGNAL(clicked()), this, SLOT(defaultClicked()));
  1806     connect(d_ptr->ui.buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(okClicked()));
  1806     connect(d_ptr->ui.buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(okClicked()));
  1807     connect(d_ptr->ui.buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(applyClicked()));
  1807     connect(d_ptr->ui.buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(applyClicked()));
  1808     connect(d_ptr->ui.buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(cancelClicked()));
  1808     connect(d_ptr->ui.buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(cancelClicked()));
  1809 
  1809 
  1810     connect(d_ptr->ui.actionTree, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
  1810     connect(d_ptr->ui.actionTree, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
  1811                     this, SLOT(currentActionChanged(QTreeWidgetItem *)));
  1811                     this, SLOT(currentActionChanged(QTreeWidgetItem*)));
  1812     connect(d_ptr->ui.toolBarList, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)),
  1812     connect(d_ptr->ui.toolBarList, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
  1813                     this, SLOT(currentToolBarChanged(QListWidgetItem *)));
  1813                     this, SLOT(currentToolBarChanged(QListWidgetItem*)));
  1814     connect(d_ptr->ui.currentToolBarList,
  1814     connect(d_ptr->ui.currentToolBarList,
  1815                     SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)),
  1815                     SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
  1816                     this, SLOT(currentToolBarActionChanged(QListWidgetItem *)));
  1816                     this, SLOT(currentToolBarActionChanged(QListWidgetItem*)));
  1817 
  1817 
  1818     connect(d_ptr->ui.actionTree, SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)),
  1818     connect(d_ptr->ui.actionTree, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),
  1819                     this, SLOT(rightClicked()));
  1819                     this, SLOT(rightClicked()));
  1820     connect(d_ptr->ui.currentToolBarList, SIGNAL(itemDoubleClicked(QListWidgetItem *)),
  1820     connect(d_ptr->ui.currentToolBarList, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
  1821                     this, SLOT(leftClicked()));
  1821                     this, SLOT(leftClicked()));
  1822     connect(d_ptr->ui.toolBarList, SIGNAL(itemChanged(QListWidgetItem *)),
  1822     connect(d_ptr->ui.toolBarList, SIGNAL(itemChanged(QListWidgetItem*)),
  1823                     this, SLOT(toolBarRenamed(QListWidgetItem *)));
  1823                     this, SLOT(toolBarRenamed(QListWidgetItem*)));
  1824 }
  1824 }
  1825 
  1825 
  1826 /*!
  1826 /*!
  1827     Destroys the toolbar dialog.
  1827     Destroys the toolbar dialog.
  1828 */
  1828 */