diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index 66281b1cac0ab144e857d3e81779578141c517ca..81e440d8041b7a87aa5508adfd92c8e15b576346 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -10,8 +10,8 @@ MainWindow::MainWindow(QWidget *parent) : ui->setupUi(this); // on affiche d'abord la TreeView - ui->treeWidget->show(); - ui->listWidget->hide(); + //ui->treeWidget->show(); + //ui->listWidget->hide(); @@ -62,24 +62,6 @@ void MainWindow::update_tasks() ui->tableView->update(); } -void MainWindow::on_comboBox_currentTextChanged(const QString &arg1) -{ - if (arg1 == "Tree"){ - ui->treeWidget->show(); - ui->listWidget->hide(); - - } - else if (arg1 == "List"){ - ui->listWidget->show(); - ui->treeWidget->hide(); - - } - else { - QMessageBox msgBox; - msgBox.setText(tr("Choix modifié mais problème sélection Tree ou List")); - msgBox.exec(); - } -} void MainWindow::on_commandLinkButton_7_clicked() { diff --git a/app/mainwindow.h b/app/mainwindow.h index 6e79b220ee52f4bf0be36fdb800e356b77c20969..905daf3f08838e964ce4d82ba7512369f44c3c73 100644 --- a/app/mainwindow.h +++ b/app/mainwindow.h @@ -25,8 +25,6 @@ public: void update_tasks(); private slots: - void on_comboBox_currentTextChanged(const QString &arg1); - void on_commandLinkButton_7_clicked(); private: diff --git a/app/mainwindow.ui b/app/mainwindow.ui index ecdf7e4174ae9a6555118c21402579dfcd61900a..500baf70befe911ebaeab23a6d88d5f8d646e110 100644 --- a/app/mainwindow.ui +++ b/app/mainwindow.ui @@ -172,6 +172,18 @@ </property> <item> <widget class="QCommandLinkButton" name="commandLinkButton_7"> + <property name="minimumSize"> + <size> + <width>150</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>150</width> + <height>30</height> + </size> + </property> <property name="text"> <string>Create Task</string> </property> @@ -197,12 +209,18 @@ <widget class="QCommandLinkButton" name="commandLinkButton_6"> <property name="minimumSize"> <size> - <width>60</width> + <width>150</width> + <height>30</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>150</width> <height>30</height> </size> </property> <property name="text"> - <string>sendSignal</string> + <string>Send Signal</string> </property> </widget> </item> @@ -212,7 +230,7 @@ <enum>Qt::Horizontal</enum> </property> <property name="sizeType"> - <enum>QSizePolicy::Fixed</enum> + <enum>QSizePolicy::Expanding</enum> </property> <property name="sizeHint" stdset="0"> <size> @@ -222,46 +240,8 @@ </property> </spacer> </item> - <item> - <widget class="QComboBox" name="comboBox"> - <property name="minimumSize"> - <size> - <width>80</width> - <height>30</height> - </size> - </property> - <item> - <property name="text"> - <string>Tree</string> - </property> - </item> - <item> - <property name="text"> - <string>List</string> - </property> - </item> - </widget> - </item> </layout> </item> - <item> - <widget class="QListWidget" name="listWidget"> - <item> - <property name="text"> - <string>ListView</string> - </property> - </item> - </widget> - </item> - <item> - <widget class="QTreeWidget" name="treeWidget"> - <column> - <property name="text"> - <string notr="true">1</string> - </property> - </column> - </widget> - </item> <item> <widget class="QTableView" name="tableView"/> </item>