Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

olistview.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  ***************************************************************************/
00009   // (c) 2002 Patrick S. Vogtp <tille@handhelds.org>
00010 
00011 #include "olistview.h"
00012 #include "olistviewitem.h"
00013 
00014 #include <qpe/qpeapplication.h>
00015 
00016 
00017 
00018 OListView::OListView(QWidget *parent, const char *name )
00019   : QListView(parent,name)
00020 {
00021 
00022         setRootIsDecorated( true );
00023         addColumn(tr("Results"),qApp->desktop()->width() - 9 );
00024         //setColumnWidthMode(0, Manual);
00025 
00026         setSorting( -1 );
00027         connect( this, SIGNAL(expanded(QListViewItem*)), SLOT(expand(QListViewItem*)));
00028 }
00029 
00030 
00031 OListView::~OListView()
00032 {
00033 }
00034 
00035 void OListView::expand(QListViewItem *item)
00036 {
00037         ((OListViewItem*)item)->expand();
00038 }
00039 

Generated on Sat Nov 5 16:15:54 2005 for OPIE by  doxygen 1.4.2