Diagram properties dialog: add button to open the conductor autonumérotation editor.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3274 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-08-15 13:16:58 +00:00
parent f7a142bf4a
commit bb7fbfca61
10 changed files with 195 additions and 54 deletions

View File

@@ -52,7 +52,7 @@ ConfigDialog::ConfigDialog(QWidget *parent) : QDialog(parent) {
// connexion signaux / slots
connect(buttons, SIGNAL(accepted()), this, SLOT(applyConf()));
connect(buttons, SIGNAL(rejected()), this, SLOT(reject()));
connect(pages_list, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*)));
connect(pages_list, SIGNAL(currentRowChanged(int)), pages_widget, SLOT(setCurrentIndex(int)));
#ifdef Q_WS_MAC
if (parent) {
@@ -65,14 +65,6 @@ ConfigDialog::ConfigDialog(QWidget *parent) : QDialog(parent) {
ConfigDialog::~ConfigDialog() {
}
/**
Gere les changements de page dans le dialogue de configuration
*/
void ConfigDialog::changePage(QListWidgetItem *current, QListWidgetItem *previous) {
if (!current) current = previous;
pages_widget -> setCurrentIndex(pages_list -> row(current));
}
/**
Construit la liste des pages sur la gauche
*/
@@ -113,3 +105,12 @@ void ConfigDialog::addPage(ConfigPage *page) {
pages_widget -> addWidget(page);
addPageToList(page);
}
/**
* @brief ConfigDialog::setCurrentPage
* Set the current index to @index
* @param index
*/
void ConfigDialog::setCurrentPage(const int index) {
pages_list->setCurrentRow(index);
}