author | tille <tille> | 2003-05-16 17:18:23 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-16 17:18:23 (UTC) |
commit | 076926e6c7fe5bfd52f9f42879a216885ccc2cd3 (patch) (side-by-side diff) | |
tree | d78e02996c8e894ea0e28666bd3e59d3e1bfbda8 /core/pim/osearch/mainwindow.cpp | |
parent | 11b6ce5ac500dce757ccdd0a5f5b5ecd7fb866c8 (diff) | |
download | opie-076926e6c7fe5bfd52f9f42879a216885ccc2cd3.zip opie-076926e6c7fe5bfd52f9f42879a216885ccc2cd3.tar.gz opie-076926e6c7fe5bfd52f9f42879a216885ccc2cd3.tar.bz2 |
gui stuff
Diffstat (limited to 'core/pim/osearch/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/osearch/mainwindow.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp index 6070fdf..adce926 100644 --- a/core/pim/osearch/mainwindow.cpp +++ b/core/pim/osearch/mainwindow.cpp @@ -50,29 +50,28 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : { setCaption( tr("OSearch") ); - setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding)); + setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); QFrame *mainFrame = new QFrame( this, "mainFrame" ); + mainFrame->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); mainLayout = new QVBoxLayout( mainFrame ); mainLayout->setSpacing( 0 ); mainLayout->setMargin( 0 ); resultsList = new OListView( mainFrame ); - resultsList->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding)); - mainLayout->addWidget( resultsList, 1 ); + resultsList->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); + mainLayout->addWidget( resultsList ); detailsFrame = new QFrame( mainFrame, "detailsFrame" ); QVBoxLayout *detailsLayout = new QVBoxLayout( detailsFrame ); richEdit = new QTextView( detailsFrame ); - richEdit->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding)); - //richEdit->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum )); - detailsLayout->addWidget( richEdit, 1 ); + richEdit->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); + detailsLayout->addWidget( richEdit ); buttonGroupActions = new QHButtonGroup( this ); buttonGroupActions->hide(); _buttonCount = 0; -// buttonGroupActions->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); buttonLayout = new QHBoxLayout( detailsFrame ); detailsLayout->addLayout( buttonLayout ); |