fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kde3support / tests / itemcontainertest.h
blobc606be48de265212c39908707772db8bace00374
1 /*
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
7 */
8 #ifndef _ITEMCONTAINERTEST_H
9 #define _ITEMCONTAINERTEST_H
11 #include <QtGui/QWidget>
13 class K3IconView;
14 class K3ListView;
15 class KListWidget;
16 class QButtonGroup;
17 class QLabel;
19 class TopLevel : public QWidget
21 Q_OBJECT
22 public:
24 TopLevel( QWidget *parent=0 );
26 enum ViewID { IconView, ListView, ListBox };
27 enum ModeID { NoSelection, Single, Multi, Extended };
29 public Q_SLOTS:
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");}
40 protected:
41 K3IconView* m_pIconView;
42 K3ListView* m_pListView;
43 KListWidget* m_pListBox;
45 QButtonGroup* m_pbgView;
46 QButtonGroup* m_pbgMode;
47 QLabel* m_plblWidget;
48 QLabel* m_plblSignal;
49 QLabel* m_plblItem;
52 #endif