summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2014-07-31 02:35:38 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2014-07-31 02:35:38 +0200
commitb91e474435565879e2e395255d9c5a02fd6dc2ce (patch)
tree65228365535d72034bd3b576143a8b2ae08e9911
parent66a72b9652d74cbdfcaabec4b09a14d0dd9cbac6 (diff)
autoupdating
-rw-r--r--mainwindow.cpp2
-rw-r--r--mainwindow.h4
-rw-r--r--mainwindow.ui10
3 files changed, 4 insertions, 12 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index fb31ed34..91d701f9 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -11,7 +11,7 @@ MainWindow::MainWindow(QWidget *parent) :
ui->setupUi(this);
ui->treeView->setModel(&model);
- ui->treeView->setRootIndex(model.index(QDir::homePath()+"/.password-store"));
+ ui->treeView->setRootIndex(model.setRootPath(QDir::homePath()+"/.password-store"));
ui->treeView->setColumnHidden( 1, true );
ui->treeView->setColumnHidden( 2, true );
ui->treeView->setColumnHidden( 3, true );
diff --git a/mainwindow.h b/mainwindow.h
index eb0c57a9..c8dc8735 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -5,7 +5,7 @@
#include <QDirModel>
#include <QFileSystemModel>
#include <QTreeView>
-#include <QDirModel>
+#include <QFileSystemModel>
namespace Ui {
class MainWindow;
@@ -26,7 +26,7 @@ private slots:
private:
Ui::MainWindow *ui;
- QDirModel model;
+ QFileSystemModel model;
};
#endif // MAINWINDOW_H
diff --git a/mainwindow.ui b/mainwindow.ui
index 330701e6..2f540b2c 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -40,7 +40,7 @@
<x>0</x>
<y>0</y>
<width>437</width>
- <height>22</height>
+ <height>25</height>
</rect>
</property>
<widget class="QMenu" name="menuTest">
@@ -58,14 +58,6 @@
<addaction name="menuTest"/>
<addaction name="menuAbout"/>
</widget>
- <widget class="QToolBar" name="mainToolBar">
- <attribute name="toolBarArea">
- <enum>TopToolBarArea</enum>
- </attribute>
- <attribute name="toolBarBreak">
- <bool>false</bool>
- </attribute>
- </widget>
<widget class="QStatusBar" name="statusBar"/>
<action name="actionStuff">
<property name="text">