source: trunk/examples/listbox/listbox.h

Last change on this file was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

  • Property svn:keywords set to Id
File size: 1019 bytes
Line 
1/****************************************************************************
2** $Id: listbox.h 2 2005-11-16 15:49:26Z dmik $
3**
4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9*****************************************************************************/
10
11#ifndef LISTBOX_H
12#define LISTBOX_H
13
14
15class QSpinBox;
16class QListBox;
17class QButtonGroup;
18
19#include <qwidget.h>
20
21
22class ListBoxDemo: public QWidget
23{
24 Q_OBJECT
25public:
26 ListBoxDemo();
27 ~ListBoxDemo();
28
29private slots:
30 void setNumRows();
31 void setNumCols();
32 void setRowsByHeight();
33 void setColsByWidth();
34 void setVariableWidth( bool );
35 void setVariableHeight( bool );
36 void setMultiSelection( bool );
37 void sortAscending();
38 void sortDescending();
39
40private:
41 QListBox * l;
42 QSpinBox * columns;
43 QSpinBox * rows;
44 QButtonGroup * bg;
45};
46
47
48#endif
Note: See TracBrowser for help on using the repository browser.