AlbumShaper
1.0a3
src
configuration
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
//=====================================
28
class
GroupsWidget
:
public
Q3IconView
29
{
30
public
:
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
40
protected
:
41
void
contentsMousePressEvent
( QMouseEvent * e );
42
43
private
:
44
//width allocated to iconview items text.
45
//IconViewItems will request this value when running calcRect()
46
int
textWidth
;
47
};
48
//======================
49
50
#endif //CONFIGURATION_GROUPSWIDGET_H
QWidget
GroupsWidget::keyPressEvent
void keyPressEvent(QKeyEvent *e)
Definition:
groupsWidget.cpp:36
GroupsWidget
Displays group icon and text, also contains pointer to widget for setting group settings.
Definition:
groupsWidget.h:28
GroupsWidget::getTextWidth
int getTextWidth()
Definition:
groupsWidget.cpp:72
Q3IconView
GroupsWidget::sizeHint
QSize sizeHint() const
Definition:
groupsWidget.cpp:53
GroupsWidget::contentsMousePressEvent
void contentsMousePressEvent(QMouseEvent *e)
Definition:
groupsWidget.cpp:28
GroupsWidget::setTextWidth
void setTextWidth(int val)
Definition:
groupsWidget.cpp:69
GroupsWidget::textWidth
int textWidth
Definition:
groupsWidget.h:46
GroupsWidget::GroupsWidget
GroupsWidget(QWidget *parent=0, const char *name=0)
Definition:
groupsWidget.cpp:22
Generated by
1.8.12