gSAFE
1.3.8
|
#include <guilib.h>
Inherits QPushButton.
Signals | |
void | clickedValue (QString text) |
Public Member Functions | |
HArrayButton (QString text, QWidget *parent) | |
Static Public Member Functions | |
static QLayout * | abc_filt (QWidget *parent, const QObject *receiver, const char *member) |
Static Public Attributes | |
static int | defaultSizeX = 0 |
static int | defaultSizeY = 0 |
HArrayButton is a helper class to creates an "abc" array of small QPushButton -s with labels abc letters: A B C D ... The size of buttons will be equalized automatically. The button array can be created with the abc_filt() function. When the user push a button the HArrayButton emits a signal with the pressed letter. (Can be useful to filter the result of a list to the first letter)
HArrayButton::HArrayButton | ( | QString | text, |
QWidget * | parent | ||
) |
Creates one piece of array-button. Use the abc_filt() to create a whole abc array.
Definition at line 443 of file guilib.cpp.
|
static |
Creates an abc array of buttons.
parent | the parent QWidget descendant |
receiver | Connect the "reciver" objects "member" named slot to the array buttons clicked signal. The "member" slot have to receive a QString parameter which will be the text of the pressed button. |
member | see param receiver. |
Definition at line 460 of file guilib.cpp.
|
static |