AlbumShaper 1.0a3
groupsWidget.h
Go to the documentation of this file.
1//==============================================
2// copyright : (C) 2003-2005 by Will Stokes
3//==============================================
4// This program is free software; you can redistribute it
5// and/or modify it under the terms of the GNU General
6// Public License as published by the Free Software
7// Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//==============================================
10
11#ifndef CONFIGURATION_GROUPSWIDGET_H
12#define CONFIGURATION_GROUPSWIDGET_H
13
14//--------------------
15//forward declarations
16//--------------------
17
18#include <q3iconview.h>
19#include <qobject.h>
20//Added by qt3to4:
21#include <QKeyEvent>
22#include <QMouseEvent>
23
24//=====================================
27//=====================================
29{
30public:
31 GroupsWidget( QWidget* parent=0,
32 const char* name = 0 );
33
34 void keyPressEvent( QKeyEvent* e );
35 QSize sizeHint() const;
36
37 void setTextWidth(int val);
38 int getTextWidth();
39
40protected:
41 void contentsMousePressEvent ( QMouseEvent * e );
42
43private:
44 //width allocated to iconview items text.
45 //IconViewItems will request this value when running calcRect()
47};
48//======================
49
50#endif //CONFIGURATION_GROUPSWIDGET_H
Displays group icon and text, also contains pointer to widget for setting group settings.
void contentsMousePressEvent(QMouseEvent *e)
GroupsWidget(QWidget *parent=0, const char *name=0)
QSize sizeHint() const
void keyPressEvent(QKeyEvent *e)
void setTextWidth(int val)