#include <recentAlbumMenuItem.h>
Inheritance diagram for RecentAlbumMenuItem:
Definition at line 23 of file recentAlbumMenuItem.h.
Public Member Functions | |
RecentAlbumMenuItem (Key acceleratorKey) | |
void | changeItem (QString albumName, QString albumLocation, QString numPhotos) |
updates entry as per arguments passed (used by constructor during intiailization as well) | |
void | paint (QPainter *p, const QColorGroup &cg, bool act, bool enabled, int x, int y, int w, int h) |
paints entry | |
QSize | sizeHint () |
returns menu entry size | |
void | setMaxWidth (int val) |
after all menu items have been refreshed hint at maximum width so we can adequately position the accelerator text | |
bool | fullSpan () const |
no icon necessary since album image painted here | |
Private Attributes | |
Key | acceleratorKey |
QImage | albumImage |
album image | |
QString | albumName |
album name | |
QString | numPhotos |
number of photos | |
QSize | size |
computed size | |
int | maxWidth |
max element width | |
int | idealImageWidth |
used for painting purposes |
|
Definition at line 22 of file recentAlbumMenuItem.cpp. References changeItem(), and RecentAlbumMenuItem(). Referenced by RecentAlbumMenuItem().
|
|
updates entry as per arguments passed (used by constructor during intiailization as well)
Definition at line 28 of file recentAlbumMenuItem.cpp. References albumImage, changeItem(), idealImageWidth, scaleImage(), and size. Referenced by changeItem(), RecentAlbumMenuItem(), and TitleWidget::refreshOpenRecentMenu().
|
|
no icon necessary since album image painted here
Definition at line 108 of file recentAlbumMenuItem.cpp.
|
|
paints entry
Definition at line 60 of file recentAlbumMenuItem.cpp. References acceleratorKey, albumImage, albumName, idealImageWidth, maxWidth, numPhotos, paint(), and size. Referenced by paint().
|
|
after all menu items have been refreshed hint at maximum width so we can adequately position the accelerator text
Definition at line 111 of file recentAlbumMenuItem.cpp. References maxWidth, and setMaxWidth(). Referenced by TitleWidget::refreshOpenRecentMenu(), and setMaxWidth().
|
|
returns menu entry size
Definition at line 105 of file recentAlbumMenuItem.cpp. References size.
|
|
Definition at line 48 of file recentAlbumMenuItem.h. Referenced by paint(). |
|
album image
Definition at line 51 of file recentAlbumMenuItem.h. Referenced by changeItem(), and paint(). |
|
album name
Definition at line 54 of file recentAlbumMenuItem.h. Referenced by paint(). |
|
used for painting purposes
Definition at line 66 of file recentAlbumMenuItem.h. Referenced by changeItem(), and paint(). |
|
max element width
Definition at line 63 of file recentAlbumMenuItem.h. Referenced by paint(), and setMaxWidth(). |
|
number of photos
Definition at line 57 of file recentAlbumMenuItem.h. Referenced by paint(). |
|
computed size
Definition at line 60 of file recentAlbumMenuItem.h. Referenced by changeItem(), paint(), and sizeHint(). |