2 * Tests the item container widgets K3IconView, K3ListView, KListWidget
4 * Copyright 2000 by Michael Reiher <michael.reiher@gmx.de>
6 * Licensed under the GNU General Public License version 2
8 #ifndef _ITEMCONTAINERTEST_H
9 #define _ITEMCONTAINERTEST_H
11 #include <QtGui/QWidget>
19 class TopLevel
: public QWidget
24 TopLevel( QWidget
*parent
=0 );
26 enum ViewID
{ IconView
, ListView
, ListBox
};
27 enum ModeID
{ NoSelection
, Single
, Multi
, Extended
};
30 //void slotSwitchView( int id );
31 void slotSwitchMode( int id
);
33 void slotIconViewExec( Q3IconViewItem
* item
);
34 void slotListViewExec( Q3ListViewItem
* item
);
35 void slotListBoxExec( QListWidgetItem
* item
);
36 void slotToggleSingleColumn( bool b
);
38 void slotClicked( Q3IconViewItem
* ) { qDebug("CLICK");}
39 void slotDoubleClicked( Q3IconViewItem
* ) { qDebug("DOUBLE CLICK");}
41 K3IconView
* m_pIconView
;
42 K3ListView
* m_pListView
;
43 KListWidget
* m_pListBox
;
45 QButtonGroup
* m_pbgView
;
46 QButtonGroup
* m_pbgMode
;