summaryrefslogtreecommitdiff
path: root/noncore/apps/confedit/listviewconfdir.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/confedit/listviewconfdir.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/confedit/listviewconfdir.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/noncore/apps/confedit/listviewconfdir.cpp b/noncore/apps/confedit/listviewconfdir.cpp
index f466f06..0c2feeb 100644
--- a/noncore/apps/confedit/listviewconfdir.cpp
+++ b/noncore/apps/confedit/listviewconfdir.cpp
@@ -24,6 +24,8 @@ ListViewConfDir::ListViewConfDir(QString settingsPath, QWidget *parent, const ch
if (!confDir.isReadable())
QMessageBox::critical(this,tr("Could not open"),tr("The directory ")+settingsPath+tr(" could not be opened."),1,0);
readConfFiles();
+
+ connect( this, SIGNAL(expanded(QListViewItem*)), SLOT(expand(QListViewItem*)));
}
@@ -47,7 +49,13 @@ void ListViewConfDir::readConfFiles()
{
qDebug( "opening: >%s<", fi->fileName().data() );
fileEntry = new ListViewItemConfFile( fi, this );
-
+ QListViewItem *dummy = new QListViewItem(fileEntry, "dummy");
++it;
}
-} \ No newline at end of file
+}
+
+void ListViewConfDir::expand(QListViewItem *item)
+{
+ ((ListViewItemConf*)item)->expand();
+}
+