diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2014-07-31 00:07:59 +0200 |
---|---|---|
committer | Anne Jan Brouwer <ajbrouwer@totalactivemedia.nl> | 2014-07-31 00:07:59 +0200 |
commit | 0feea38079d9c7c01b2b70621483a6ae8104d65e (patch) | |
tree | 7de3579141e0aca8bc2ca82520c17077184dfd1e | |
parent | cba1b6d7b48658d6c1b241204bdc862619a87b11 (diff) |
update
-rw-r--r-- | mainwindow.cpp | 8 | ||||
-rw-r--r-- | mainwindow.h | 3 | ||||
-rw-r--r-- | mainwindow.ui | 23 |
3 files changed, 28 insertions, 6 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 2e38cbc6..2a297864 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,5 +1,8 @@ #include "mainwindow.h" #include "ui_mainwindow.h" +#include <stdio.h> +#include <stdlib.h> + MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), @@ -18,3 +21,8 @@ MainWindow::~MainWindow() { delete ui; } + +void MainWindow::on_pushButton_clicked() +{ + system("pass git pull"); +} diff --git a/mainwindow.h b/mainwindow.h index 678e33cf..5336afe0 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -19,6 +19,9 @@ public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); +private slots: + void on_pushButton_clicked(); + private: Ui::MainWindow *ui; QDirModel model; diff --git a/mainwindow.ui b/mainwindow.ui index 1546fd8e..330701e6 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -6,20 +6,31 @@ <rect> <x>0</x> <y>0</y> - <width>400</width> - <height>300</height> + <width>437</width> + <height>347</height> </rect> </property> <property name="windowTitle"> <string>MainWindow</string> </property> <widget class="QWidget" name="centralWidget"> - <layout class="QHBoxLayout" name="horizontalLayout"> + <layout class="QVBoxLayout" name="verticalLayout"> <item> - <widget class="QTreeView" name="treeView"/> + <widget class="QPushButton" name="pushButton"> + <property name="text"> + <string>Update</string> + </property> + </widget> </item> <item> - <widget class="QTextBrowser" name="textBrowser"/> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QTreeView" name="treeView"/> + </item> + <item> + <widget class="QTextBrowser" name="textBrowser"/> + </item> + </layout> </item> </layout> </widget> @@ -28,7 +39,7 @@ <rect> <x>0</x> <y>0</y> - <width>400</width> + <width>437</width> <height>22</height> </rect> </property> |