summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/confedit/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/confedit/mainwindow.cpp b/noncore/apps/confedit/mainwindow.cpp
index e7db86a..45dbcb4 100644
--- a/noncore/apps/confedit/mainwindow.cpp
+++ b/noncore/apps/confedit/mainwindow.cpp
@@ -40,25 +40,25 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) :
40 { 40 {
41 setCaption( tr("Conf File Editor") ); 41 setCaption( tr("Conf File Editor") );
42 42
43 //setBaseSize( qApp->globalStrut() ); 43 //setBaseSize( qApp->globalStrut() );
44 setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) ); 44 setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) );
45 45
46 mainLayout = new QVBoxLayout( this ); 46 mainLayout = new QVBoxLayout( this );
47 mainLayout->setSpacing( 0 ); 47 mainLayout->setSpacing( 0 );
48 mainLayout->setMargin( 0 ); 48 mainLayout->setMargin( 0 );
49 49
50 50
51 qDebug("creating settingList"); 51 qDebug("creating settingList");
52 settingList = new ListViewConfDir( QString(getenv("HOME")) + "/Settings", this, "settingslist"); 52 settingList = new ListViewConfDir( QDir::homeDirPath() + "/Settings", this, "settingslist");
53 settingList->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) ); 53 settingList->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));//, sizePolicy().hasHeightForWidth() ) );
54 mainLayout->addWidget( settingList, 0); 54 mainLayout->addWidget( settingList, 0);
55 55
56 qDebug("creating editor"); 56 qDebug("creating editor");
57 editor = new EditWidget(this); 57 editor = new EditWidget(this);
58 editor->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Maximum));//, sizePolicy().hasHeightForWidth() ) ); 58 editor->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Maximum));//, sizePolicy().hasHeightForWidth() ) );
59 mainLayout->addWidget( editor, 1 ); 59 mainLayout->addWidget( editor, 1 );
60 editor->layoutType( ListViewItemConf::File ); 60 editor->layoutType( ListViewItemConf::File );
61 61
62 makeMenu(); 62 makeMenu();
63 63
64 connect(settingList, SIGNAL( pressed(QListViewItem*) ), 64 connect(settingList, SIGNAL( pressed(QListViewItem*) ),